pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases postgresql: updated to the latest



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32f91a5bf908
branches:  trunk
changeset: 371454:32f91a5bf908
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Nov 13 09:33:31 2017 +0000

description:
postgresql: updated to the latest

The PostgreSQL Global Development Group has released an update to all supported versions of our database system, including 10.1, 9.6.6, 9.5.10, 9.4.15, 9.3.20, and 9.2.24. This release fixes three 
security issues. This release also fixes issues found in BRIN indexing, logical replication and other bugs reported over the past three months.

All users using the affected versions of PostgreSQL should update as soon as possible. If you use BRIN indexes or contrib/start-scripts, please see the release notes for additional post-upgrade steps.

Security Issues

Three security vulnerabilities have been fixed by this release:

CVE-2017-12172: Start scripts permit database administrator to modify root-owned files
CVE-2017-15098: Memory disclosure in JSON functions
CVE-2017-15099: INSERT ... ON CONFLICT DO UPDATE fails to enforce SELECT privileges


Bug Fixes and Improvements

This update also fixes a number of bugs reported in the last few months. Some of these issues affect only version 10, but many affect all supported versions:

Fix a race condition in BRIN indexing that could cause some rows to not be included in the indexing.
Fix crash when logical decoding is invoked from a PL language function.
Several fixes for logical replication.
Restored behavior for CTEs attached to INSERT/UPDATE/DELETE statements to pre-version 10.
Prevent low-probability crash in processing of nested trigger firings.
Do not evaluate an aggregate function's argument expressions when the conditions in the FILTER clause evaluate to FALSE. This complies with SQL-standard behavior.
Fix incorrect query results when multiple GROUPING SETS columns contain the same simple variable.
Fix memory leak over the lifespan of a query when evaluating a set-returning function from the target list in a SELECT.
Several fixes for parallel query execution, including fixing a crash in the parallel execution of certain queries that contain a certain type of bitmap scan.
Fix json_build_array(), json_build_object(), jsonb_build_array(), and jsonb_build_object() to handle explicit VARIADIC arguments correctly.
Prevent infinite float values from being casted to the numeric type.
Fix autovacuum's ?work item? logic to prevent possible crashes and silent loss of work items.
Several fixes for VIEWs around adding columns to the end of a view.
Fix for hashability detection of range data types that are created by a user.
Improvements on using extended statistics on columns for the purposes of query planning.
Prevent idle_in_transaction_session_timeout from being ignored when a statement_timeout occurred earlier.
Fix low-probability loss of NOTIFY messages due more than 2 billion transactions processing before any queries are executed in the session.
Several file system interaction fixes.
Correctly restore the umask setting when file creation fails in COPY or lo_export().
Fix pg_dump to ensure that it emits GRANT commands in a valid order.
Fix pg_basebackup's matching of tablespace paths to canonicalize both paths before comparing to help improve Windows compatibility.
Fix libpq to not require user's home directory to exist when trying to read the "~/.pgpass" file.
Several fixes for ecpg.

diffstat:

 databases/postgresql10-client/Makefile                       |   3 +-
 databases/postgresql10-docs/PLIST                            |   8 +-
 databases/postgresql10-server/PLIST                          |   3 +-
 databases/postgresql10/Makefile.common                       |  13 +--
 databases/postgresql10/distinfo                              |  10 +-
 databases/postgresql92-client/Makefile                       |   6 +-
 databases/postgresql92-docs/PLIST                            |   3 +-
 databases/postgresql92-server/PLIST                          |   3 +-
 databases/postgresql92/Makefile.common                       |  21 +++-
 databases/postgresql92/distinfo                              |  10 +-
 databases/postgresql92/options.mk                            |  43 ++---------
 databases/postgresql93-client/Makefile                       |   6 +-
 databases/postgresql93-docs/PLIST                            |   4 +-
 databases/postgresql93-server/PLIST                          |   3 +-
 databases/postgresql93/Makefile.common                       |  20 +++-
 databases/postgresql93/distinfo                              |  10 +-
 databases/postgresql93/options.mk                            |  43 ++---------
 databases/postgresql94-client/Makefile                       |   3 +-
 databases/postgresql94-docs/Makefile                         |   3 +-
 databases/postgresql94-docs/PLIST                            |   5 +-
 databases/postgresql94-plperl/Makefile                       |   3 +-
 databases/postgresql94-server/PLIST                          |   3 +-
 databases/postgresql94/Makefile.common                       |  21 +++--
 databases/postgresql94/distinfo                              |  11 +-
 databases/postgresql94/options.mk                            |  43 ++---------
 databases/postgresql94/patches/patch-src_timezone_strftime.c |  13 ---
 databases/postgresql95-client/Makefile                       |   3 +-
 databases/postgresql95-docs/PLIST                            |   6 +-
 databases/postgresql95-server/PLIST                          |   3 +-
 databases/postgresql95/Makefile.common                       |  27 +++---
 databases/postgresql95/distinfo                              |  10 +-
 databases/postgresql95/options.mk                            |  43 ++---------
 databases/postgresql96-client/Makefile                       |   3 +-
 databases/postgresql96-docs/PLIST                            |   7 +-
 databases/postgresql96-server/PLIST                          |   3 +-
 databases/postgresql96/Makefile.common                       |  27 +++---
 databases/postgresql96/distinfo                              |  10 +-
 databases/postgresql96/options.mk                            |  43 ++---------
 38 files changed, 190 insertions(+), 309 deletions(-)

