DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 11.11 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
11.11
2021-02-11
11.11stableSupport ends 2023-11-09
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2021-3393 Fix information leakage in constraint-violation error messages | 11.11 | Recorded fix |
PostgreSQL 11.11
Migration and compatibility
A dump/restore is not required for those running 11.X.
However, see the second changelog item below, which describes cases in which reindexing indexes after the upgrade may be advisable.
Also, if you are upgrading from a version earlier than 11.6, see Section E.17.
SecurityFix information leakage in constraint-violation error messages
Changes
Fix information leakage in constraint-violation error messages (Heikki Linnakangas)
If an UPDATE command attempts to move a row to a different partition but finds that it violates some constraint on the new partition, and the columns in that partition are in different physical positions than in the parent table, the error message could reveal the contents of columns that the user does not have SELECT privilege on. (CVE-2021-3393)
Related records (2)
Bug fixesFix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions
Changes
Fix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions (Andrey Borodin)
At the point where CREATE INDEX CONCURRENTLY waits for all concurrent transactions to complete so that it can see rows they inserted, it must also wait for all prepared transactions to complete, for the same reason. Its failure to do so meant that rows inserted by prepared transactions might be omitted from the new index, causing queries relying on the index to miss such rows. In installations that have enabled prepared transactions (max_prepared_transactions > 0), it's recommended to reindex any concurrently-built indexes in case this problem occurred when they were built.
Related records (5)
- Same changePostgreSQL 13.2 · Fix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions
- Same changePostgreSQL 12.6 · Fix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions
- Same changePostgreSQL 10.16 · Fix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions
- Same changePostgreSQL 9.6.21 · Fix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions
- Same changePostgreSQL 9.5.25 · Fix CREATE INDEX CONCURRENTLY to wait for concurrent prepared transactions
Bug fixesAvoid crash when a CALL or DO statement that performs a transaction rollback is executed via extended query protocol
Changes
Avoid crash when a CALL or DO statement that performs a transaction rollback is executed via extended query protocol (Thomas Munro, Tom Lane)
In PostgreSQL 13, this case reliably caused a null-pointer dereference. In earlier versions the bug seems to have no visible symptoms, but it's not quite clear that it could never cause a problem.
Related records (2)
Bug fixesFix partition pruning logic to handle asymmetric hash partition sets
Changes
Fix partition pruning logic to handle asymmetric hash partition sets (Tom Lane)
If a hash-partitioned table has unequally-sized partitions (that is, varying modulus values), or it lacks partitions for some remainder values, then the planner's pruning logic could mistakenly conclude that some partitions don't need to be scanned, leading to failure to find rows that the query should find.
ImprovementsAvoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node
Changes
Avoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node (Tom Lane)
This case is unsupported (in general, a cursor using ORDER BY is not guaranteed to be simply updatable); but the code previously did not reject it, and could silently give false matches.
Related records (5)
- Same changePostgreSQL 13.2 · Avoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node
- Same changePostgreSQL 12.6 · Avoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node
- Same changePostgreSQL 10.16 · Avoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node
- Same changePostgreSQL 9.6.21 · Avoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node
- Same changePostgreSQL 9.5.25 · Avoid incorrect results when WHERE CURRENT OF is applied to a cursor whose plan contains a MergeAppend node
Bug fixesFix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node
Changes
Fix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node (David Geier)
Related records (5)
- Same changePostgreSQL 13.2 · Fix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node
- Same changePostgreSQL 12.6 · Fix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node
- Same changePostgreSQL 10.16 · Fix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node
- Same changePostgreSQL 9.6.21 · Fix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node
- Same changePostgreSQL 9.5.25 · Fix crash when WHERE CURRENT OF is applied to a cursor whose plan contains a custom scan node
Bug fixesFix planner's handling of a placeholder that is computed at some join level and used only at that same level
Changes
Fix planner's handling of a placeholder that is computed at some join level and used only at that same level (Tom Lane)
This oversight could lead to “failed to build any N-way joins” planner errors.
Related records (5)
- Same changePostgreSQL 13.2 · Fix planner's handling of a placeholder that is computed at some join level and used only at that same level
- Same changePostgreSQL 12.6 · Fix planner's handling of a placeholder that is computed at some join level and used only at that same level
- Same changePostgreSQL 10.16 · Fix planner's handling of a placeholder that is computed at some join level and used only at that same level
- Same changePostgreSQL 9.6.21 · Fix planner's handling of a placeholder that is computed at some join level and used only at that same level
- Same changePostgreSQL 9.5.25 · Fix planner's handling of a placeholder that is computed at some join level and used only at that same level
ImprovementsBe more careful about whether index AMs support mark/restore
Changes
Be more careful about whether index AMs support mark/restore (Andrew Gierth)
This prevents errors about missing support functions in rare edge cases.
Related records (5)
- Same changePostgreSQL 13.2 · Be more careful about whether index AMs support mark/restore
- Same changePostgreSQL 12.6 · Be more careful about whether index AMs support mark/restore
- Same changePostgreSQL 10.16 · Be more careful about whether index AMs support mark/restore
- Same changePostgreSQL 9.6.21 · Be more careful about whether index AMs support mark/restore
- Same changePostgreSQL 9.5.25 · Be more careful about whether index AMs support mark/restore
ImprovementsAdjust settings to make it more difficult to run out of DSM slots during heavy usage of parallel queries
Changes
Adjust settings to make it more difficult to run out of DSM slots during heavy usage of parallel queries (Thomas Munro)
Bug fixesFix overestimate of the amount of shared memory needed for parallel queries
Changes
Fix overestimate of the amount of shared memory needed for parallel queries (Takayuki Tsunakawa)
Bug fixesFix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely
Changes
Fix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely (Michael Paquier)
Duplicate role or schema names within the same command could lead to “tuple already updated by self” errors or unique-constraint violations.
Related records (5)
- Same changePostgreSQL 13.2 · Fix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely
- Same changePostgreSQL 12.6 · Fix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely
- Same changePostgreSQL 10.16 · Fix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely
- Same changePostgreSQL 9.6.21 · Fix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely
- Same changePostgreSQL 9.5.25 · Fix ALTER DEFAULT PRIVILEGES to handle duplicated arguments safely
ImprovementsFlush ACL-related caches when pg_authid changes
Changes
Flush ACL-related caches when pg_authid changes (Noah Misch)
This change ensures that permissions-related decisions will promptly reflect the results of ALTER ROLE ... [NO] INHERIT.
Related records (5)
- Same changePostgreSQL 13.2 · Flush ACL-related caches when pg_authid changes
- Same changePostgreSQL 12.6 · Flush ACL-related caches when pg_authid changes
- Same changePostgreSQL 10.16 · Flush ACL-related caches when pg_authid changes
- Same changePostgreSQL 9.6.21 · Flush ACL-related caches when pg_authid changes
- Same changePostgreSQL 9.5.25 · Flush ACL-related caches when pg_authid changes
ImprovementsPrevent misprocessing of ambiguous CREATE TABLE LIKE clauses
Changes
Prevent misprocessing of ambiguous CREATE TABLE LIKE clauses (Tom Lane)
A LIKE clause is re-examined after initial creation of the new table, to handle importation of indexes and such. It was possible for this re-examination to find a different table of the same name, causing unexpected behavior; one example is where the new table is a temporary table of the same name as the LIKE target.
Related records (5)
- Same changePostgreSQL 13.2 · Prevent misprocessing of ambiguous CREATE TABLE LIKE clauses
- Same changePostgreSQL 12.6 · Prevent misprocessing of ambiguous CREATE TABLE LIKE clauses
- Same changePostgreSQL 10.16 · Prevent misprocessing of ambiguous CREATE TABLE LIKE clauses
- Same changePostgreSQL 9.6.21 · Prevent misprocessing of ambiguous CREATE TABLE LIKE clauses
- Same changePostgreSQL 9.5.25 · Prevent misprocessing of ambiguous CREATE TABLE LIKE clauses
ImprovementsRearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints
Changes
Rearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints (Tom Lane)
This fixes the case where a self-referential foreign key constraint declared in the outer CREATE TABLE depends on an index that's coming from the LIKE clause.
Related records (5)
- Same changePostgreSQL 13.2 · Rearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints
- Same changePostgreSQL 12.6 · Rearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints
- Same changePostgreSQL 10.16 · Rearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints
- Same changePostgreSQL 9.6.21 · Rearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints
- Same changePostgreSQL 9.5.25 · Rearrange order of operations in CREATE TABLE LIKE so that indexes are cloned before building foreign key constraints
ImprovementsDisallow CREATE STATISTICS on system catalogs
Changes
Disallow CREATE STATISTICS on system catalogs (Tomas Vondra)
Related records (3)
ImprovementsDisallow converting an inheritance child table to a view
Changes
Disallow converting an inheritance child table to a view (Tom Lane)
Related records (5)
- Same changePostgreSQL 13.2 · Disallow converting an inheritance child table to a view
- Same changePostgreSQL 12.6 · Disallow converting an inheritance child table to a view
- Same changePostgreSQL 10.16 · Disallow converting an inheritance child table to a view
- Same changePostgreSQL 9.6.21 · Disallow converting an inheritance child table to a view
- Same changePostgreSQL 9.5.25 · Disallow converting an inheritance child table to a view
ImprovementsEnsure that disk space allocated for a dropped relation is released promptly at commit
Changes
Ensure that disk space allocated for a dropped relation is released promptly at commit (Thomas Munro)
Previously, if the dropped relation spanned multiple 1GB segments, only the first segment was truncated immediately. Other segments were simply unlinked, which doesn't authorize the kernel to release the storage so long as any other backends still have the files open.
Related records (5)
- Same changePostgreSQL 13.2 · Ensure that disk space allocated for a dropped relation is released promptly at commit
- Same changePostgreSQL 12.6 · Ensure that disk space allocated for a dropped relation is released promptly at commit
- Same changePostgreSQL 10.16 · Ensure that disk space allocated for a dropped relation is released promptly at commit
- Same changePostgreSQL 9.6.21 · Ensure that disk space allocated for a dropped relation is released promptly at commit
- Same changePostgreSQL 9.5.25 · Ensure that disk space allocated for a dropped relation is released promptly at commit
ImprovementsPrevent dropping a tablespace that is referenced by a partitioned relation, but is not used for any actual storage
Changes
Prevent dropping a tablespace that is referenced by a partitioned relation, but is not used for any actual storage (Álvaro Herrera)
Previously this was allowed, but subsequent operations on the partitioned relation would fail.
Related records (2)
Bug fixesFix handling of backslash-escaped multibyte characters in COPY FROM
Changes
Fix handling of backslash-escaped multibyte characters in COPY FROM (Heikki Linnakangas)
A backslash followed by a multibyte character was not handled correctly. In some client character encodings, this could lead to misinterpreting part of a multibyte character as a field separator or end-of-copy-data marker.
Related records (5)
- Same changePostgreSQL 13.2 · Fix handling of backslash-escaped multibyte characters in COPY FROM
- Same changePostgreSQL 12.6 · Fix handling of backslash-escaped multibyte characters in COPY FROM
- Same changePostgreSQL 10.16 · Fix handling of backslash-escaped multibyte characters in COPY FROM
- Same changePostgreSQL 9.6.21 · Fix handling of backslash-escaped multibyte characters in COPY FROM
- Same changePostgreSQL 9.5.25 · Fix handling of backslash-escaped multibyte characters in COPY FROM
ImprovementsAvoid preallocating executor hash tables in EXPLAIN without ANALYZE
Changes
Avoid preallocating executor hash tables in EXPLAIN without ANALYZE (Alexey Bashtanov)
Related records (5)
- Same changePostgreSQL 13.2 · Avoid preallocating executor hash tables in EXPLAIN without ANALYZE
- Same changePostgreSQL 12.6 · Avoid preallocating executor hash tables in EXPLAIN without ANALYZE
- Same changePostgreSQL 10.16 · Avoid preallocating executor hash tables in EXPLAIN without ANALYZE
- Same changePostgreSQL 9.6.21 · Avoid preallocating executor hash tables in EXPLAIN without ANALYZE
- Same changePostgreSQL 9.5.25 · Avoid preallocating executor hash tables in EXPLAIN without ANALYZE
Bug fixesFix recently-introduced race conditions in LISTEN/NOTIFY queue handling
Changes
Fix recently-introduced race conditions in LISTEN/NOTIFY queue handling (Tom Lane)
A newly-listening backend could attempt to read SLRU pages that were in process of being truncated, possibly causing an error.
The queue tail pointer could become set to a value that's not equal to the queue position of any backend, resulting in effective disabling of the queue truncation logic. Continued use of NOTIFY then led to queue-fill warnings, and eventually to inability to send any more notifies until the server is restarted.
Related records (5)
- Same changePostgreSQL 13.2 · Fix recently-introduced race condition in LISTEN/NOTIFY queue handling
- Same changePostgreSQL 12.6 · Fix recently-introduced race conditions in LISTEN/NOTIFY queue handling
- Same changePostgreSQL 10.16 · Fix recently-introduced race conditions in LISTEN/NOTIFY queue handling
- Same changePostgreSQL 9.6.21 · Fix recently-introduced race conditions in LISTEN/NOTIFY queue handling
- Same changePostgreSQL 9.5.25 · Fix recently-introduced race conditions in LISTEN/NOTIFY queue handling
ImprovementsAllow the jsonb concatenation operator to handle all combinations of JSON data types
Changes
Allow the jsonb concatenation operator to handle all combinations of JSON data types (Tom Lane)
We can concatenate two JSON objects or two JSON arrays. Handle other cases by wrapping non-array inputs in one-element arrays, then performing an array concatenation. Previously, some combinations of inputs followed this rule but others arbitrarily threw an error.
Related records (5)
- Same changePostgreSQL 13.2 · Allow the jsonb concatenation operator to handle all combinations of JSON data types
- Same changePostgreSQL 12.6 · Allow the jsonb concatenation operator to handle all combinations of JSON data types
- Same changePostgreSQL 10.16 · Allow the jsonb concatenation operator to handle all combinations of JSON data types
- Same changePostgreSQL 9.6.21 · Allow the jsonb concatenation operator to handle all combinations of JSON data types
- Same changePostgreSQL 9.5.25 · Allow the jsonb concatenation operator to handle all combinations of JSON data types
Bug fixesFix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression
Changes
Fix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression (Tom Lane)
This error could cause the quantifier to act non-greedy, that is behave like a *? quantifier would do in full regular expressions.
Related records (5)
- Same changePostgreSQL 13.2 · Fix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression
- Same changePostgreSQL 12.6 · Fix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression
- Same changePostgreSQL 10.16 · Fix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression
- Same changePostgreSQL 9.6.21 · Fix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression
- Same changePostgreSQL 9.5.25 · Fix use of uninitialized value while parsing a * quantifier in a BRE-mode regular expression
Bug fixesFix numeric power() for the case where the exponent is exactly INT_MIN (-2147483648)
Changes
Fix numeric power() for the case where the exponent is exactly INT_MIN (-2147483648) (Dean Rasheed)
Previously, a result with no significant digits was produced.
Related records (4)
- Same changePostgreSQL 13.2 · Fix numeric power() for the case where the exponent is exactly INT_MIN (-2147483648)
- Same changePostgreSQL 12.6 · Fix numeric power() for the case where the exponent is exactly INT_MIN (-2147483648)
- Same changePostgreSQL 10.16 · Fix numeric power() for the case where the exponent is exactly INT_MIN (-2147483648)
- Same changePostgreSQL 9.6.21 · Fix numeric power() for the case where the exponent is exactly INT_MIN (-2147483648)
Bug fixesFix integer-overflow cases in substring() functions
Changes
Fix integer-overflow cases in substring() functions (Tom Lane, Pavel Stehule)
If the specified starting index and length overflow an integer when added together, substring() misbehaved, either throwing a bogus “negative substring length” error for a case that should succeed, or failing to complain that a negative length is negative (and instead returning the whole string, in most cases).
Related records (2)
ImprovementsPrevent possible data loss from incorrect detection of the wraparound point of an SLRU log
Changes
Prevent possible data loss from incorrect detection of the wraparound point of an SLRU log (Noah Misch)
The wraparound point typically falls in the middle of a page, which must be rounded off to a page boundary, and that was not done correctly. No issue could arise unless an installation had gotten to within one page of SLRU overflow, which is unlikely in a properly-functioning system. If this did happen, it would manifest in later “apparent wraparound” or “could not access status of transaction” errors.
Related records (5)
- Same changePostgreSQL 13.2 · Prevent possible data loss from incorrect detection of the wraparound point of an SLRU log
- Same changePostgreSQL 12.6 · Prevent possible data loss from incorrect detection of the wraparound point of an SLRU log
- Same changePostgreSQL 10.16 · Prevent possible data loss from incorrect detection of the wraparound point of an SLRU log
- Same changePostgreSQL 9.6.21 · Prevent possible data loss from incorrect detection of the wraparound point of an SLRU log
- Same changePostgreSQL 9.5.25 · Prevent possible data loss from incorrect detection of the wraparound point of an SLRU log
Bug fixesFix memory leak in walsender processes while sending new snapshots for logical decoding
Changes
Fix memory leak in walsender processes while sending new snapshots for logical decoding (Amit Kapila)
Related records (5)
- Same changePostgreSQL 13.2 · Fix memory leak in walsender processes while sending new snapshots for logical decoding
- Same changePostgreSQL 12.6 · Fix memory leak in walsender processes while sending new snapshots for logical decoding
- Same changePostgreSQL 10.16 · Fix memory leak in walsender processes while sending new snapshots for logical decoding
- Same changePostgreSQL 9.6.21 · Fix memory leak in walsender processes while sending new snapshots for logical decoding
- Same changePostgreSQL 9.5.25 · Fix memory leak in walsender processes while sending new snapshots for logical decoding
Bug fixesFix walsender to accept additional commands after terminating replication
Changes
Fix walsender to accept additional commands after terminating replication (Jeff Davis)
Related records (5)
- Same changePostgreSQL 13.2 · Fix walsender to accept additional commands after terminating replication
- Same changePostgreSQL 12.6 · Fix walsender to accept additional commands after terminating replication
- Same changePostgreSQL 10.16 · Fix walsender to accept additional commands after terminating replication
- Same changePostgreSQL 9.6.21 · Fix walsender to accept additional commands after terminating replication
- Same changePostgreSQL 9.5.25 · Fix walsender to accept additional commands after terminating replication
ImprovementsEnsure detection of deadlocks between hot standby backends and the startup (WAL-application) process
Changes
Ensure detection of deadlocks between hot standby backends and the startup (WAL-application) process (Fujii Masao)
The startup process did not run the deadlock detection code, so that in situations where the startup process is last to join a circular wait situation, the deadlock might never be recognized.
Related records (4)
- Same changePostgreSQL 13.2 · Ensure detection of deadlocks between hot standby backends and the startup (WAL-application) process
- Same changePostgreSQL 12.6 · Ensure detection of deadlocks between hot standby backends and the startup (WAL-application) process
- Same changePostgreSQL 10.16 · Ensure detection of deadlocks between hot standby backends and the startup (WAL-application) process
- Same changePostgreSQL 9.6.21 · Ensure detection of deadlocks between hot standby backends and the startup (WAL-application) process
ImprovementsEnsure that unserviced requests for background workers are cleaned up when the postmaster begins a “smart” or “fast” shutdown sequence
Changes
Ensure that unserviced requests for background workers are cleaned up when the postmaster begins a “smart” or “fast” shutdown sequence (Tom Lane)
Previously, there was a race condition whereby a child process that had requested a background worker just before shutdown could wait indefinitely, preventing shutdown from completing.
Related records (3)
- Same changePostgreSQL 13.2 · Ensure that unserviced requests for background workers are cleaned up when the postmaster begins a “smart” or “fast” shutdown sequence
- Same changePostgreSQL 12.6 · Ensure that unserviced requests for background workers are cleaned up when the postmaster begins a “smart” or “fast” shutdown sequence
- Same changePostgreSQL 10.16 · Ensure that unserviced requests for background workers are cleaned up when the postmaster begins a “smart” or “fast” shutdown sequence
Bug fixesFix portability problem in parsing of recovery_target_xid values
Changes
Fix portability problem in parsing of recovery_target_xid values (Michael Paquier)
The target XID is potentially 64 bits wide, but it was parsed with strtoul(), causing misbehavior on platforms where long is 32 bits (such as Windows).
Related records (4)
- Same changePostgreSQL 13.2 · Fix portability problem in parsing of recovery_target_xid values
- Same changePostgreSQL 12.6 · Fix portability problem in parsing of recovery_target_xid values
- Same changePostgreSQL 10.16 · Fix portability problem in parsing of recovery_target_xid values
- Same changePostgreSQL 9.6.21 · Fix portability problem in parsing of recovery_target_xid values
ImprovementsAvoid trying to use parallel index build in a standalone backend
Changes
Avoid trying to use parallel index build in a standalone backend (Yulin Pei)
Related records (2)
ImprovementsAllow index AMs to support included columns without necessarily supporting multiple key columns
Changes
Allow index AMs to support included columns without necessarily supporting multiple key columns (Tom Lane)
ImprovementsAvoid assertion failure during parallel aggregation of an aggregate with a non-strict deserialization function
Changes
Avoid assertion failure during parallel aggregation of an aggregate with a non-strict deserialization function (Andrew Gierth)
No such aggregate functions exist in core PostgreSQL, but some extensions such as PostGIS provide some. The mistake is harmless anyway in a non-assert build.
ImprovementsAvoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option
Changes
Avoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option (Tom Lane)
Related records (5)
- Same changePostgreSQL 13.2 · Avoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option
- Same changePostgreSQL 12.6 · Avoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option
- Same changePostgreSQL 10.16 · Avoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option
- Same changePostgreSQL 9.6.21 · Avoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option
- Same changePostgreSQL 9.5.25 · Avoid assertion failure in pg_get_functiondef() when examining a function with a TRANSFORM option
Bug fixesFix data structure misallocation in PL/pgSQL's CALL statement
Changes
Fix data structure misallocation in PL/pgSQL's CALL statement (Tom Lane)
A CALL in a PL/pgSQL procedure, to another procedure that has OUT parameters, would fail if the called procedure did a COMMIT or ROLLBACK.
Related records (2)
ImprovementsIn psql, re-allow including a password in a connection_string argument of a \connect command
Changes
In psql, re-allow including a password in a connection_string argument of a \connect command (Tom Lane)
This used to work, but a recent bug fix caused the password to be ignored (resulting in prompting for a password).
Related records (5)
- Same changePostgreSQL 13.2 · In psql, re-allow including a password in a connection_string argument of a \connect command
- Same changePostgreSQL 12.6 · In psql, re-allow including a password in a connection_string argument of a \connect command
- Same changePostgreSQL 10.16 · In psql, re-allow including a password in a connection_string argument of a \connect command
- Same changePostgreSQL 9.6.21 · In psql, re-allow including a password in a connection_string argument of a \connect command
- Same changePostgreSQL 9.5.25 · In psql, re-allow including a password in a connection_string argument of a \connect command
Bug fixesFix assorted bugs in psql's \help command
Changes
Fix assorted bugs in psql's \help command (Kyotaro Horiguchi, Tom Lane)
\help with two argument words failed to find a command description using only the first word, for example \help reset all should show the help for RESET but did not. Also, \help often failed to invoke the pager when it should. It also leaked memory.
Related records (5)
- Same changePostgreSQL 13.2 · Fix assorted bugs in psql's \help command
- Same changePostgreSQL 12.6 · Fix assorted bugs in psql's \help command
- Same changePostgreSQL 10.16 · Fix assorted bugs in psql's \help command
- Same changePostgreSQL 9.6.21 · Fix assorted bugs in psql's \help command
- Same changePostgreSQL 9.5.25 · Fix assorted bugs in psql's \help command
ImprovementsIn pg_dump, ensure that the restore script runs ALTER PUBLICATION ADD TABLE commands as the owner of the publication, and similarly runs ALTER INDEX ATTACH PARTITION commands as the owner of the partitioned index
Changes
In pg_dump, ensure that the restore script runs ALTER PUBLICATION ADD TABLE commands as the owner of the publication, and similarly runs ALTER INDEX ATTACH PARTITION commands as the owner of the partitioned index (Tom Lane)
Previously, these commands would be run by the role that started the restore script; which will usually work, but in corner cases that role might not have adequate permissions.
Related records (3)
- Same changePostgreSQL 13.2 · In pg_dump, ensure that the restore script runs ALTER PUBLICATION ADD TABLE commands as the owner of the publication, and similarly runs ALTER INDEX ATTACH PARTITION commands as the owner of the partitioned index
- Same changePostgreSQL 12.6 · In pg_dump, ensure that the restore script runs ALTER PUBLICATION ADD TABLE commands as the owner of the publication, and similarly runs ALTER INDEX ATTACH PARTITION commands as the owner of the partitioned index
- Same changePostgreSQL 10.16 · In pg_dump, ensure that the restore script runs ALTER PUBLICATION ADD TABLE commands as the owner of the publication
Bug fixesFix pg_dump to handle WITH GRANT OPTION in an extension's initial privileges
Changes
Fix pg_dump to handle WITH GRANT OPTION in an extension's initial privileges (Noah Misch)
If an extension's script creates an object and grants privileges on it with grant option, then later the user revokes such privileges, pg_dump would generate incorrect SQL for reproducing the situation. (Few if any extensions do this today.)
Related records (4)
- Same changePostgreSQL 13.2 · Fix pg_dump to handle WITH GRANT OPTION in an extension's initial privileges
- Same changePostgreSQL 12.6 · Fix pg_dump to handle WITH GRANT OPTION in an extension's initial privileges
- Same changePostgreSQL 10.16 · Fix pg_dump to handle WITH GRANT OPTION in an extension's initial privileges
- Same changePostgreSQL 9.6.21 · Fix pg_dump to handle WITH GRANT OPTION in an extension's initial privileges
ImprovementsIn pg_rewind, ensure that all WAL is accounted for when rewinding a standby server
Changes
In pg_rewind, ensure that all WAL is accounted for when rewinding a standby server (Ian Barwick, Heikki Linnakangas)
Related records (5)
- Same changePostgreSQL 13.2 · In pg_rewind, ensure that all WAL is accounted for when rewinding a standby server
- Same changePostgreSQL 12.6 · In pg_rewind, ensure that all WAL is accounted for when rewinding a standby server
- Same changePostgreSQL 10.16 · In pg_rewind, ensure that all WAL is accounted for when rewinding a standby server
- Same changePostgreSQL 9.6.21 · In pg_rewind, ensure that all WAL is accounted for when rewinding a standby server
- Same changePostgreSQL 9.5.25 · In pg_rewind, ensure that all WAL is accounted for when rewinding a standby server
ImprovementsIn pgbench, disallow a digit as the first character of a variable name
Changes
In pgbench, disallow a digit as the first character of a variable name (Fabien Coelho)
This prevents trying to substitute variables into timestamp literal values, which may contain strings like 12:34.
Bug fixesReport the correct database name in connection failure error messages from some client programs
Changes
Report the correct database name in connection failure error messages from some client programs (Álvaro Herrera)
If the database name was defaulted rather than given on the command line, pg_dumpall, pgbench, oid2name, and vacuumlo would produce misleading error messages after a connection failure.
Related records (5)
- Same changePostgreSQL 13.2 · Report the correct database name in connection failure error messages from some client programs
- Same changePostgreSQL 12.6 · Report the correct database name in connection failure error messages from some client programs
- Same changePostgreSQL 10.16 · Report the correct database name in connection failure error messages from some client programs
- Same changePostgreSQL 9.6.21 · Report the correct database name in connection failure error messages from some client programs
- Same changePostgreSQL 9.5.25 · Report the correct database name in connection failure error messages from some client programs
Bug fixesFix memory leak in contrib/auto_explain
Changes
Fix memory leak in contrib/auto_explain (Japin Li)
Memory consumed while producing the EXPLAIN output was not freed until the end of the current transaction (for a top-level statement) or the end of the surrounding statement (for a nested statement). This was particularly a problem with log_nested_statements enabled.
Related records (5)
- Same changePostgreSQL 13.2 · Fix memory leak in contrib/auto_explain
- Same changePostgreSQL 12.6 · Fix memory leak in contrib/auto_explain
- Same changePostgreSQL 10.16 · Fix memory leak in contrib/auto_explain
- Same changePostgreSQL 9.6.21 · Fix memory leak in contrib/auto_explain
- Same changePostgreSQL 9.5.25 · Fix memory leak in contrib/auto_explain
Bug fixesIn contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped
Changes
In contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped (Bharath Rupireddy)
Open connections that depend on a dropped user mapping or foreign server can no longer be referenced, but formerly they were kept around anyway for the duration of the local session.
Related records (5)
- Same changePostgreSQL 13.2 · In contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped
- Same changePostgreSQL 12.6 · In contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped
- Same changePostgreSQL 10.16 · In contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped
- Same changePostgreSQL 9.6.21 · In contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped
- Same changePostgreSQL 9.5.25 · In contrib/postgres_fdw, avoid leaking open connections to remote servers when a user mapping or foreign server object is dropped
ImprovementsIn contrib/pgcrypto, check for error returns from OpenSSL's EVP functions
Changes
In contrib/pgcrypto, check for error returns from OpenSSL's EVP functions (Michael Paquier)
We do not really expect errors here, but this change silences warnings from static analysis tools.
Related records (5)
- Same changePostgreSQL 13.2 · In contrib/pgcrypto, check for error returns from OpenSSL's EVP functions
- Same changePostgreSQL 12.6 · In contrib/pgcrypto, check for error returns from OpenSSL's EVP functions
- Same changePostgreSQL 10.16 · In contrib/pgcrypto, check for error returns from OpenSSL's EVP functions
- Same changePostgreSQL 9.6.21 · In contrib/pgcrypto, check for error returns from OpenSSL's EVP functions
- Same changePostgreSQL 9.5.25 · In contrib/pgcrypto, check for error returns from OpenSSL's EVP functions
ImprovementsMake contrib/pg_prewarm more robust when the cluster is shut down before prewarming is complete
Changes
Make contrib/pg_prewarm more robust when the cluster is shut down before prewarming is complete (Tom Lane)
Previously, autoprewarm would rewrite its status file with only the block numbers that it had managed to load so far, thus perhaps largely disabling the prewarm functionality in the next startup. Instead, suppress status file updates until the initial loading pass is complete.
Bug fixesIn contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items
Changes
In contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items (Andrew Gierth, Alexander Korotkov)
Related records (5)
- Same changePostgreSQL 13.2 · In contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items
- Same changePostgreSQL 12.6 · In contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items
- Same changePostgreSQL 10.16 · In contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items
- Same changePostgreSQL 9.6.21 · In contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items
- Same changePostgreSQL 9.5.25 · In contrib/pg_trgm's GiST index support, avoid crash in the rare case that picksplit is called on exactly two index items
Bug fixesFix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw
Changes
Fix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw (Alexey Kondratov, Tom Lane)
The main loop in contrib/pg_prewarm's autoprewarm parent process underestimated its desired sleep time by a factor of 1000, causing it to consume much more CPU than intended. When waiting for a result from a remote server, contrib/postgres_fdw overestimated the desired timeout by a factor of 1000 (though this error had been mitigated by imposing a clamp to 60 seconds).
Both of these errors stemmed from incorrectly converting seconds-and-microseconds to milliseconds. Introduce a new API TimestampDifferenceMilliseconds() to make it easier to get this right in the future.
Related records (5)
- Same changePostgreSQL 13.2 · Fix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw
- Same changePostgreSQL 12.6 · Fix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw
- Same changePostgreSQL 10.16 · Fix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw
- Same changePostgreSQL 9.6.21 · Fix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw
- Same changePostgreSQL 9.5.25 · Fix miscalculation of timeouts in contrib/pg_prewarm and contrib/postgres_fdw
ImprovementsImprove configure's heuristics for selecting PG_SYSROOT on macOS
Changes
Improve configure's heuristics for selecting PG_SYSROOT on macOS (Tom Lane)
The new method is more likely to produce desirable results when Xcode is newer than the underlying operating system. Choosing a sysroot that does not match the OS version may result in nonfunctional executables.
Related records (5)
- Same changePostgreSQL 13.2 · Improve configure's heuristics for selecting PG_SYSROOT on macOS
- Same changePostgreSQL 12.6 · Improve configure's heuristics for selecting PG_SYSROOT on macOS
- Same changePostgreSQL 10.16 · Improve configure's heuristics for selecting PG_SYSROOT on macOS
- Same changePostgreSQL 9.6.21 · Improve configure's heuristics for selecting PG_SYSROOT on macOS
- Same changePostgreSQL 9.5.25 · Improve configure's heuristics for selecting PG_SYSROOT on macOS
ImprovementsWhile building on macOS, specify -isysroot in link steps as well as compile steps
Changes
While building on macOS, specify -isysroot in link steps as well as compile steps (James Hilliard)
This likewise improves the results when Xcode is out of sync with the operating system.
Related records (5)
- Same changePostgreSQL 13.2 · While building on macOS, specify -isysroot in link steps as well as compile steps
- Same changePostgreSQL 12.6 · While building on macOS, specify -isysroot in link steps as well as compile steps
- Same changePostgreSQL 10.16 · While building on macOS, specify -isysroot in link steps as well as compile steps
- Same changePostgreSQL 9.6.21 · While building on macOS, specify -isysroot in link steps as well as compile steps
- Same changePostgreSQL 9.5.25 · While building on macOS, specify -isysroot in link steps as well as compile steps
Bug fixesFix JIT compilation to be compatible with LLVM 11 and LLVM 12
Changes
Fix JIT compilation to be compatible with LLVM 11 and LLVM 12 (Andres Freund)
Related records (3)
Bug fixesFix potential mishandling of references to boolean variables in JIT expression compilation
Changes
Fix potential mishandling of references to boolean variables in JIT expression compilation (Andres Freund)
No field reports attributable to this have been seen, but it seems likely that it could cause problems on some architectures.
Bug fixesFix compile failure with ICU 68 and later
Changes
Fix compile failure with ICU 68 and later (Tom Lane)
Related records (2)
ImprovementsAvoid memcpy() with a NULL source pointer and zero count during partitioned index creation
Changes
Avoid memcpy() with a NULL source pointer and zero count during partitioned index creation (Álvaro Herrera)
While such a call is not known to cause problems in itself, some compilers assume that the arguments of memcpy() are never NULL, which could result in incorrect optimization of nearby code.
ImprovementsUpdate time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
Changes
Update time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
Notably, the Australia/Currie zone has been corrected to the point where it is identical to Australia/Hobart.
Related records (5)
- Same changePostgreSQL 13.2 · Update time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
- Same changePostgreSQL 12.6 · Update time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
- Same changePostgreSQL 10.16 · Update time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
- Same changePostgreSQL 9.6.21 · Update time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
- Same changePostgreSQL 9.5.25 · Update time zone data files to tzdata release 2021a for DST law changes in Russia (Volgograd zone) and South Sudan, plus historical corrections for Australia, Bahamas, Belize, Bermuda, Ghana, Israel, Kenya, Nigeria, Palestine, Seychelles, and Vanuatu.
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.