DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 12.17 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.17
2023-11-09
12.17stableSupport ends 2024-11-21
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2023-5869 Detect integer overflow while computing new array dimensions | 12.17 | Recorded fix | |
| CVE-2023-5868 Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions | 12.17 | Recorded fix | |
| CVE-2023-5870 Prevent the pg_signal_backend role from signalling background workers and autovacuum processes | 12.17 | Recorded fix |
PostgreSQL 12.17
Migration and compatibility
A dump/restore is not required for those running 12.X.
However, if you use GiST indexes, it may be advisable to reindex them; see the fourth changelog entry below.
Also, if you are upgrading from a version earlier than 12.16, see Section E.7.
SecurityFix handling of unknown-type arguments in DISTINCT "any" aggregate functions
Changes
Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions (Tom Lane) §
This error led to a text-type value being interpreted as an unknown-type value (that is, a zero-terminated string) at runtime. This could result in disclosure of server memory following the text value.
The PostgreSQL Project thanks Jingzhou Fu for reporting this problem. (CVE-2023-5868)
Related records (5)
- Same changePostgreSQL 16.1 · Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions
- Same changePostgreSQL 15.5 · Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions
- Same changePostgreSQL 14.10 · Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions
- Same changePostgreSQL 13.13 · Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions
- Same changePostgreSQL 11.22 · Fix handling of unknown-type arguments in DISTINCT "any" aggregate functions
SecurityDetect integer overflow while computing new array dimensions
Changes
Detect integer overflow while computing new array dimensions (Tom Lane) §
When assigning new elements to array subscripts that are outside the current array bounds, an undetected integer overflow could occur in edge cases. Memory stomps that are potentially exploitable for arbitrary code execution are possible, and so is disclosure of server memory.
The PostgreSQL Project thanks Pedro Gallegos for reporting this problem. (CVE-2023-5869)
Related records (5)
- Same changePostgreSQL 16.1 · Detect integer overflow while computing new array dimensions
- Same changePostgreSQL 15.5 · Detect integer overflow while computing new array dimensions
- Same changePostgreSQL 14.10 · Detect integer overflow while computing new array dimensions
- Same changePostgreSQL 13.13 · Detect integer overflow while computing new array dimensions
- Same changePostgreSQL 11.22 · Detect integer overflow while computing new array dimensions
SecurityPrevent the pg_signal_backend role from signalling background workers and autovacuum processes
Changes
Prevent the pg_signal_backend role from signalling background workers and autovacuum processes (Noah Misch, Jelte Fennema-Nio) § §
The documentation says that pg_signal_backend cannot issue signals to superuser-owned processes. It was able to signal these background processes, though, because they advertise a role OID of zero. Treat that as indicating superuser ownership. The security implications of cancelling one of these process types are fairly small so far as the core code goes (we'll just start another one), but extensions might add background workers that are more vulnerable.
Also ensure that the is_superuser parameter is set correctly in such processes. No specific security consequences are known for that oversight, but it might be significant for some extensions.
The PostgreSQL Project thanks Hemanth Sandrana and Mahendrakar Srinivasarao for reporting this problem. (CVE-2023-5870)
Related records (5)
- Same changePostgreSQL 16.1 · Prevent the pg_signal_backend role from signalling background workers and autovacuum processes
- Same changePostgreSQL 15.5 · Prevent the pg_signal_backend role from signalling background workers and autovacuum processes
- Same changePostgreSQL 14.10 · Prevent the pg_signal_backend role from signalling background workers and autovacuum processes
- Same changePostgreSQL 13.13 · Prevent the pg_signal_backend role from signalling background workers and autovacuum processes
- Same changePostgreSQL 11.22 · Prevent the pg_signal_backend role from signalling background workers and autovacuum processes
Bug fixesFix misbehavior during recursive page split in GiST index build
Changes
Fix misbehavior during recursive page split in GiST index build (Heikki Linnakangas) §
Fix a case where the location of a page downlink was incorrectly tracked, and introduce some logic to allow recovering from such situations rather than silently doing the wrong thing. This error could result in incorrect answers from subsequent index searches. It may be advisable to reindex all GiST indexes after installing this update.
Related records (4)
- Same changePostgreSQL 16.1 · Fix misbehavior during recursive page split in GiST index build
- Same changePostgreSQL 15.5 · Fix misbehavior during recursive page split in GiST index build
- Same changePostgreSQL 14.10 · Fix misbehavior during recursive page split in GiST index build
- Same changePostgreSQL 13.13 · Fix misbehavior during recursive page split in GiST index build
Bug fixesFix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys
Changes
Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys (David Rowley) § §
Some cases involving an IS NULL condition on one of the partition keys could result in a crash.
Related records (5)
- Same changePostgreSQL 16.1 · Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys
- Same changePostgreSQL 15.5 · Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys
- Same changePostgreSQL 14.10 · Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys
- Same changePostgreSQL 13.13 · Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys
- Same changePostgreSQL 11.22 · Fix partition step generation and runtime partition pruning for hash-partitioned tables with multiple partition keys
Bug fixesFix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses
Changes
Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses (Peter Geoghegan) §
When restoring an indexscan to a previously marked position, the code could miss required setup steps if the scan had advanced exactly to the end of the matches for a ScalarArrayOpExpr (that is, an indexcol = ANY(ARRAY[])) clause. This could result in missing some rows that should have been fetched.
Related records (5)
- Same changePostgreSQL 16.1 · Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses
- Same changePostgreSQL 15.5 · Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses
- Same changePostgreSQL 14.10 · Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses
- Same changePostgreSQL 13.13 · Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses
- Same changePostgreSQL 11.22 · Fix edge case in btree mark/restore processing of ScalarArrayOpExpr clauses
Bug fixesFix intra-query memory leak when a set-returning function repeatedly returns zero rows
Changes
Fix intra-query memory leak when a set-returning function repeatedly returns zero rows (Tom Lane) §
Related records (5)
- Same changePostgreSQL 16.1 · Fix intra-query memory leak when a set-returning function repeatedly returns zero rows
- Same changePostgreSQL 15.5 · Fix intra-query memory leak when a set-returning function repeatedly returns zero rows
- Same changePostgreSQL 14.10 · Fix intra-query memory leak when a set-returning function repeatedly returns zero rows
- Same changePostgreSQL 13.13 · Fix intra-query memory leak when a set-returning function repeatedly returns zero rows
- Same changePostgreSQL 11.22 · Fix intra-query memory leak when a set-returning function repeatedly returns zero rows
ImprovementsDon't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal
Changes
Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal (Boyu Yang) §
Related records (5)
- Same changePostgreSQL 16.1 · Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal
- Same changePostgreSQL 15.5 · Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal
- Same changePostgreSQL 14.10 · Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal
- Same changePostgreSQL 13.13 · Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal
- Same changePostgreSQL 11.22 · Don't crash if cursor_to_xmlschema() is applied to a non-data-returning Portal
ImprovementsThrow the intended error if pgrowlocks() is applied to a partitioned table
Changes
Throw the intended error if pgrowlocks() is applied to a partitioned table (David Rowley) §
Previously, a not-on-point complaint “only heap AM is supported” would be raised.
Related records (4)
- Same changePostgreSQL 16.1 · Throw the intended error if pgrowlocks() is applied to a partitioned table
- Same changePostgreSQL 15.5 · Throw the intended error if pgrowlocks() is applied to a partitioned table
- Same changePostgreSQL 14.10 · Throw the intended error if pgrowlocks() is applied to a partitioned table
- Same changePostgreSQL 13.13 · Throw the intended error if pgrowlocks() is applied to a partitioned table
ImprovementsHandle invalid indexes more cleanly in assorted SQL functions
Changes
Handle invalid indexes more cleanly in assorted SQL functions (Noah Misch) §
Report an error if pgstatindex(), pgstatginindex(), pgstathashindex(), or pgstattuple() is applied to an invalid index. If brin_desummarize_range(), brin_summarize_new_values(), brin_summarize_range(), or gin_clean_pending_list() is applied to an invalid index, do nothing except to report a debug-level message. Formerly these functions attempted to process the index, and might fail in strange ways depending on what the failed CREATE INDEX had left behind.
Related records (5)
- Same changePostgreSQL 16.1 · Handle invalid indexes more cleanly in assorted SQL functions
- Same changePostgreSQL 15.5 · Handle invalid indexes more cleanly in assorted SQL functions
- Same changePostgreSQL 14.10 · Handle invalid indexes more cleanly in assorted SQL functions
- Same changePostgreSQL 13.13 · Handle invalid indexes more cleanly in assorted SQL functions
- Same changePostgreSQL 11.22 · Handle invalid indexes more cleanly in assorted SQL functions
ImprovementsAvoid premature memory allocation failure with long inputs to to_tsvector()
Changes
Avoid premature memory allocation failure with long inputs to to_tsvector() (Tom Lane) §
Related records (5)
- Same changePostgreSQL 16.1 · Avoid premature memory allocation failure with long inputs to to_tsvector()
- Same changePostgreSQL 15.5 · Avoid premature memory allocation failure with long inputs to to_tsvector()
- Same changePostgreSQL 14.10 · Avoid premature memory allocation failure with long inputs to to_tsvector()
- Same changePostgreSQL 13.13 · Avoid premature memory allocation failure with long inputs to to_tsvector()
- Same changePostgreSQL 11.22 · Avoid premature memory allocation failure with long inputs to to_tsvector()
Bug fixesFix over-allocation of the constructed tsvector in tsvectorrecv()
Changes
Fix over-allocation of the constructed tsvector in tsvectorrecv() (Denis Erokhin) §
If the incoming vector includes position data, the binary receive function left wasted space (roughly equal to the size of the position data) in the finished tsvector. In extreme cases this could lead to “maximum total lexeme length exceeded” failures for vectors that were under the length limit when emitted. In any case it could lead to wasted space on-disk.
Related records (5)
- Same changePostgreSQL 16.1 · Fix over-allocation of the constructed tsvector in tsvectorrecv()
- Same changePostgreSQL 15.5 · Fix over-allocation of the constructed tsvector in tsvectorrecv()
- Same changePostgreSQL 14.10 · Fix over-allocation of the constructed tsvector in tsvectorrecv()
- Same changePostgreSQL 13.13 · Fix over-allocation of the constructed tsvector in tsvectorrecv()
- Same changePostgreSQL 11.22 · Fix over-allocation of the constructed tsvector in tsvectorrecv()
Bug fixesFix incorrect coding in gtsvector_picksplit()
Changes
Fix incorrect coding in gtsvector_picksplit() (Alexander Lakhin) §
This could lead to poor page-split decisions in GiST indexes on tsvector columns.
Related records (4)
Bug fixesFix COMMIT AND CHAIN/ROLLBACK AND CHAIN to work properly when there is an unreleased savepoint
Changes
Fix COMMIT AND CHAIN/ROLLBACK AND CHAIN to work properly when there is an unreleased savepoint (Liu Xiang, Tom Lane) §
Instead of propagating the current transaction's properties to the new transaction, they propagated some previous transaction's properties.
Bug fixesAvoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value
Changes
Avoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value (Xing Guo, Aleksander Alekseev, Tom Lane) §
No built-in parameter fits this description, but an extension could define such a parameter.
Related records (4)
- Same changePostgreSQL 16.1 · Avoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value
- Same changePostgreSQL 15.5 · Avoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value
- Same changePostgreSQL 14.10 · Avoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value
- Same changePostgreSQL 13.13 · Avoid crash in EXPLAIN if a parameter marked to be displayed by EXPLAIN has a NULL boot-time value
ImprovementsEnsure we have a snapshot while dropping ON COMMIT DROP temp tables
Changes
Ensure we have a snapshot while dropping ON COMMIT DROP temp tables (Tom Lane) §
This prevents possible misbehavior if any catalog entries for the temp tables have fields wide enough to require toasting (such as a very complex CHECK condition).
Related records (5)
- Same changePostgreSQL 16.1 · Ensure we have a snapshot while dropping ON COMMIT DROP temp tables
- Same changePostgreSQL 15.5 · Ensure we have a snapshot while dropping ON COMMIT DROP temp tables
- Same changePostgreSQL 14.10 · Ensure we have a snapshot while dropping ON COMMIT DROP temp tables
- Same changePostgreSQL 13.13 · Ensure we have a snapshot while dropping ON COMMIT DROP temp tables
- Same changePostgreSQL 11.22 · Ensure we have a snapshot while dropping ON COMMIT DROP temp tables
ImprovementsAvoid improper response to shutdown signals in child processes just forked by system()
Changes
Avoid improper response to shutdown signals in child processes just forked by system() (Nathan Bossart) § §
This fix avoids a race condition in which a child process that has been forked off by system(), but hasn't yet exec'd the intended child program, might receive and act on a signal intended for the parent server process. That would lead to duplicate cleanup actions being performed, which will not end well.
Related records (5)
- Same changePostgreSQL 16.1 · Avoid improper response to shutdown signals in child processes just forked by system()
- Same changePostgreSQL 15.5 · Avoid improper response to shutdown signals in child processes just forked by system()
- Same changePostgreSQL 14.10 · Avoid improper response to shutdown signals in child processes just forked by system()
- Same changePostgreSQL 13.13 · Avoid improper response to shutdown signals in child processes just forked by system()
- Same changePostgreSQL 11.22 · Avoid improper response to shutdown signals in child processes just forked by system()
ImprovementsCope with torn reads of pg_control in frontend programs
Changes
Cope with torn reads of pg_control in frontend programs (Thomas Munro) §
On some file systems, reading pg_control may not be an atomic action when the server concurrently writes that file. This is detectable via a bad CRC. Retry a few times to see if the file becomes valid before we report error.
Related records (4)
- Same changePostgreSQL 16.1 · Cope with torn reads of pg_control in frontend programs
- Same changePostgreSQL 15.5 · Cope with torn reads of pg_control in frontend programs
- Same changePostgreSQL 14.10 · Cope with torn reads of pg_control in frontend programs
- Same changePostgreSQL 13.13 · Cope with torn reads of pg_control in frontend programs
ImprovementsAvoid torn reads of pg_control in relevant SQL functions
Changes
Avoid torn reads of pg_control in relevant SQL functions (Thomas Munro) §
Acquire the appropriate lock before reading pg_control, to ensure we get a consistent view of that file.
Related records (5)
- Same changePostgreSQL 16.1 · Avoid torn reads of pg_control in relevant SQL functions
- Same changePostgreSQL 15.5 · Avoid torn reads of pg_control in relevant SQL functions
- Same changePostgreSQL 14.10 · Avoid torn reads of pg_control in relevant SQL functions
- Same changePostgreSQL 13.13 · Avoid torn reads of pg_control in relevant SQL functions
- Same changePostgreSQL 11.22 · Avoid torn reads of pg_control in relevant SQL functions
Bug fixesAvoid integer overflow when computing size of backend activity string array
Changes
Avoid integer overflow when computing size of backend activity string array (Jakub Wartak) §
On 64-bit machines we will allow values of track_activity_query_size large enough to cause 32-bit overflow when multiplied by the allowed number of connections. The code actually allocating the per-backend local array was careless about this though, and allocated the array incorrectly.
Related records (4)
- Same changePostgreSQL 16.1 · Avoid integer overflow when computing size of backend activity string array
- Same changePostgreSQL 15.5 · Avoid integer overflow when computing size of backend activity string array
- Same changePostgreSQL 14.10 · Avoid integer overflow when computing size of backend activity string array
- Same changePostgreSQL 13.13 · Avoid integer overflow when computing size of backend activity string array
ImprovementsTrack the dependencies of cached CALL statements, and re-plan them when needed
Changes
Track the dependencies of cached CALL statements, and re-plan them when needed (Tom Lane) §
DDL commands, such as replacement of a function that has been inlined into a CALL argument, can create the need to re-plan a CALL that has been cached by PL/pgSQL. That was not happening, leading to misbehavior or strange errors such as “cache lookup failed”.
Related records (5)
- Same changePostgreSQL 16.1 · Track the dependencies of cached CALL statements, and re-plan them when needed
- Same changePostgreSQL 15.5 · Track the dependencies of cached CALL statements, and re-plan them when needed
- Same changePostgreSQL 14.10 · Track the dependencies of cached CALL statements, and re-plan them when needed
- Same changePostgreSQL 13.13 · Track the dependencies of cached CALL statements, and re-plan them when needed
- Same changePostgreSQL 11.22 · Track the dependencies of cached CALL statements, and re-plan them when needed
ImprovementsTrack nesting depth correctly when inspecting RECORD-type Vars from outer query levels
Changes
Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels (Richard Guo) §
This oversight could lead to assertion failures, core dumps, or “bogus varno” errors.
Related records (5)
- Same changePostgreSQL 16.1 · Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels
- Same changePostgreSQL 15.5 · Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels
- Same changePostgreSQL 14.10 · Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels
- Same changePostgreSQL 13.13 · Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels
- Same changePostgreSQL 11.22 · Track nesting depth correctly when inspecting RECORD-type Vars from outer query levels
ImprovementsAvoid “record type has not been registered” failure when deparsing a view that contains references to fields of composite constants
Changes
Avoid “record type has not been registered” failure when deparsing a view that contains references to fields of composite constants (Tom Lane) §
Related records (2)
- Same changePostgreSQL 13.13 · Avoid “record type has not been registered” failure when deparsing a view that contains references to fields of composite constants
- Same changePostgreSQL 11.22 · Avoid “record type has not been registered” failure when deparsing a view that contains references to fields of composite constants
ImprovementsAllow extracting fields from a RECORD-type ROW() expression
Changes
Allow extracting fields from a RECORD-type ROW() expression (Tom Lane) §
SQL code that knows that we name such fields f1, f2, etc can use those names to extract fields from the expression. This change was originally made in version 13, and is now being back-patched into older branches to support tests for a related bug.
Related records (1)
Bug fixesFix error-handling bug in RECORD type cache management
Changes
Fix error-handling bug in RECORD type cache management (Thomas Munro) §
An out-of-memory error occurring at just the wrong point could leave behind inconsistent state that would lead to an infinite loop.
Related records (5)
- Same changePostgreSQL 16.1 · Fix error-handling bug in RECORD type cache management
- Same changePostgreSQL 15.5 · Fix error-handling bug in RECORD type cache management
- Same changePostgreSQL 14.10 · Fix error-handling bug in RECORD type cache management
- Same changePostgreSQL 13.13 · Fix error-handling bug in RECORD type cache management
- Same changePostgreSQL 11.22 · Fix error-handling bug in RECORD type cache management
Bug fixesFix assertion failure when logical decoding is retried in the same session after an error
Changes
Fix assertion failure when logical decoding is retried in the same session after an error (Hou Zhijie) §
Related records (4)
- Same changePostgreSQL 15.5 · Fix assertion failure when logical decoding is retried in the same session after an error
- Same changePostgreSQL 14.10 · Fix assertion failure when logical decoding is retried in the same session after an error
- Same changePostgreSQL 13.13 · Fix assertion failure when logical decoding is retried in the same session after an error
- Same changePostgreSQL 11.22 · Fix assertion failure when logical decoding is retried in the same session after an error
ImprovementsTreat out-of-memory failures as fatal while reading WAL
Changes
Treat out-of-memory failures as fatal while reading WAL (Michael Paquier) §
Previously this would be treated as a bogus-data condition, leading to the conclusion that we'd reached the end of WAL, which is incorrect and could lead to inconsistent WAL replay.
Related records (4)
- Same changePostgreSQL 16.1 · Treat out-of-memory failures as fatal while reading WAL
- Same changePostgreSQL 15.5 · Treat out-of-memory failures as fatal while reading WAL
- Same changePostgreSQL 14.10 · Treat out-of-memory failures as fatal while reading WAL
- Same changePostgreSQL 13.13 · Treat out-of-memory failures as fatal while reading WAL
Bug fixesFix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field
Changes
Fix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field (Thomas Munro, Michael Paquier) § §
Related records (4)
- Same changePostgreSQL 16.1 · Fix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field
- Same changePostgreSQL 15.5 · Fix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field
- Same changePostgreSQL 14.10 · Fix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field
- Same changePostgreSQL 13.13 · Fix possible recovery failure due to trying to allocate memory based on a bogus WAL record length field
ImprovementsEnsure that standby-mode WAL recovery reports an error when an invalid page header is found
Changes
Ensure that standby-mode WAL recovery reports an error when an invalid page header is found (Yugo Nagata, Kyotaro Horiguchi) §
ImprovementsAvoid doing plan cache revalidation of utility statements that do not receive interesting processing during parse analysis
Changes
Avoid doing plan cache revalidation of utility statements that do not receive interesting processing during parse analysis (Tom Lane) §
Aside from saving a few cycles, this prevents failure after a cache invalidation for statements that must not set a snapshot, such as SET TRANSACTION ISOLATION LEVEL.
Related records (4)
- Same changePostgreSQL 15.5 · Avoid doing plan cache revalidation of utility statements that do not receive interesting processing during parse analysis
- Same changePostgreSQL 14.10 · Avoid doing plan cache revalidation of utility statements that do not receive interesting processing during parse analysis
- Same changePostgreSQL 13.13 · Avoid doing plan cache revalidation of utility statements that do not receive interesting processing during parse analysis
- Same changePostgreSQL 11.22 · Avoid doing plan cache revalidation of utility statements that do not receive interesting processing during parse analysis
ImprovementsKeep by-reference attmissingval values in a long-lived context while they are being used
Changes
Keep by-reference attmissingval values in a long-lived context while they are being used (Andrew Dunstan) §
This avoids possible use of dangling pointers when a tuple slot outlives the tuple descriptor with which its value was constructed.
Related records (4)
- Same changePostgreSQL 15.5 · Keep by-reference attmissingval values in a long-lived context while they are being used
- Same changePostgreSQL 14.10 · Keep by-reference attmissingval values in a long-lived context while they are being used
- Same changePostgreSQL 13.13 · Keep by-reference attmissingval values in a long-lived context while they are being used
- Same changePostgreSQL 11.22 · Keep by-reference attmissingval values in a long-lived context while they are being used
ImprovementsRecalculate the effective value of search_path after ALTER ROLE
Changes
Recalculate the effective value of search_path after ALTER ROLE (Jeff Davis) § §
This ensures that after renaming a role, the meaning of the special string $user is re-determined.
Related records (4)
- Same changePostgreSQL 15.5 · Recalculate the effective value of search_path after ALTER ROLE
- Same changePostgreSQL 14.10 · Recalculate the effective value of search_path after ALTER ROLE
- Same changePostgreSQL 13.13 · Recalculate the effective value of search_path after ALTER ROLE
- Same changePostgreSQL 11.22 · Recalculate the effective value of search_path after ALTER ROLE
Bug fixesFix order of operations in GenericXLogFinish
Changes
Fix order of operations in GenericXLogFinish (Jeff Davis) §
This code violated the conditions required for crash safety by writing WAL before marking changed buffers dirty. No core code uses this function, but extensions do (contrib/bloom does, for example).
Related records (5)
- Same changePostgreSQL 16.1 · Fix order of operations in GenericXLogFinish
- Same changePostgreSQL 15.5 · Fix order of operations in GenericXLogFinish
- Same changePostgreSQL 14.10 · Fix order of operations in GenericXLogFinish
- Same changePostgreSQL 13.13 · Fix order of operations in GenericXLogFinish
- Same changePostgreSQL 11.22 · Fix order of operations in GenericXLogFinish
ImprovementsRemove incorrect assertion in PL/Python exception handling
Changes
Remove incorrect assertion in PL/Python exception handling (Alexander Lakhin) §
Related records (5)
- Same changePostgreSQL 16.1 · Remove incorrect assertion in PL/Python exception handling
- Same changePostgreSQL 15.5 · Remove incorrect assertion in PL/Python exception handling
- Same changePostgreSQL 14.10 · Remove incorrect assertion in PL/Python exception handling
- Same changePostgreSQL 13.13 · Remove incorrect assertion in PL/Python exception handling
- Same changePostgreSQL 11.22 · Remove incorrect assertion in PL/Python exception handling
Bug fixesFix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables
Changes
Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables (Euler Taveira, Tom Lane) §
Formerly, only the table-level ACL would get restored if both types were present.
Related records (5)
- Same changePostgreSQL 16.1 · Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables
- Same changePostgreSQL 15.5 · Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables
- Same changePostgreSQL 14.10 · Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables
- Same changePostgreSQL 13.13 · Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables
- Same changePostgreSQL 11.22 · Fix pg_restore so that selective restores will include both table-level and column-level ACLs for selected tables
ImprovementsAdd logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types
Changes
Add logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types (Álvaro Herrera) § §
These obsolete data types were removed in PostgreSQL version 12, so check to make sure they aren't present in an older database before claiming it can be upgraded.
Related records (4)
- Same changePostgreSQL 16.1 · Add logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types
- Same changePostgreSQL 15.5 · Add logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types
- Same changePostgreSQL 14.10 · Add logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types
- Same changePostgreSQL 13.13 · Add logic to pg_upgrade to check for use of abstime, reltime, and tinterval data types
ImprovementsAvoid generating invalid temporary slot names in pg_basebackup
Changes
Avoid generating invalid temporary slot names in pg_basebackup (Jelte Fennema) §
This has only been seen to occur when the server connection runs through pgbouncer.
Related records (4)
- Same changePostgreSQL 15.5 · Avoid generating invalid temporary slot names in pg_basebackup
- Same changePostgreSQL 14.10 · Avoid generating invalid temporary slot names in pg_basebackup
- Same changePostgreSQL 13.13 · Avoid generating invalid temporary slot names in pg_basebackup
- Same changePostgreSQL 11.22 · Avoid generating invalid temporary slot names in pg_basebackup
ImprovementsAvoid false “too many client connections” errors in pgbench on Windows
Changes
Avoid false “too many client connections” errors in pgbench on Windows (Noah Misch) §
Related records (4)
- Same changePostgreSQL 16.1 · Avoid false “too many client connections” errors in pgbench on Windows
- Same changePostgreSQL 15.5 · Avoid false “too many client connections” errors in pgbench on Windows
- Same changePostgreSQL 14.10 · Avoid false “too many client connections” errors in pgbench on Windows
- Same changePostgreSQL 13.13 · Avoid false “too many client connections” errors in pgbench on Windows
ImprovementsIn contrib/amcheck, do not report interrupted page deletion as corruption
Changes
In contrib/amcheck, do not report interrupted page deletion as corruption (Noah Misch) §
This fix prevents false-positive reports of “the first child of leftmost target page is not leftmost of its level”, “block NNNN is not leftmost” or “left link/right link pair in index XXXX not in agreement”. They appeared if amcheck ran after an unfinished btree index page deletion and before VACUUM had cleaned things up.
Related records (5)
- Same changePostgreSQL 16.1 · In contrib/amcheck, do not report interrupted page deletion as corruption
- Same changePostgreSQL 15.5 · In contrib/amcheck, do not report interrupted page deletion as corruption
- Same changePostgreSQL 14.10 · In contrib/amcheck, do not report interrupted page deletion as corruption
- Same changePostgreSQL 13.13 · In contrib/amcheck, do not report interrupted page deletion as corruption
- Same changePostgreSQL 11.22 · In contrib/amcheck, do not report interrupted page deletion as corruption
Bug fixesFix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed
Changes
Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed (Dean Rasheed) §
Such an indexscan failed to return all the entries it should.
Related records (5)
- Same changePostgreSQL 16.1 · Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 15.5 · Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 14.10 · Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 13.13 · Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 11.22 · Fix failure of contrib/btree_gin indexes on interval columns, when an indexscan using the < or <= operator is performed
ImprovementsAdd support for LLVM 16 and 17
Changes
Related records (4)
ImprovementsSuppress assorted build-time warnings on recent macOS
Changes
Suppress assorted build-time warnings on recent macOS (Tom Lane) § §
Xcode 15 (released with macOS Sonoma) changed the linker's behavior in a way that causes many duplicate-library warnings while building PostgreSQL. These were harmless, but they're annoying so avoid citing the same libraries twice. Also remove use of the -multiply_defined suppress linker switch, which apparently has been a no-op for a long time, and is now actively complained of.
Related records (5)
- Same changePostgreSQL 16.1 · Suppress assorted build-time warnings on recent macOS
- Same changePostgreSQL 15.5 · Suppress assorted build-time warnings on recent macOS
- Same changePostgreSQL 14.10 · Suppress assorted build-time warnings on recent macOS
- Same changePostgreSQL 13.13 · Suppress assorted build-time warnings on recent macOS
- Same changePostgreSQL 11.22 · Suppress assorted build-time warnings on recent macOS
ImprovementsRemove PHOT (Phoenix Islands Time) from the default timezone abbreviations list
Changes
Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list (Tom Lane) §
Presence of this abbreviation in the default list can cause failures on recent Debian and Ubuntu releases, as they no longer install the underlying tzdb entry by default. Since this is a made-up abbreviation for a zone with a total human population of about two dozen, it seems unlikely that anyone will miss it. If someone does, they can put it back via a custom abbreviations file.
Related records (5)
- Same changePostgreSQL 16.1 · Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list
- Same changePostgreSQL 15.5 · Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list
- Same changePostgreSQL 14.10 · Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list
- Same changePostgreSQL 13.13 · Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list
- Same changePostgreSQL 11.22 · Remove PHOT (Phoenix Islands Time) from the default timezone abbreviations list
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.