Subject: CVS commit: pkgsrc/databases
From: Adam Ciarcinski
Date: 2020-11-16 13:15:07
Message id: 20201116121508.BD84EFA9D@cvs.NetBSD.org

Log Message:
postgresql: updated to 13.1, 12.5, 11.10, 10.15, 9.6.20, and 9.5.24

PostgreSQL 13.1, 12.5, 11.10, 10.15, 9.6.20, and 9.5.24

Security Issues

* CVE-2020-25695: Multiple features escape "security restricted \ 
operation" sandbox
* CVE-2020-25694: Reconnection can downgrade connection security settings
* CVE-2020-25696: psql's \gset allows overwriting specially treated variables

Bug Fixes and Improvements

This update also fixes over 65 bugs that were reported in the last several \ 
months. Some of these issues only affect version 13, but may also apply to other \ 
supported versions.

Some of these fixes include:

Fix a breakage in the replication protocol by ensuring that two "command \ 
completion" events are expected for START_REPLICATION.
Ensure fsync is called on the SLRU caches that PostgreSQL maintains. This \ 
prevents potential data loss due to an operating system crash.
Fix ALTER ROLE usage for users with the BYPASSRLS permission.
ALTER TABLE ONLY ... DROP EXPRESSION is disallowed on partitioned tables when \ 
there are child tables.
Ensure that ALTER TABLE ONLY ... ENABLE/DISABLE TRIGGER does not apply to child \ 
tables.
Fix for ALTER TABLE ... SET NOT NULL on partitioned tables to avoid a potential \ 
deadlock in parallel pg_restore.
Fix handling of expressions in CREATE TABLE LIKE with inheritance.
DROP INDEX CONCURRENTLY is disallowed on partitioned tables.
Allow LOCK TABLE to succeed on a self-referential view instead of throwing an error.
Several fixes around statistics collection and progress reporting for REINDEX \ 
CONCURRENTLY.
Ensure that GENERATED columns are updated when any columns they depend on are \ 
updated via a rule or an updatable view.
Support hash partitioning with text array columns as partition keys.
Allow the jsonpath .datetime() method to accept ISO 8601-format timestamps.
During a "smart" shutdown, ensure background processes are not \ 
terminated until all foreground client sessions are completed, fixing an issue \ 
that broke the processing of parallel queries.
Several fixes for the query planner and optimizer.
Ensure that data is de-toasted before being inserted into a BRIN index. This \ 
could manifest itself with errors like "missing chunk number 0 for toast \ 
value NNN". If you have seen a similar error in an existing BRIN index, you \ 
should be able to correct it by using REINDEX on the index.
Fix the output of EXPLAIN to have the correct XML tag nesting for incremental \ 
sort plans.
Several fixes for memory leaks, including ones involving RLS policies, using \ 
CALL with PL/pgSQL, SIGHUP processing a configuration parameter that cannot be \ 
applied without a restart, and an edge-case for index lookup for a partition.
libpq can now support arbitrary-length lines in the .pgpass file.
On Windows, psql now reads the output of a backtick command in text mode, not \ 
binary mode, so it can now properly handle newlines.
Fix how pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb use complex \ 
connection-string parameters.
When the \connect command of psql reuses connection parameters, ensure that all \ 
non-overridden parameters from a previous connection string are also re-used.
Ensure that pg_dump collects per-column information about extension \ 
configuration tables, avoiding crashes when specifying --inserts.
Ensure that parallel pg_restore processes foreign keys referencing partitioned \ 
tables in the correct order.
Several fixes for contrib/pgcrypto, including a memory leak fix.

