DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 12.5 release changes
All features, fixes, and compatibility notes in this release, with related records from other versions.
Includes changes after the source version through the target. A major version name means its initial release.
Detect the source version from your database
Complete release changes
12.5
2020-11-12
12.5stableSupport ends 2024-11-21
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2020-25695 Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries | 12.5 | Recorded fix | |
| CVE-2020-25694 Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb | 12.5 | Recorded fix | |
| CVE-2020-25696 Prevent psql's \gset command from modifying specially-treated variables | 12.5 | Recorded fix |
PostgreSQL 12.5
Migration and compatibility
A dump/restore is not required for those running 12.X.
However, if you are upgrading from a version earlier than 12.2, see Section E.21.
SecurityBlock DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries
Changes
Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries (Noah Misch) §
This is essentially a leak in the “security restricted operation” sandbox mechanism. An attacker having permission to create non-temporary SQL objects could parlay this leak to execute arbitrary SQL code as a superuser.
The PostgreSQL Project thanks Etienne Stalmans for reporting this problem. (CVE-2020-25695)
Related records (5)
- Same changePostgreSQL 13.1 · Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries
- Same changePostgreSQL 11.10 · Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries
- Same changePostgreSQL 10.15 · Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries
- Same changePostgreSQL 9.6.20 · Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries
- Same changePostgreSQL 9.5.24 · Block DECLARE CURSOR ... WITH HOLD and firing of deferred triggers within index expressions and materialized view queries
SecurityFix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb
Changes
Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb (Tom Lane) § §
The -d parameter of pg_dump and pg_restore, or the --maintenance-db parameter of the other programs mentioned, can be a “connection string” containing multiple connection parameters rather than just a database name. In cases where these programs need to initiate additional connections, such as parallel processing or processing of multiple databases, the connection string was forgotten and just the basic connection parameters (database name, host, port, and username) were used for the additional connections. This could lead to connection failures if the connection string included any other essential information, such as non-default SSL or GSS parameters. Worse, the connection might succeed but not be encrypted as intended, or be vulnerable to man-in-the-middle attacks that the intended connection parameters would have prevented. (CVE-2020-25694)
Related records (5)
- Same changePostgreSQL 13.1 · Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb
- Same changePostgreSQL 11.10 · Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb
- Same changePostgreSQL 10.15 · Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb
- Same changePostgreSQL 9.6.20 · Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb
- Same changePostgreSQL 9.5.24 · Fix usage of complex connection-string parameters in pg_dump, pg_restore, clusterdb, reindexdb, and vacuumdb
SecurityWhen psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used
Changes
When psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used (Tom Lane) §
This avoids cases where reconnection might fail due to omission of relevant parameters, such as non-default SSL or GSS options. Worse, the reconnection might succeed but not be encrypted as intended, or be vulnerable to man-in-the-middle attacks that the intended connection parameters would have prevented. This is largely the same problem as just cited for pg_dump et al, although psql's behavior is more complex since the user may intentionally override some connection parameters. (CVE-2020-25694)
Related records (5)
- Same changePostgreSQL 13.1 · When psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used
- Same changePostgreSQL 11.10 · When psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used
- Same changePostgreSQL 10.15 · When psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used
- Same changePostgreSQL 9.6.20 · When psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used
- Same changePostgreSQL 9.5.24 · When psql's \connect command re-uses connection parameters, ensure that all non-overridden parameters from a previous connection string are re-used
SecurityPrevent psql's \gset command from modifying specially-treated variables
Changes
Prevent psql's \gset command from modifying specially-treated variables (Noah Misch) §
\gset without a prefix would overwrite whatever variables the server told it to. Thus, a compromised server could set specially-treated variables such as PROMPT1, giving the ability to execute arbitrary shell code in the user's session.
The PostgreSQL Project thanks Nick Cleaton for reporting this problem. (CVE-2020-25696)
Related records (5)
- Same changePostgreSQL 13.1 · Prevent psql's \gset command from modifying specially-treated variables
- Same changePostgreSQL 11.10 · Prevent psql's \gset command from modifying specially-treated variables
- Same changePostgreSQL 10.15 · Prevent psql's \gset command from modifying specially-treated variables
- Same changePostgreSQL 9.6.20 · Prevent psql's \gset command from modifying specially-treated variables
- Same changePostgreSQL 9.5.24 · Prevent psql's \gset command from modifying specially-treated variables
ImprovementsPrevent possible data loss from concurrent truncations of SLRU logs
Changes
Prevent possible data loss from concurrent truncations of SLRU logs (Noah Misch) § §
This rare problem would manifest in later “apparent wraparound” or “could not access status of transaction” errors.
Related records (4)
- Same changePostgreSQL 11.10 · Prevent possible data loss from concurrent truncations of SLRU logs
- Same changePostgreSQL 10.15 · Prevent possible data loss from concurrent truncations of SLRU logs
- Same changePostgreSQL 9.6.20 · Prevent possible data loss from concurrent truncations of SLRU logs
- Same changePostgreSQL 9.5.24 · Prevent possible data loss from concurrent truncations of SLRU logs
ImprovementsEnsure that SLRU directories are properly fsync'd during checkpoints
Changes
Ensure that SLRU directories are properly fsync'd during checkpoints (Thomas Munro) §
This prevents possible data loss in a subsequent operating system crash.
Related records (5)
- Same changePostgreSQL 13.1 · Ensure that SLRU directories are properly fsync'd during checkpoints
- Same changePostgreSQL 11.10 · Ensure that SLRU directories are properly fsync'd during checkpoints
- Same changePostgreSQL 10.15 · Ensure that SLRU directories are properly fsync'd during checkpoints
- Same changePostgreSQL 9.6.20 · Ensure that SLRU directories are properly fsync'd during checkpoints
- Same changePostgreSQL 9.5.24 · Ensure that SLRU directories are properly fsync'd during checkpoints
Bug fixesFix ALTER ROLE for users with the BYPASSRLS attribute
Changes
Fix ALTER ROLE for users with the BYPASSRLS attribute (Tom Lane, Stephen Frost) §
The BYPASSRLS attribute is only allowed to be changed by superusers, but other ALTER ROLE operations, such as password changes, should be allowed with only ordinary permission checks. The previous coding erroneously restricted all changes on such a role to superusers.
Related records (5)
- Same changePostgreSQL 13.1 · Fix ALTER ROLE for users with the BYPASSRLS attribute
- Same changePostgreSQL 11.10 · Fix ALTER ROLE for users with the BYPASSRLS attribute
- Same changePostgreSQL 10.15 · Fix ALTER ROLE for users with the BYPASSRLS attribute
- Same changePostgreSQL 9.6.20 · Fix ALTER ROLE for users with the BYPASSRLS attribute
- Same changePostgreSQL 9.5.24 · Fix ALTER ROLE for users with the BYPASSRLS attribute
ImprovementsEnsure that ALTER TABLE ONLY ... ENABLE/DISABLE TRIGGER does not recurse to child tables
Changes
Ensure that ALTER TABLE ONLY ... ENABLE/DISABLE TRIGGER does not recurse to child tables (Álvaro Herrera) §
Previously the ONLY flag was ignored.
ImprovementsAvoid unnecessary recursion to partitions in ALTER TABLE SET NOT NULL, when the target column is already marked NOT NULL
Changes
Avoid unnecessary recursion to partitions in ALTER TABLE SET NOT NULL, when the target column is already marked NOT NULL (Tom Lane) §
This avoids a potential deadlock in parallel pg_restore.
Bug fixesFix handling of expressions in CREATE TABLE LIKE with inheritance
Changes
Fix handling of expressions in CREATE TABLE LIKE with inheritance (Tom Lane) § §
If a CREATE TABLE command uses both LIKE and traditional inheritance, column references in CHECK constraints and expression indexes that came from a LIKE parent table tended to get mis-numbered, resulting in wrong answers and/or bizarre error messages. The same could happen in GENERATED expressions, in branches that have that feature.
Related records (4)
- Same changePostgreSQL 11.10 · Fix handling of expressions in CREATE TABLE LIKE with inheritance
- Same changePostgreSQL 10.15 · Fix handling of expressions in CREATE TABLE LIKE with inheritance
- Same changePostgreSQL 9.6.20 · Fix handling of expressions in CREATE TABLE LIKE with inheritance
- Same changePostgreSQL 9.5.24 · Fix handling of expressions in CREATE TABLE LIKE with inheritance
ImprovementsDisallow DROP INDEX CONCURRENTLY on a partitioned table
Changes
Disallow DROP INDEX CONCURRENTLY on a partitioned table (Álvaro Herrera, Michael Paquier) §
This case failed anyway, but with a confusing error message.
Related records (1)
ImprovementsAllow LOCK TABLE to succeed on a self-referential view
Changes
Allow LOCK TABLE to succeed on a self-referential view (Tom Lane) §
It previously threw an error complaining about infinite recursion, but there seems no need to disallow the case.
Related records (2)
ImprovementsRetain statistics about an index across REINDEX CONCURRENTLY
Changes
Retain statistics about an index across REINDEX CONCURRENTLY (Michael Paquier, Fabrízio de Royes Mello) §
Non-concurrent reindexing has always preserved such statistics.
Related records (1)
Bug fixesFix incorrect progress reporting from REINDEX CONCURRENTLY
Changes
Fix incorrect progress reporting from REINDEX CONCURRENTLY (Matthias van de Meent, Michael Paquier) §
Related records (1)
ImprovementsEnsure that GENERATED columns are updated when the column(s) they depend on are updated via a rule or an updatable view
Changes
Ensure that GENERATED columns are updated when the column(s) they depend on are updated via a rule or an updatable view (Tom Lane) §
This fix also takes care of possible failure to fire a column-specific trigger in such cases.
Bug fixesRecheck default partition constraints while routing an inserted or updated tuple to the correct partition
Changes
Recheck default partition constraints while routing an inserted or updated tuple to the correct partition (Amit Langote, Álvaro Herrera) §
This fixes race conditions when partitions are added concurrently with the insertion.
Bug fixesFix failures with collation-dependent partition bound expressions
Changes
Fix failures with collation-dependent partition bound expressions (Tom Lane) §
Related records (1)
ImprovementsSupport hashing of text arrays
Changes
Support hashing of text arrays (Peter Eisentraut) §
Array hashing failed if the array element type is collatable. Notably, this prevented using hash partitioning with a text array column as partition key.
Related records (1)
Bug fixesFix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp()
Changes
Fix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp() (Dar Alathar-Yemen, Tom Lane) §
Also, arrange for the combination of a negative year and an explicit “BC” marker to cancel out and produce AD.
Related records (5)
- Same changePostgreSQL 13.1 · Fix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp()
- Same changePostgreSQL 11.10 · Fix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp()
- Same changePostgreSQL 10.15 · Fix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp()
- Same changePostgreSQL 9.6.20 · Fix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp()
- Same changePostgreSQL 9.5.24 · Fix off-by-one conversion of negative years to BC dates in to_date() and to_timestamp()
ImprovementsEnsure that standby servers will archive WAL timeline history files when archive_mode is set to always
Changes
Ensure that standby servers will archive WAL timeline history files when archive_mode is set to always (Grigory Smolkin, Fujii Masao) §
This oversight could lead to failure of subsequent PITR recovery attempts.
Related records (5)
- Same changePostgreSQL 13.1 · Ensure that standby servers will archive WAL timeline history files when archive_mode is set to always
- Same changePostgreSQL 11.10 · Ensure that standby servers will archive WAL timeline history files when archive_mode is set to always
- Same changePostgreSQL 10.15 · Ensure that standby servers will archive WAL timeline history files when archive_mode is set to always
- Same changePostgreSQL 9.6.20 · Ensure that standby servers will archive WAL timeline history files when archive_mode is set to always
- Same changePostgreSQL 9.5.24 · Ensure that standby servers will archive WAL timeline history files when archive_mode is set to always
Bug fixesFix “cache lookup failed for relation 0” failures in logical replication workers
Changes
Fix “cache lookup failed for relation 0” failures in logical replication workers (Tom Lane) §
The real-world impact is small, since the failure is unlikely, and if it does happen the worker would just exit and be restarted.
ImprovementsPrevent logical replication workers from sending redundant ping requests
Changes
Prevent logical replication workers from sending redundant ping requests (Tom Lane) §
ImprovementsDuring “smart” shutdown, don't terminate background processes until all client (foreground) sessions are done
Changes
During “smart” shutdown, don't terminate background processes until all client (foreground) sessions are done (Tom Lane) §
The previous behavior broke parallel query processing, since the postmaster would terminate parallel workers and refuse to launch any new ones. It also caused autovacuum to cease functioning, which could have dire long-term effects if the surviving client sessions make a lot of data changes.
Related records (3)
- Same changePostgreSQL 11.10 · During “smart” shutdown, don't terminate background processes until all client (foreground) sessions are done
- Same changePostgreSQL 10.15 · During “smart” shutdown, don't terminate background processes until all client (foreground) sessions are done
- Same changePostgreSQL 9.6.20 · During "smart" shutdown, don't terminate background processes until all client (foreground) sessions are done
ImprovementsAvoid recursive consumption of stack space while processing signals in the postmaster
Changes
Avoid recursive consumption of stack space while processing signals in the postmaster (Tom Lane) §
Heavy use of parallel processing has been observed to cause postmaster crashes due to too many concurrent signals requesting creation of a parallel worker process.
Related records (3)
- Same changePostgreSQL 11.10 · Avoid recursive consumption of stack space while processing signals in the postmaster
- Same changePostgreSQL 10.15 · Avoid recursive consumption of stack space while processing signals in the postmaster
- Same changePostgreSQL 9.6.20 · Avoid recursive consumption of stack space while processing signals in the postmaster
ImprovementsAvoid running atexit handlers when exiting due to SIGQUIT
Changes
Avoid running atexit handlers when exiting due to SIGQUIT (Kyotaro Horiguchi, Tom Lane) § §
Most server processes followed this practice already, but the archiver process was overlooked. Backends that were still waiting for a client startup packet got it wrong, too.
Related records (4)
- Same changePostgreSQL 11.10 · Avoid running atexit handlers when exiting due to SIGQUIT
- Same changePostgreSQL 10.15 · Avoid running atexit handlers when exiting due to SIGQUIT
- Same changePostgreSQL 9.6.20 · Avoid running atexit handlers when exiting due to SIGQUIT
- Same changePostgreSQL 9.5.24 · Avoid running atexit handlers when exiting due to SIGQUIT
ImprovementsAvoid misoptimization of subquery qualifications that reference apparently-constant grouping columns
Changes
Avoid misoptimization of subquery qualifications that reference apparently-constant grouping columns (Tom Lane) §
A “constant” subquery output column isn't really constant if it is a grouping column that appears in only some of the grouping sets.
Related records (4)
- Same changePostgreSQL 11.10 · Avoid misoptimization of subquery qualifications that reference apparently-constant grouping columns
- Same changePostgreSQL 10.15 · Avoid misoptimization of subquery qualifications that reference apparently-constant grouping columns
- Same changePostgreSQL 9.6.20 · Avoid misoptimization of subquery qualifications that reference apparently-constant grouping columns
- Same changePostgreSQL 9.5.24 · Avoid misoptimization of subquery qualifications that reference apparently-constant grouping columns
Bug fixesFix possible crash when considering partition-wise joins during GEQO planning
Changes
Fix possible crash when considering partition-wise joins during GEQO planning (Tom Lane) §
Related records (1)
ImprovementsAvoid failure when SQL function inlining changes the shape of a potentially-hashable subplan comparison expression
Changes
Avoid failure when SQL function inlining changes the shape of a potentially-hashable subplan comparison expression (Tom Lane) §
Related records (4)
- Same changePostgreSQL 11.10 · Avoid failure when SQL function inlining changes the shape of a potentially-hashable subplan comparison expression
- Same changePostgreSQL 10.15 · Avoid failure when SQL function inlining changes the shape of a potentially-hashable subplan comparison expression
- Same changePostgreSQL 9.6.20 · Avoid failure when SQL function inlining changes the shape of a potentially-hashable subplan comparison expression
- Same changePostgreSQL 9.5.24 · Avoid failure when SQL function inlining changes the shape of a potentially-hashable subplan comparison expression
ImprovementsWhile building or re-building an index, tolerate the appearance of new HOT chains due to concurrent updates
Changes
While building or re-building an index, tolerate the appearance of new HOT chains due to concurrent updates (Anastasia Lubennikova, Álvaro Herrera) § §
This oversight could lead to “failed to find parent tuple for heap-only tuple” errors.
Related records (4)
- Same changePostgreSQL 11.10 · While building or re-building an index, tolerate the appearance of new HOT chains due to concurrent updates
- Same changePostgreSQL 10.15 · While building or re-building an index, tolerate the appearance of new HOT chains due to concurrent updates
- Same changePostgreSQL 9.6.20 · While building or re-building an index, tolerate the appearance of new HOT chains due to concurrent updates
- Same changePostgreSQL 9.5.24 · While building or re-building an index, tolerate the appearance of new HOT chains due to concurrent updates
Bug fixesFix failure of parallel B-tree index scans when the index condition is unsatisfiable
Changes
Fix failure of parallel B-tree index scans when the index condition is unsatisfiable (James Hunter) §
ImprovementsEnsure that data is detoasted before being inserted into a BRIN index
Changes
Ensure that data is detoasted before being inserted into a BRIN index (Tomas Vondra) §
Index entries are not supposed to contain out-of-line TOAST pointers, but BRIN didn't get that memo. This could lead to errors like “missing chunk number 0 for toast value NNN”. (If you are faced with such an error from an existing index, REINDEX should be enough to fix it.)
Related records (5)
- Same changePostgreSQL 13.1 · Ensure that data is detoasted before being inserted into a BRIN index
- Same changePostgreSQL 11.10 · Ensure that data is detoasted before being inserted into a BRIN index
- Same changePostgreSQL 10.15 · Ensure that data is detoasted before being inserted into a BRIN index
- Same changePostgreSQL 9.6.20 · Ensure that data is detoasted before being inserted into a BRIN index
- Same changePostgreSQL 9.5.24 · Ensure that data is detoasted before being inserted into a BRIN index
ImprovementsHandle concurrent desummarization correctly during BRIN index scans
Changes
Handle concurrent desummarization correctly during BRIN index scans (Alexander Lakhin, Álvaro Herrera) §
Previously, if a page range was desummarized at just the wrong time, an index scan might falsely raise an error indicating index corruption.
Related records (4)
- Same changePostgreSQL 11.10 · Handle concurrent desummarization correctly during BRIN index scans
- Same changePostgreSQL 10.15 · Handle concurrent desummarization correctly during BRIN index scans
- Same changePostgreSQL 9.6.20 · Handle concurrent desummarization correctly during BRIN index scans
- Same changePostgreSQL 9.5.24 · Handle concurrent desummarization correctly during BRIN index scans
Bug fixesFix rare “lost saved point in index” errors in scans of multicolumn GIN indexes
Changes
Fix rare “lost saved point in index” errors in scans of multicolumn GIN indexes (Tom Lane) §
Related records (4)
- Same changePostgreSQL 11.10 · Fix rare “lost saved point in index” errors in scans of multicolumn GIN indexes
- Same changePostgreSQL 10.15 · Fix rare “lost saved point in index” errors in scans of multicolumn GIN indexes
- Same changePostgreSQL 9.6.20 · Fix rare "lost saved point in index" errors in scans of multicolumn GIN indexes
- Same changePostgreSQL 9.5.24 · Fix rare "lost saved point in index" errors in scans of multicolumn GIN indexes
Bug fixesFix buffered GiST index builds to work when the index has included columns
Changes
Fix buffered GiST index builds to work when the index has included columns (Pavel Borisov) §
Related records (1)
Bug fixesFix unportable use of getnameinfo() in pg_hba_file_rules view
Changes
Fix unportable use of getnameinfo() in pg_hba_file_rules view (Tom Lane) §
On FreeBSD 11, and possibly other platforms, the view's address and netmask columns were always null due to this error.
Bug fixesAvoid crash if debug_query_string is NULL when starting a parallel worker
Changes
Avoid crash if debug_query_string is NULL when starting a parallel worker (Noah Misch) §
Bug fixesFix use-after-free hazard when an event trigger monitors an ALTER TABLE operation
Changes
Fix use-after-free hazard when an event trigger monitors an ALTER TABLE operation (Jehan-Guillaume de Rorthais) §
Related records (4)
- Same changePostgreSQL 11.10 · Fix use-after-free hazard when an event trigger monitors an ALTER TABLE operation
- Same changePostgreSQL 10.15 · Fix use-after-free hazard when an event trigger monitors an ALTER TABLE operation
- Same changePostgreSQL 9.6.20 · Fix use-after-free hazard when an event trigger monitors an ALTER TABLE operation
- Same changePostgreSQL 9.5.24 · Fix use-after-free hazard when an event trigger monitors an ALTER TABLE operation
ImprovementsAvoid failures when a BEFORE ROW UPDATE trigger returns the “old” row of a table having dropped or “missing” columns
Changes
Avoid failures when a BEFORE ROW UPDATE trigger returns the “old” row of a table having dropped or “missing” columns (Amit Langote, Tom Lane) § §
This method of suppressing an update could result in crashes, unexpected CHECK constraint failures, or incorrect RETURNING output, because “missing” columns would read as NULLs for those purposes. (A column is “missing” for this purpose if it was added by ALTER TABLE ADD COLUMN with a non-NULL, but constant, default value.) Dropped columns could cause trouble as well.
Bug fixesFix incorrect error message about inconsistent moving-aggregate data types
Changes
Fix incorrect error message about inconsistent moving-aggregate data types (Jeff Janes) §
Related records (4)
- Same changePostgreSQL 11.10 · Fix incorrect error message about inconsistent moving-aggregate data types
- Same changePostgreSQL 10.15 · Fix incorrect error message about inconsistent moving-aggregate data types
- Same changePostgreSQL 9.6.20 · Fix incorrect error message about inconsistent moving-aggregate data types
- Same changePostgreSQL 9.5.24 · Fix incorrect error message about inconsistent moving-aggregate data types
ImprovementsAvoid lockup when a parallel worker reports a very long error message
Changes
Avoid lockup when a parallel worker reports a very long error message (Vignesh C) §
Related records (4)
- Same changePostgreSQL 11.10 · Avoid lockup when a parallel worker reports a very long error message
- Same changePostgreSQL 10.15 · Avoid lockup when a parallel worker reports a very long error message
- Same changePostgreSQL 9.6.20 · Avoid lockup when a parallel worker reports a very long error message
- Same changePostgreSQL 9.5.24 · Avoid lockup when a parallel worker reports a very long error message
ImprovementsAvoid unnecessary failure when transferring very large payloads through shared memory queues
Changes
Avoid unnecessary failure when transferring very large payloads through shared memory queues (Markus Wanner) §
Related records (5)
- Same changePostgreSQL 13.1 · Avoid unnecessary failure when transferring very large payloads through shared memory queues
- Same changePostgreSQL 11.10 · Avoid unnecessary failure when transferring very large payloads through shared memory queues
- Same changePostgreSQL 10.15 · Avoid unnecessary failure when transferring very large payloads through shared memory queues
- Same changePostgreSQL 9.6.20 · Avoid unnecessary failure when transferring very large payloads through shared memory queues
- Same changePostgreSQL 9.5.24 · Avoid unnecessary failure when transferring very large payloads through shared memory queues
Bug fixesFix incorrect handling of template function attributes in JIT code generation
Bug fixesFix relation cache memory leaks with RLS policies
Changes
Fix relation cache memory leaks with RLS policies (Tom Lane) §
Related records (5)
- Same changePostgreSQL 13.1 · Fix relation cache memory leaks with RLS policies
- Same changePostgreSQL 11.10 · Fix relation cache memory leaks with RLS policies
- Same changePostgreSQL 10.15 · Fix relation cache memory leaks with RLS policies
- Same changePostgreSQL 9.6.20 · Fix relation cache memory leaks with RLS policies
- Same changePostgreSQL 9.5.24 · Fix relation cache memory leaks with RLS policies
Bug fixesFix edge-case memory leak in index_get_partition()
Bug fixesFix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart
Changes
Fix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart (Tom Lane) §
Related records (5)
- Same changePostgreSQL 13.1 · Fix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart
- Same changePostgreSQL 11.10 · Fix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart
- Same changePostgreSQL 10.15 · Fix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart
- Same changePostgreSQL 9.6.20 · Fix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart
- Same changePostgreSQL 9.5.24 · Fix small memory leak when SIGHUP processing decides that a new GUC variable value cannot be applied without a restart
Bug fixesFix memory leaks in PL/pgsql's CALL processing
Changes
Fix memory leaks in PL/pgsql's CALL processing (Pavel Stehule, Tom Lane) §
Related records (2)
ImprovementsMake libpq support arbitrary-length lines in .pgpass files
Changes
Make libpq support arbitrary-length lines in .pgpass files (Tom Lane) § §
This is mostly useful to allow using very long security tokens as passwords.
Related records (4)
- Same changePostgreSQL 11.10 · Make libpq support arbitrary-length lines in .pgpass files
- Same changePostgreSQL 10.15 · Make libpq support arbitrary-length lines in .pgpass files
- Same changePostgreSQL 9.6.20 · Make libpq support arbitrary-length lines in .pgpass files
- Same changePostgreSQL 9.5.24 · Make libpq support arbitrary-length lines in .pgpass files
ImprovementsIn libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all
Changes
In libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all (Tom Lane, Alexander Lakhin) §
Previously, libpq invoked WSAStartup() at connection start and WSACleanup() at connection cleanup. However, it appears that calling WSACleanup() can interfere with other program operations; notably, we have observed rare failures to emit expected output to stdout. There appear to be no ill effects from omitting the call, so do that. (This also eliminates a performance issue from repeated DLL loads and unloads when a program performs a series of database connections.)
Related records (5)
- Same changePostgreSQL 13.1 · In libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all
- Same changePostgreSQL 11.10 · In libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all
- Same changePostgreSQL 10.15 · In libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all
- Same changePostgreSQL 9.6.20 · In libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all
- Same changePostgreSQL 9.5.24 · In libpq for Windows, call WSAStartup() once per process and WSACleanup() not at all
Bug fixesFix ecpg library's per-thread initialization logic for Windows
Changes
Fix ecpg library's per-thread initialization logic for Windows (Tom Lane, Alexander Lakhin) §
Multi-threaded ecpg applications could suffer rare misbehavior due to incorrect locking.
Related records (5)
- Same changePostgreSQL 13.1 · Fix ecpg library's per-thread initialization logic for Windows
- Same changePostgreSQL 11.10 · Fix ecpg library's per-thread initialization logic for Windows
- Same changePostgreSQL 10.15 · Fix ecpg library's per-thread initialization logic for Windows
- Same changePostgreSQL 9.6.20 · Fix ecpg library's per-thread initialization logic for Windows
- Same changePostgreSQL 9.5.24 · Fix ecpg library's per-thread initialization logic for Windows
ImprovementsOn Windows, make psql read the output of a backtick command in text mode, not binary mode
Changes
On Windows, make psql read the output of a backtick command in text mode, not binary mode (Tom Lane) §
This ensures proper handling of newlines.
Related records (5)
- Same changePostgreSQL 13.1 · On Windows, make psql read the output of a backtick command in text mode, not binary mode
- Same changePostgreSQL 11.10 · On Windows, make psql read the output of a backtick command in text mode, not binary mode
- Same changePostgreSQL 10.15 · On Windows, make psql read the output of a backtick command in text mode, not binary mode
- Same changePostgreSQL 9.6.20 · On Windows, make psql read the output of a backtick command in text mode, not binary mode
- Same changePostgreSQL 9.5.24 · On Windows, make psql read the output of a backtick command in text mode, not binary mode
ImprovementsEnsure that pg_dump collects per-column information about extension configuration tables
Changes
Ensure that pg_dump collects per-column information about extension configuration tables (Fabrízio de Royes Mello, Tom Lane) § §
Failure to do this led to crashes when specifying --inserts, or underspecified (though usually correct) COPY commands when using COPY to reload the tables' data.
Related records (5)
- Same changePostgreSQL 13.1 · Ensure that pg_dump collects per-column information about extension configuration tables
- Same changePostgreSQL 11.10 · Ensure that pg_dump collects per-column information about extension configuration tables
- Same changePostgreSQL 10.15 · Ensure that pg_dump collects per-column information about extension configuration tables
- Same changePostgreSQL 9.6.20 · Ensure that pg_dump collects per-column information about extension configuration tables
- Same changePostgreSQL 9.5.24 · Ensure that pg_dump collects per-column information about extension configuration tables
Bug fixesEnsure that parallel pg_restore processes foreign keys referencing partitioned tables in the correct order
Changes
Ensure that parallel pg_restore processes foreign keys referencing partitioned tables in the correct order (Álvaro Herrera) §
Previously, it might try to restore a foreign key constraint before the required indexes were all in place, leading to an error.
ImprovementsMake pg_upgrade check for pre-existence of tablespace directories in the target cluster
Changes
Make pg_upgrade check for pre-existence of tablespace directories in the target cluster (Bruce Momjian) § §
Related records (5)
- Same changePostgreSQL 13.1 · Make pg_upgrade check for pre-existence of tablespace directories in the target cluster
- Same changePostgreSQL 11.10 · Make pg_upgrade check for pre-existence of tablespace directories in the target cluster
- Same changePostgreSQL 10.15 · Make pg_upgrade check for pre-existence of tablespace directories in the target cluster
- Same changePostgreSQL 9.6.20 · Make pg_upgrade check for pre-existence of tablespace directories in the target cluster
- Same changePostgreSQL 9.5.24 · Make pg_upgrade check for pre-existence of tablespace directories in the target cluster
Bug fixesFix potential memory leak in contrib/pgcrypto
Changes
Fix potential memory leak in contrib/pgcrypto (Michael Paquier) §
Related records (5)
- Same changePostgreSQL 13.1 · Fix potential memory leak in contrib/pgcrypto
- Same changePostgreSQL 11.10 · Fix potential memory leak in contrib/pgcrypto
- Same changePostgreSQL 10.15 · Fix potential memory leak in contrib/pgcrypto
- Same changePostgreSQL 9.6.20 · Fix potential memory leak in contrib/pgcrypto
- Same changePostgreSQL 9.5.24 · Fix potential memory leak in contrib/pgcrypto
ImprovementsAdd check for an unlikely failure case in contrib/pgcrypto
Changes
Add check for an unlikely failure case in contrib/pgcrypto (Daniel Gustafsson) §
Related records (5)
- Same changePostgreSQL 13.1 · Add check for an unlikely failure case in contrib/pgcrypto
- Same changePostgreSQL 11.10 · Add check for an unlikely failure case in contrib/pgcrypto
- Same changePostgreSQL 10.15 · Add check for an unlikely failure case in contrib/pgcrypto
- Same changePostgreSQL 9.6.20 · Add check for an unlikely failure case in contrib/pgcrypto
- Same changePostgreSQL 9.5.24 · Add check for an unlikely failure case in contrib/pgcrypto
Bug fixesFix recently-added timetz test case so it works when the USA is not observing daylight savings time
Changes
Fix recently-added timetz test case so it works when the USA is not observing daylight savings time (Tom Lane) §
Related records (3)
- Same changePostgreSQL 13.1 · Fix recently-added timetz test case so it works when the USA is not observing daylight savings time
- Same changePostgreSQL 11.10 · Fix recently-added timetz test case so it works when the USA is not observing daylight savings time
- Same changePostgreSQL 10.15 · Fix recently-added timetz test case so it works when the USA is not observing daylight savings time
ImprovementsUpdate time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine.
Changes
Update time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine. (Tom Lane) § §
Related records (5)
- Same changePostgreSQL 13.1 · Update time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine.
- Same changePostgreSQL 11.10 · Update time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine.
- Same changePostgreSQL 10.15 · Update time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine.
- Same changePostgreSQL 9.6.20 · Update time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine.
- Same changePostgreSQL 9.5.24 · Update time zone data files to tzdata release 2020d for DST law changes in Fiji, Morocco, Palestine, the Canadian Yukon, Macquarie Island, and Casey Station (Antarctica); plus historical corrections for France, Hungary, Monaco, and Palestine.
ImprovementsSync our copy of the timezone library with IANA tzcode release 2020d
Changes
Sync our copy of the timezone library with IANA tzcode release 2020d (Tom Lane) § §
This absorbs upstream's change of zic's default output option from “fat” to “slim”. That's just cosmetic for our purposes, as we continue to select the “fat” mode in pre-v13 branches. This change also ensures that strftime() does not change errno unless it fails.
Related records (5)
- Same changePostgreSQL 13.1 · Sync our copy of the timezone library with IANA tzcode release 2020d
- Same changePostgreSQL 11.10 · Sync our copy of the timezone library with IANA tzcode release 2020d
- Same changePostgreSQL 10.15 · Sync our copy of the timezone library with IANA tzcode release 2020d
- Same changePostgreSQL 9.6.20 · Sync our copy of the timezone library with IANA tzcode release 2020d
- Same changePostgreSQL 9.5.24 · Sync our copy of the timezone library with IANA tzcode release 2020d
No matching changes
Try another search, or .
How is this comparison generated?
The comparison follows PostgreSQL release notes from just after the source through the target version. Confirmed backport duplicates are merged conservatively, with every original explanation retained. Related commits can represent independent changes; they remain separate records.
Release snapshot: 2026-11-19 · Security snapshot: 2026-09-26
Content comes from PostgreSQL release notes. Interaction inspired by pgversions.com and pgversionreport.