diffs (truncated from 1320 to 300 lines):

diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql10-client/Makefile
--- a/databases/postgresql10-client/Makefile    Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql10-client/Makefile    Mon Nov 13 09:33:31 2017 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2017/11/10 14:47:41 fhajny Exp $
+# $NetBSD: Makefile,v 1.3 2017/11/13 09:33:31 adam Exp $
 
 PKGNAME=       ${DISTNAME:C/-/10-client-/}
-PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql10/Makefile.common"
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql10-docs/PLIST
--- a/databases/postgresql10-docs/PLIST Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql10-docs/PLIST Mon Nov 13 09:33:31 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/10/23 20:33:49 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/11/13 09:33:31 adam Exp $
 man/man1/clusterdb.1
 man/man1/createdb.1
 man/man1/createuser.1
@@ -914,6 +914,7 @@
 share/doc/postgresql/html/release-1-01.html
 share/doc/postgresql/html/release-1-02.html
 share/doc/postgresql/html/release-1-09.html
+share/doc/postgresql/html/release-10-1.html
 share/doc/postgresql/html/release-10.html
 share/doc/postgresql/html/release-6-0.html
 share/doc/postgresql/html/release-6-1-1.html
@@ -1187,6 +1188,7 @@
 share/doc/postgresql/html/release-9-2-21.html
 share/doc/postgresql/html/release-9-2-22.html
 share/doc/postgresql/html/release-9-2-23.html
+share/doc/postgresql/html/release-9-2-24.html
 share/doc/postgresql/html/release-9-2-3.html
 share/doc/postgresql/html/release-9-2-4.html
 share/doc/postgresql/html/release-9-2-5.html
@@ -1207,6 +1209,7 @@
 share/doc/postgresql/html/release-9-3-18.html
 share/doc/postgresql/html/release-9-3-19.html
 share/doc/postgresql/html/release-9-3-2.html
+share/doc/postgresql/html/release-9-3-20.html
 share/doc/postgresql/html/release-9-3-3.html
 share/doc/postgresql/html/release-9-3-4.html
 share/doc/postgresql/html/release-9-3-5.html
@@ -1221,6 +1224,7 @@
 share/doc/postgresql/html/release-9-4-12.html
 share/doc/postgresql/html/release-9-4-13.html
 share/doc/postgresql/html/release-9-4-14.html
+share/doc/postgresql/html/release-9-4-15.html
 share/doc/postgresql/html/release-9-4-2.html
 share/doc/postgresql/html/release-9-4-3.html
 share/doc/postgresql/html/release-9-4-4.html
@@ -1231,6 +1235,7 @@
 share/doc/postgresql/html/release-9-4-9.html
 share/doc/postgresql/html/release-9-4.html
 share/doc/postgresql/html/release-9-5-1.html
+share/doc/postgresql/html/release-9-5-10.html
 share/doc/postgresql/html/release-9-5-2.html
 share/doc/postgresql/html/release-9-5-3.html
 share/doc/postgresql/html/release-9-5-4.html