Files:
RevisionActionfile
1.21modifypkgsrc/databases/postgresql10/Makefile
1.23modifypkgsrc/databases/postgresql10/Makefile.common
1.17modifypkgsrc/databases/postgresql10/distinfo
1.13modifypkgsrc/databases/postgresql10-client/Makefile
1.13modifypkgsrc/databases/postgresql10-contrib/Makefile
1.9modifypkgsrc/databases/postgresql10-docs/Makefile
1.16modifypkgsrc/databases/postgresql10-docs/PLIST
1.10modifypkgsrc/databases/postgresql10-plperl/Makefile
1.13modifypkgsrc/databases/postgresql10-plpython/Makefile
1.11modifypkgsrc/databases/postgresql10-pltcl/Makefile
1.15modifypkgsrc/databases/postgresql10-server/Makefile
1.14modifypkgsrc/databases/postgresql11/Makefile
1.16modifypkgsrc/databases/postgresql11/Makefile.common
1.12modifypkgsrc/databases/postgresql11/distinfo
1.9modifypkgsrc/databases/postgresql11-client/Makefile
1.10modifypkgsrc/databases/postgresql11-contrib/Makefile
1.7modifypkgsrc/databases/postgresql11-docs/Makefile
1.11modifypkgsrc/databases/postgresql11-docs/PLIST
1.8modifypkgsrc/databases/postgresql11-plperl/Makefile
1.11modifypkgsrc/databases/postgresql11-plpython/Makefile
1.9modifypkgsrc/databases/postgresql11-pltcl/Makefile
1.12modifypkgsrc/databases/postgresql11-server/Makefile
1.12modifypkgsrc/databases/postgresql12/Makefile
1.9modifypkgsrc/databases/postgresql12/Makefile.common
1.6modifypkgsrc/databases/postgresql12/distinfo
1.11modifypkgsrc/databases/postgresql12-client/Makefile
1.6modifypkgsrc/databases/postgresql12-client/PLIST
1.10modifypkgsrc/databases/postgresql12-contrib/Makefile
1.7modifypkgsrc/databases/postgresql12-docs/Makefile
1.6modifypkgsrc/databases/postgresql12-docs/PLIST
1.8modifypkgsrc/databases/postgresql12-plperl/Makefile
1.9modifypkgsrc/databases/postgresql12-plpython/Makefile
1.9modifypkgsrc/databases/postgresql12-pltcl/Makefile
1.11modifypkgsrc/databases/postgresql12-server/Makefile
1.3modifypkgsrc/databases/postgresql13/Makefile
1.2modifypkgsrc/databases/postgresql13/Makefile.common
1.2modifypkgsrc/databases/postgresql13/distinfo
1.3modifypkgsrc/databases/postgresql13-client/Makefile
1.2modifypkgsrc/databases/postgresql13-client/PLIST
1.3modifypkgsrc/databases/postgresql13-contrib/Makefile
1.3modifypkgsrc/databases/postgresql13-docs/Makefile
1.2modifypkgsrc/databases/postgresql13-docs/PLIST
1.3modifypkgsrc/databases/postgresql13-plperl/Makefile
1.3modifypkgsrc/databases/postgresql13-plpython/Makefile
1.3modifypkgsrc/databases/postgresql13-pltcl/Makefile
1.3modifypkgsrc/databases/postgresql13-server/Makefile
1.14modifypkgsrc/databases/postgresql95/Makefile
1.34modifypkgsrc/databases/postgresql95/Makefile.common
1.26modifypkgsrc/databases/postgresql95/distinfo
1.17modifypkgsrc/databases/postgresql95-client/Makefile
1.7modifypkgsrc/databases/postgresql95-client/PLIST
1.14modifypkgsrc/databases/postgresql95-contrib/Makefile
1.11modifypkgsrc/databases/postgresql95-docs/Makefile
1.24modifypkgsrc/databases/postgresql95-docs/PLIST
1.14modifypkgsrc/databases/postgresql95-plperl/Makefile
1.15modifypkgsrc/databases/postgresql95-plpython/Makefile
1.2modifypkgsrc/databases/postgresql95-plpython/PLIST
1.13modifypkgsrc/databases/postgresql95-pltcl/Makefile
1.2modifypkgsrc/databases/postgresql95-pltcl/PLIST
1.16modifypkgsrc/databases/postgresql95-server/Makefile
1.11modifypkgsrc/databases/postgresql95-server/PLIST
1.10modifypkgsrc/databases/postgresql96/Makefile
1.28modifypkgsrc/databases/postgresql96/Makefile.common
1.22modifypkgsrc/databases/postgresql96/distinfo
1.15modifypkgsrc/databases/postgresql96-client/Makefile
1.14modifypkgsrc/databases/postgresql96-contrib/Makefile
1.9modifypkgsrc/databases/postgresql96-docs/Makefile
1.20modifypkgsrc/databases/postgresql96-docs/PLIST
1.10modifypkgsrc/databases/postgresql96-plperl/Makefile
1.13modifypkgsrc/databases/postgresql96-plpython/Makefile
1.11modifypkgsrc/databases/postgresql96-pltcl/Makefile
1.13modifypkgsrc/databases/postgresql96-server/Makefile
1.1addpkgsrc/databases/postgresql12/patches/patch-src_backend_commands_collationcmds.c