07f27db015
PostgreSQL 14.2, 13.6, 12.10, 11.15, and 10.20 Released! This update fixes over 55 bugs that were reported in the last several months. The issues listed below affect PostgreSQL 14. Some of these issues may also affect other supported versions of PostgreSQL. Included in this release: Fix for a low probability scenario of index corruption when a HOT (heap-only tuple) chain changes state during VACUUM. Encountering this issue is unlikely, but if you are concerned, please consider reindexing. Fix for using REINDEX CONCURRENTLY on TOAST table indexes to prevent corruption. You can fix any TOAST indexes by reindexing them again. The psql \password command now defaults to setting the password for the role defined by CURRENT_USER. Additionally, the role name is now included in the password prompt. Build extended statistics for partitioned tables. If you previously added extended statistics to a partitioned table, you should run ANALYZE on those tables. As autovacuum currently does not process partitioned tables, you must periodically run ANALYZE on any partitioned tables to update their statistics. Fix crash with ALTER STATISTICS when the statistics object is dropped concurrently. Fix crash with multiranges when extracting variable-length data types. Several fixes to the query planner that lead to incorrect query results. Several fixes for query plan memoization. Fix startup of a physical replica to tolerate transaction ID wraparound. When using logical replication, avoid duplicate transmission of a partitioned table's data when the publication includes both the child and parent tables. Disallow altering data type of a partitioned table's columns when the partitioned table's row type is used as a composite type elsewhere. Disallow ALTER TABLE ... DROP NOT NULL for a column that is part of a replica identity index. Several fixes for caching that correct logical replication behavior and improve performance. Fix memory leak when updating expression indexes. Avoid leaking memory during REASSIGN OWNED BY operations that reassign ownership of many objects. Fix display of whole-row variables appearing in INSERT ... VALUES rules. Fix race condition that could lead to failure to localize error messages that are reported early in multi-threaded use of libpq or ecpglib. Fix psql \d command for identifying parent triggers. Fix failures on Windows when using the terminal as data source or destination. This affected the psql \copy command and using pg_recvlogical with -f -. Fix the pg_dump --inserts and --column-inserts modes to handle tables that contain both generated and dropped columns. Fix edge cases in how postgres_fdw handles asynchronous queries. These errors could lead to crashes or incorrect results when attempting to run parallel scans of foreign tables. For the full list of changes available, please review the release notes.
93 lines
2.9 KiB
Makefile
93 lines
2.9 KiB
Makefile
# $NetBSD: Makefile,v 1.22 2022/02/11 08:31:20 adam Exp $
|
|
|
|
PKGNAME= ${DISTNAME:S/-/10-client-/}
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
.include "../../databases/postgresql10/Makefile.common"
|
|
|
|
USE_TOOLS+= gzip msgfmt tar
|
|
TOOLS_BROKEN+= perl
|
|
CONFIGURE_ARGS+= --with-openssl
|
|
CONFIGURE_ARGS+= --with-zlib
|
|
|
|
# Override INSTALL script to avoid unprivileged user/group
|
|
# leaking into the binary package
|
|
CONFIGURE_ARGS+= INSTALL=${INSTALL:Q}\ -c
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Cygwin"
|
|
INSTALLATION_DIRS+= bin
|
|
.endif
|
|
|
|
# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
|
|
# NetBSD earlier than 4.0 or DragonFly.
|
|
# 2. configure with --enable-thread-safety fails on OpenBSD.
|
|
.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
|
|
${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
|
|
PGSQL_THREAD_SAFETY?= no
|
|
.endif
|
|
PGSQL_THREAD_SAFETY?= yes
|
|
BUILD_DEFS+= PGSQL_THREAD_SAFETY
|
|
|
|
.if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS])
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
. if (${PTHREAD_TYPE} == "native")
|
|
CONFIGURE_ARGS+= --enable-thread-safety
|
|
. endif
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-thread-safety
|
|
.endif
|
|
|
|
BUILD_DIRS+= src/fe_utils
|
|
INSTALL_DIRS= src/include
|
|
INSTALL_DIRS+= src/common
|
|
INSTALL_DIRS+= src/interfaces
|
|
INSTALL_DIRS+= src/bin
|
|
INSTALL_DIRS+= src/port
|
|
BUILD_DIRS+= ${INSTALL_DIRS}
|
|
# Without this, the Darwin build fails (related to -bundle_loader).
|
|
BUILD_DIRS+= src/backend
|
|
|
|
.for f in pg_service.conf psqlrc
|
|
CONF_FILES+= share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
SUBST_CLASSES+= pgxs
|
|
SUBST_STAGE.pgxs= post-build
|
|
SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile
|
|
SUBST_FILES.pgxs= src/Makefile.global
|
|
SUBST_SED.pgxs= -e 's,${TOOLS_CMD.bison},${TOOLS_PATH.bison},'
|
|
SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.lex},${TOOLS_PATH.lex},'
|
|
SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper/bin/ld,${LD},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper,${PREFIX},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKSRC},/dev/null,'
|
|
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs/config
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs/src
|
|
INSTALLATION_DIRS+= lib/postgresql/pgxs/src/makefiles
|
|
|
|
DEST_PGXS= ${DESTDIR}${PREFIX}/lib/postgresql/pgxs
|
|
PGXS_FILES= config/install-sh
|
|
PGXS_FILES+= src/makefiles/pgxs.mk src/Makefile.global
|
|
PGXS_FILES+= src/Makefile.port src/Makefile.shlib
|
|
PGXS_FILES+= src/nls-global.mk
|
|
|
|
# On Solaris, avoid conflicts between "${SSLBASE}/include/openssl/des.h"
|
|
# and "/usr/include/crypt.h" -- we want the definitions in the former.
|
|
.if ${OPSYS} == "SunOS"
|
|
post-wrapper:
|
|
touch ${BUILDLINK_DIR}/include/crypt.h
|
|
.endif
|
|
|
|
post-install:
|
|
.for file in ${PGXS_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DEST_PGXS}/${file}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|