@@ -1245,6 +1250,7 @@
 share/doc/postgresql/html/release-9-6-3.html
 share/doc/postgresql/html/release-9-6-4.html
 share/doc/postgresql/html/release-9-6-5.html
+share/doc/postgresql/html/release-9-6-6.html
 share/doc/postgresql/html/release-9-6.html
 share/doc/postgresql/html/release.html
 share/doc/postgresql/html/replication-origins.html
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql10-server/PLIST
--- a/databases/postgresql10-server/PLIST       Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql10-server/PLIST       Mon Nov 13 09:33:31 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/10/23 20:33:50 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/11/13 09:33:31 adam Exp $
 bin/postgres
 bin/postmaster
 include/postgresql/server/plpgsql.h
@@ -442,7 +442,6 @@
 share/postgresql/timezone/CST6CDT
 share/postgresql/timezone/Canada/Atlantic
 share/postgresql/timezone/Canada/Central
-share/postgresql/timezone/Canada/East-Saskatchewan
 share/postgresql/timezone/Canada/Eastern
 share/postgresql/timezone/Canada/Mountain
 share/postgresql/timezone/Canada/Newfoundland
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql10/Makefile.common
--- a/databases/postgresql10/Makefile.common    Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql10/Makefile.common    Mon Nov 13 09:33:31 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2017/11/10 14:47:41 fhajny Exp $
+# $NetBSD: Makefile.common,v 1.3 2017/11/13 09:33:31 adam Exp $
 #
 # This Makefile fragment is included by all PostgreSQL packages built from
 # the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -16,7 +16,7 @@
 # used by databases/postgresql10-pltcl/Makefile
 # used by databases/postgresql10-server/Makefile
 
-DISTNAME=      postgresql-10.0
+DISTNAME=      postgresql-10.1
 CATEGORIES=    databases
 MASTER_SITES=  ${MASTER_SITE_PGSQL:=source/v${PKGVERSION_NOREV}/}
 EXTRACT_SUFX=  .tar.bz2
@@ -75,9 +75,7 @@
 
 # sys/ucred.h shouldn't be included on Solaris, causes conflicts between
 # procfs and largefile.
-.if ${OPSYS} == "SunOS"
-CONFIGURE_ENV+=                ac_cv_header_sys_ucred_h=no
-.endif
+CONFIGURE_ENV.SunOS+=  ac_cv_header_sys_ucred_h=no
 
 # pkgsrc silently filters the --as-needed linker arg, but that makes
 # it leak into the pgxs Makefiles and compromises manual building
@@ -88,9 +86,8 @@
 .endif
 
 # configure fails on OpenBSD and MirBSD if thread safety is enabled.
-.if ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
-CONFIGURE_ARGS+=       --disable-thread-safety
-.endif
+CONFIGURE_ARGS.MirBSD+=        --disable-thread-safety
+CONFIGURE_ARGS.OpenBSD+=--disable-thread-safety
 
 # PGSQL_BLCKSZ is the size in bytes of a PostgreSQL disk page or block.
 # This also limits the size of a tuple.  The valid values are powers
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql10/distinfo
--- a/databases/postgresql10/distinfo   Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql10/distinfo   Mon Nov 13 09:33:31 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.1 2017/10/23 20:33:49 adam Exp $
+$NetBSD: distinfo,v 1.2 2017/11/13 09:33:31 adam Exp $
 
-SHA1 (postgresql-10.0.tar.bz2) = 4c26f81278f7da12f46f2ff4fda5b0311e191b95
-RMD160 (postgresql-10.0.tar.bz2) = d8995f0f4072d5bee91274f508e18a2155ef346f
-SHA512 (postgresql-10.0.tar.bz2) = 88295af13db77a85a604c925aa627d383fdac62c1185119bba87753ce4167a13aed0f055a7a1329b3051f8757c6ba7529baed00a564ef0cfbee685720f282678
-Size (postgresql-10.0.tar.bz2) = 19639147 bytes
+SHA1 (postgresql-10.1.tar.bz2) = 4adcfd527ec1652ecd7a22eb71541928d3d37277
+RMD160 (postgresql-10.1.tar.bz2) = 4238ae067e5e282ee36302d596ea0654dd9e96b8
+SHA512 (postgresql-10.1.tar.bz2) = 06050d353aa43f32e0de0199d833d8a4652aff893b718b1c40ed31837838f73fe4d977ac0f2164ab97b3eeff4aae3409f440601740898a893877d96bc0ed1882
+Size (postgresql-10.1.tar.bz2) = 19669989 bytes
 SHA1 (patch-config_missing) = c2d7d742922ba6861e7660c75b7b53f09e564813
 SHA1 (patch-config_perl.m4) = e035132b1c281a75752d570ac5e29a11176c25c5
 SHA1 (patch-configure) = 59fe9a768caf8a5d308acac60c28bc6bb2c40632
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql92-client/Makefile
--- a/databases/postgresql92-client/Makefile    Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql92-client/Makefile    Mon Nov 13 09:33:31 2017 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2017/11/10 14:47:41 fhajny Exp $
+# $NetBSD: Makefile,v 1.11 2017/11/13 09:33:31 adam Exp $
 
 PKGNAME=       ${DISTNAME:C/-/92-client-/}
-PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql92/Makefile.common"
@@ -40,9 +39,6 @@
 CONF_FILES+=   share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f}
 .endfor
 
-# XXX work around core dumps with the native libedit
-USE_GNU_READLINE=      yes
-
 .include "../../devel/readline/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql92-docs/PLIST
--- a/databases/postgresql92-docs/PLIST Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql92-docs/PLIST Mon Nov 13 09:33:31 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.23 2017/09/04 19:33:43 adam Exp $
+@comment $NetBSD: PLIST,v 1.24 2017/11/13 09:33:31 adam Exp $
 man/man1/clusterdb.1
 man/man1/createdb.1
 man/man1/createlang.1
@@ -1083,6 +1083,7 @@
 share/doc/postgresql/html/release-9-2-21.html
 share/doc/postgresql/html/release-9-2-22.html
 share/doc/postgresql/html/release-9-2-23.html
+share/doc/postgresql/html/release-9-2-24.html
 share/doc/postgresql/html/release-9-2-3.html
 share/doc/postgresql/html/release-9-2-4.html
 share/doc/postgresql/html/release-9-2-5.html
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql92-server/PLIST
--- a/databases/postgresql92-server/PLIST       Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql92-server/PLIST       Mon Nov 13 09:33:31 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2017/05/12 19:37:54 adam Exp $
+@comment $NetBSD: PLIST,v 1.14 2017/11/13 09:33:31 adam Exp $
 bin/postgres
 bin/postmaster
 include/postgresql/server/plpgsql.h
@@ -442,7 +442,6 @@
 share/postgresql/timezone/CST6CDT
 share/postgresql/timezone/Canada/Atlantic
 share/postgresql/timezone/Canada/Central
-share/postgresql/timezone/Canada/East-Saskatchewan
 share/postgresql/timezone/Canada/Eastern
 share/postgresql/timezone/Canada/Mountain
 share/postgresql/timezone/Canada/Newfoundland
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql92/Makefile.common
--- a/databases/postgresql92/Makefile.common    Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql92/Makefile.common    Mon Nov 13 09:33:31 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2017/11/10 14:47:41 fhajny Exp $
+# $NetBSD: Makefile.common,v 1.33 2017/11/13 09:33:31 adam Exp $
 #
 # This Makefile fragment is included by all PostgreSQL packages built from
 # the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -16,7 +16,7 @@
 # used by databases/postgresql92-pltcl/Makefile
 # used by databases/postgresql92-server/Makefile
 
-DISTNAME=      postgresql-9.2.23
+DISTNAME=      postgresql-9.2.24
 CATEGORIES=    databases
 MASTER_SITES=  ${MASTER_SITE_PGSQL:=source/v${PKGVERSION_NOREV}/}
 EXTRACT_SUFX=  .tar.bz2
@@ -39,7 +39,6 @@
 COMMON_FILESDIR?=      ${.CURDIR}/../../databases/postgresql92/files
 PATCHDIR?=             ${.CURDIR}/../../databases/postgresql92/patches
 
-USE_GCC_RUNTIME=       yes
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            bison gmake lex msgfmt
 PKG_SYSCONFSUBDIR=     postgresql
@@ -66,11 +65,12 @@
 CONFIGURE_ARGS+=       --with-template=${PG_TEMPLATE.${OPSYS}}
 
 CONFIGURE_ARGS+=       --enable-nls
+CONFIGURE_ARGS+=       --with-gssapi
+CONFIGURE_ARGS+=       --with-libxml
+CONFIGURE_ARGS+=       --with-readline
 CONFIGURE_ARGS+=       --without-perl
 CONFIGURE_ARGS+=       --without-python
-CONFIGURE_ARGS+=       --without-readline
 CONFIGURE_ARGS+=       --without-tcl
-CONFIGURE_ARGS+=       --without-zlib
 
 # sys/ucred.h shouldn't be included on Solaris, causes conflicts between
 # procfs and largefile.
@@ -85,8 +85,8 @@
 .endif
 
 # configure fails on OpenBSD and MirBSD if thread safety is enabled.
-CONFIGURE_ARGS.MirBSD+=                --disable-thread-safety
-CONFIGURE_ARGS.OpenBSD+=       --disable-thread-safety
+CONFIGURE_ARGS.MirBSD+=        --disable-thread-safety
+CONFIGURE_ARGS.OpenBSD+=--disable-thread-safety
 
 # PGSQL_BLCKSZ is the size in bytes of a PostgreSQL disk page or block.
 # This also limits the size of a tuple.  The valid values are powers
@@ -109,6 +109,13 @@
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 LIBS.SunOS+=           -lintl
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+
+.include "../../mk/readline.buildlink3.mk"
+.if ${READLINE_TYPE} == "editline"
+CONFIGURE_ARGS+=       --with-libedit-preferred
+.endif
 
 .if !defined(META_PACKAGE)
 post-extract:
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql92/distinfo
--- a/databases/postgresql92/distinfo   Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql92/distinfo   Mon Nov 13 09:33:31 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.25 2017/09/04 19:33:43 adam Exp $
+$NetBSD: distinfo,v 1.26 2017/11/13 09:33:31 adam Exp $
 
-SHA1 (postgresql-9.2.23.tar.bz2) = bdedc8aebb1f1622834b7e5636e2712581c83731
-RMD160 (postgresql-9.2.23.tar.bz2) = 4200df89fc85ff1cd3e58cc5dee83bf457ddf1e5
-SHA512 (postgresql-9.2.23.tar.bz2) = 9715cb9aa34921f7d246837c6c516d588f88fda543ad635520e9575a5ea448ad39062f2c89c086c7f129cc5f61f4dca33e4f5fd94e1df39da428507c56a81ba3
-Size (postgresql-9.2.23.tar.bz2) = 16531436 bytes
+SHA1 (postgresql-9.2.24.tar.bz2) = 63d6966ccdbab6aae1f9754fdb8e341ada1ef653
+RMD160 (postgresql-9.2.24.tar.bz2) = 2fc1b9c37cfefd5fae5bd02f974484c5fc680c08
+SHA512 (postgresql-9.2.24.tar.bz2) = a6f043e5ef5e12e23c1c43b26a5ecafce62f3a86f38b5b85e7cb0cb7aa376d40e460a526baf67ae40de40525e4744fb5e48650ee5e007db4ce9742fcf548bd56
+Size (postgresql-9.2.24.tar.bz2) = 16552576 bytes
 SHA1 (patch-config_missing) = c2d7d742922ba6861e7660c75b7b53f09e564813
 SHA1 (patch-config_perl.m4) = c7e5aaff1c47d2e33df7692a412ef984c77ffcc0
 SHA1 (patch-configure) = 21b27add570cff1a24c440201eb1ed49f8223747
diff -r 671a62a64b18 -r 32f91a5bf908 databases/postgresql92/options.mk
--- a/databases/postgresql92/options.mk Mon Nov 13 08:10:19 2017 +0000
+++ b/databases/postgresql92/options.mk Mon Nov 13 09:33:31 2017 +0000
@@ -1,13 +1,11 @@
-# $NetBSD: options.mk,v 1.3 2013/10/12 05:05:42 richard Exp $
+# $NetBSD: options.mk,v 1.4 2017/11/13 09:33:31 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.postgresql92
-PKG_SUPPORTED_OPTIONS= bonjour gssapi kerberos ldap pam xml dtrace
+PKG_SUPPORTED_OPTIONS= bonjour dtrace kerberos ldap pam
 
 .include "../../mk/bsd.options.mk"
 
-###
-### Bonjour support.



Home | Main Index | Thread Index | Old Index