DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 11.14 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.14
2021-11-11
11.14stableSupport ends 2023-11-09
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2021-23214 Make the server reject extraneous data after an SSL or GSS encryption handshake | 11.14 | Recorded fix | |
| CVE-2021-23222 Make libpq reject extraneous data after an SSL or GSS encryption handshake | 11.14 | Recorded fix |
PostgreSQL 11.14
Migration and compatibility
A dump/restore is not required for those running 11.X.
However, note that installations using physical replication should update standby servers before the primary server, as explained in the third changelog entry below.
Also, several bugs have been found that may have resulted in corrupted indexes, as explained in the next several changelog entries. If any of those cases apply to you, it's recommended to reindex possibly-affected indexes after updating.
Also, if you are upgrading from a version earlier than 11.11, see Section E.12.
SecurityMake the server reject extraneous data after an SSL or GSS encryption handshake
Changes
Make the server reject extraneous data after an SSL or GSS encryption handshake (Tom Lane)
A man-in-the-middle with the ability to inject data into the TCP connection could stuff some cleartext data into the start of a supposedly encryption-protected database session. This could be abused to send faked SQL commands to the server, although that would only work if the server did not demand any authentication data. (However, a server relying on SSL certificate authentication might well not do so.)
The PostgreSQL Project thanks Jacob Champion for reporting this problem. (CVE-2021-23214)
Related records (5)
- Same changePostgreSQL 14.1 · Make the server reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 13.5 · Make the server reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 12.9 · Make the server reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 10.19 · Make the server reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 9.6.24 · Make the server reject extraneous data after an SSL or GSS encryption handshake
SecurityMake libpq reject extraneous data after an SSL or GSS encryption handshake
Changes
Make libpq reject extraneous data after an SSL or GSS encryption handshake (Tom Lane)
A man-in-the-middle with the ability to inject data into the TCP connection could stuff some cleartext data into the start of a supposedly encryption-protected database session. This could probably be abused to inject faked responses to the client's first few queries, although other details of libpq's behavior make that harder than it sounds. A different line of attack is to exfiltrate the client's password, or other sensitive data that might be sent early in the session. That has been shown to be possible with a server vulnerable to CVE-2021-23214.
The PostgreSQL Project thanks Jacob Champion for reporting this problem. (CVE-2021-23222)
Related records (5)
- Same changePostgreSQL 14.1 · Make libpq reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 13.5 · Make libpq reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 12.9 · Make libpq reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 10.19 · Make libpq reject extraneous data after an SSL or GSS encryption handshake
- Same changePostgreSQL 9.6.24 · Make libpq reject extraneous data after an SSL or GSS encryption handshake
Bug fixesFix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record
Changes
Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record (Álvaro Herrera)
If the primary did not survive long enough to finish writing the rest of the incomplete WAL record, then the previous crash-recovery logic had it back up and overwrite WAL starting from the beginning of the incomplete WAL record. This is problematic since standby servers may already have copies of that WAL segment. They will then see an inconsistent next segment, and will not be able to recover without manual intervention. To fix, do not back up over a WAL segment boundary when restarting after a crash. Instead write a new type of WAL record at the start of the next WAL segment, informing readers that the incomplete WAL record will never be finished and must be disregarded.
When applying this update, it's best to update standby servers before the primary, so that they will be ready to handle this new WAL record type if the primary happens to crash.
Related records (5)
- Same changePostgreSQL 14.1 · Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record
- Same changePostgreSQL 13.5 · Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record
- Same changePostgreSQL 12.9 · Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record
- Same changePostgreSQL 10.19 · Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record
- Same changePostgreSQL 9.6.24 · Fix physical replication for cases where the primary crashes after shipping a WAL segment that ends with a partial WAL record
Bug fixesFix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions
Changes
Fix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions (Andrey Borodin)
Rows inserted by just-prepared transactions might be omitted from the new index, causing queries relying on the index to miss such rows. The previous fix for this type of problem failed to account for PREPARE TRANSACTION commands that were still in progress when CREATE INDEX CONCURRENTLY checked for them. As before, 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 14.1 · Fix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions
- Same changePostgreSQL 13.5 · Fix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions
- Same changePostgreSQL 12.9 · Fix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions
- Same changePostgreSQL 10.19 · Fix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions
- Same changePostgreSQL 9.6.24 · Fix CREATE INDEX CONCURRENTLY to wait for the latest prepared transactions
ImprovementsAvoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently
Changes
Avoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently (Noah Misch, Andrey Borodin)
While it's apparently rare in the field, this case could potentially affect any index built or reindexed with the CONCURRENTLY option. It is recommended to reindex any such indexes to make sure they are correct.
Related records (5)
- Same changePostgreSQL 14.1 · Avoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently
- Same changePostgreSQL 13.5 · Avoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently
- Same changePostgreSQL 12.9 · Avoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently
- Same changePostgreSQL 10.19 · Avoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently
- Same changePostgreSQL 9.6.24 · Avoid race condition that can cause backends to fail to add entries for new rows to an index being built concurrently
Bug fixesFix float4 and float8 hash functions to produce uniform results for NaNs
Changes
Fix float4 and float8 hash functions to produce uniform results for NaNs (Tom Lane)
Since PostgreSQL's floating-point types deem all NaNs to be equal, it's important for the hash functions to produce the same hash code for all bit-patterns that are NaNs according to the IEEE 754 standard. This failed to happen before, meaning that hash indexes and hash-based query plans might produce incorrect results for non-canonical NaN values. ('-NaN'::float8 is one way to produce such a value on most machines.) It is advisable to reindex hash indexes on floating-point columns, if there is any possibility that they might contain such values.
Related records (4)
- Same changePostgreSQL 13.5 · Fix float4 and float8 hash functions to produce uniform results for NaNs
- Same changePostgreSQL 12.9 · Fix float4 and float8 hash functions to produce uniform results for NaNs
- Same changePostgreSQL 10.19 · Fix float4 and float8 hash functions to produce uniform results for NaNs
- Same changePostgreSQL 9.6.24 · Fix float4 and float8 hash functions to produce uniform results for NaNs
Bug fixesPrevent data loss during crash recovery of CREATE TABLESPACE, when wal_level = minimal
Changes
Prevent data loss during crash recovery of CREATE TABLESPACE, when wal_level = minimal (Noah Misch)
If the server crashed between CREATE TABLESPACE and the next checkpoint, replay would fully remove the contents of the new tablespace's directory, relying on subsequent WAL replay to restore everything within that directory. This interacts badly with optimizations that skip writing WAL (one example is COPY into a just-created table). Such optimizations are applied only when wal_level is minimal, which is not the default in v10 and later.
Related records (4)
- Same changePostgreSQL 13.5 · Prevent data loss during crash recovery of CREATE TABLESPACE, when wal_level = minimal
- Same changePostgreSQL 12.9 · Prevent data loss during crash recovery of CREATE TABLESPACE, when wal_level = minimal
- Same changePostgreSQL 10.19 · Prevent data loss during crash recovery of CREATE TABLESPACE, when wal_level = minimal
- Same changePostgreSQL 9.6.24 · Prevent data loss during crash recovery of CREATE TABLESPACE, when wal_level = minimal
ImprovementsEnsure that the relation cache is invalidated for a table being attached to or detached from a partitioned table
Changes
Ensure that the relation cache is invalidated for a table being attached to or detached from a partitioned table (Amit Langote, Álvaro Herrera)
This oversight could allow misbehavior of subsequent inserts/updates addressed directly to the partition, but only in currently-existing sessions.
Related records (4)
- Same changePostgreSQL 14.1 · Ensure that the relation cache is invalidated for a table being attached to or detached from a partitioned table
- Same changePostgreSQL 13.5 · Ensure that the relation cache is invalidated for a table being attached to or detached from a partitioned table
- Same changePostgreSQL 12.9 · Ensure that the relation cache is invalidated for a table being attached to or detached from a partitioned table
- Same changePostgreSQL 10.19 · Ensure that the relation cache is invalidated for a table being attached to or detached from a partitioned table
ImprovementsEnsure that the relation cache is invalidated when creating or dropping a FOR ALL TABLES publication
Changes
Ensure that the relation cache is invalidated when creating or dropping a FOR ALL TABLES publication (Hou Zhijie, Vignesh C)
This oversight could lead to improper replication behavior until all currently-existing sessions have exited.
Related records (3)
- Same changePostgreSQL 13.5 · Ensure that the relation cache is invalidated when creating or dropping a FOR ALL TABLES publication
- Same changePostgreSQL 12.9 · Ensure that the relation cache is invalidated when creating or dropping a FOR ALL TABLES publication
- Same changePostgreSQL 10.19 · Ensure that the relation cache is invalidated when creating or dropping a FOR ALL TABLES publication
ImprovementsDon't discard a cast to the same type with unspecified type modifier
Changes
Don't discard a cast to the same type with unspecified type modifier (Tom Lane)
For example, if column f1 is of type numeric(18,3), the parser used to simply discard a cast like f1::numeric, on the grounds that it would have no run-time effect. That's true, but the exposed type of the expression should still be considered to be plain numeric, not numeric(18,3). This is important for correctly resolving the type of larger constructs, such as recursive UNIONs.
Related records (4)
- Same changePostgreSQL 13.5 · Don't discard a cast to the same type with unspecified type modifier
- Same changePostgreSQL 12.9 · Don't discard a cast to the same type with unspecified type modifier
- Same changePostgreSQL 10.19 · Don't discard a cast to the same type with unspecified type modifier
- Same changePostgreSQL 9.6.24 · Don't discard a cast to the same type with unspecified type modifier
Bug fixesFix updates of element fields in arrays of domain over composite
Changes
Fix updates of element fields in arrays of domain over composite (Tom Lane)
A command such as UPDATE tab SET fld[1].subfld = val failed if the array's elements were domains rather than plain composites.
ImprovementsDisallow creating an ICU collation if the current database's encoding won't support it
Changes
Disallow creating an ICU collation if the current database's encoding won't support it (Tom Lane)
Previously this was allowed, but then the collation could not be referenced because of the way collation lookup works; you could not use the collation, nor even drop it.
Related records (3)
- Same changePostgreSQL 13.5 · Disallow creating an ICU collation if the current database's encoding won't support it
- Same changePostgreSQL 12.9 · Disallow creating an ICU collation if the current database's encoding won't support it
- Same changePostgreSQL 10.19 · Disallow creating an ICU collation if the current database's encoding won't support it
Bug fixesFix corner-case loss of precision in numeric power()
Changes
Fix corner-case loss of precision in numeric power() (Dean Rasheed)
The result could be inaccurate when the first argument is very close to 1.
Related records (5)
- Same changePostgreSQL 14.1 · Fix corner-case loss of precision in numeric power()
- Same changePostgreSQL 13.5 · Fix corner-case loss of precision in numeric power()
- Same changePostgreSQL 12.9 · Fix corner-case loss of precision in numeric power()
- Same changePostgreSQL 10.19 · Fix corner-case loss of precision in numeric power()
- Same changePostgreSQL 9.6.24 · Fix corner-case loss of precision in numeric power()
ImprovementsAvoid regular expression errors with capturing parentheses inside {0}
Changes
Avoid regular expression errors with capturing parentheses inside {0} (Tom Lane)
Regular expressions like (.){0}...\1 drew “invalid backreference number”. Other regexp engines such as Perl don't complain, though, and for that matter ours doesn't either in some closely related cases. Worse, it could throw an assertion failure instead. Fix it so that no error is thrown and instead the back-reference is silently deemed to never match.
Related records (4)
- Same changePostgreSQL 13.5 · Avoid regular expression errors with capturing parentheses inside {0}
- Same changePostgreSQL 12.9 · Avoid regular expression errors with capturing parentheses inside {0}
- Same changePostgreSQL 10.19 · Avoid regular expression errors with capturing parentheses inside {0}
- Same changePostgreSQL 9.6.24 · Avoid regular expression errors with capturing parentheses inside {0}
ImprovementsPrevent regular expression back-references from sometimes matching when they shouldn't
Changes
Prevent regular expression back-references from sometimes matching when they shouldn't (Tom Lane)
The regexp engine was careless about clearing match data for capturing parentheses after rejecting a partial match. This could allow a later back-reference to match in places where it should fail for lack of a defined referent.
Related records (4)
- Same changePostgreSQL 13.5 · Prevent regular expression back-references from sometimes matching when they shouldn't
- Same changePostgreSQL 12.9 · Prevent regular expression back-references from sometimes matching when they shouldn't
- Same changePostgreSQL 10.19 · Prevent regular expression back-references from sometimes matching when they shouldn't
- Same changePostgreSQL 9.6.24 · Prevent regular expression back-references from sometimes matching when they shouldn't
Bug fixesFix regular expression performance bug with back-references inside iteration nodes
Changes
Fix regular expression performance bug with back-references inside iteration nodes (Tom Lane)
Incorrect back-tracking logic could result in exponential time spent looking for a match. Fortunately the problem is masked in most cases by other optimizations.
Related records (4)
- Same changePostgreSQL 13.5 · Fix regular expression performance bug with back-references inside iteration nodes
- Same changePostgreSQL 12.9 · Fix regular expression performance bug with back-references inside iteration nodes
- Same changePostgreSQL 10.19 · Fix regular expression performance bug with back-references inside iteration nodes
- Same changePostgreSQL 9.6.24 · Fix regular expression performance bug with back-references inside iteration nodes
Bug fixesFix incorrect results from AT TIME ZONE applied to a time with time zone value
Changes
Fix incorrect results from AT TIME ZONE applied to a time with time zone value (Tom Lane)
The results were incorrect if the target time zone was specified by a dynamic timezone abbreviation (that is, one that is defined as equivalent to a full time zone name, rather than a fixed UTC offset).
Related records (4)
- Same changePostgreSQL 13.5 · Fix incorrect results from AT TIME ZONE applied to a time with time zone value
- Same changePostgreSQL 12.9 · Fix incorrect results from AT TIME ZONE applied to a time with time zone value
- Same changePostgreSQL 10.19 · Fix incorrect results from AT TIME ZONE applied to a time with time zone value
- Same changePostgreSQL 9.6.24 · Fix incorrect results from AT TIME ZONE applied to a time with time zone value
ImprovementsAvoid using MCV-only statistics to estimate the range of a column
Changes
Avoid using MCV-only statistics to estimate the range of a column (Tom Lane)
There are corner cases in which ANALYZE will build a most-common-values (MCV) list but not a histogram, even though the MCV list does not account for all the observed values. In such cases, keep the planner from using the MCV list alone to estimate the range of column values.
Related records (4)
- Same changePostgreSQL 14.1 · Avoid using MCV-only statistics to estimate the range of a column
- Same changePostgreSQL 13.5 · Avoid using MCV-only statistics to estimate the range of a column
- Same changePostgreSQL 12.9 · Avoid using MCV-only statistics to estimate the range of a column
- Same changePostgreSQL 10.19 · Avoid using MCV-only statistics to estimate the range of a column
Bug fixesFix restoration of a Portal's snapshot inside a subtransaction
Changes
Fix restoration of a Portal's snapshot inside a subtransaction (Bertrand Drouvot)
If a procedure commits or rolls back a transaction, and then its next significant action is inside a new subtransaction, snapshot management went wrong, leading to a dangling pointer and probable crash. A typical example in PL/pgSQL is a COMMIT immediately followed by a BEGIN ... EXCEPTION block that performs a query.
ImprovementsClean up correctly if a transaction fails after exporting its snapshot
Changes
Clean up correctly if a transaction fails after exporting its snapshot (Dilip Kumar)
This oversight would only cause a problem if the same session attempted to export a snapshot again. The most likely scenario for that is creation of a replication slot (followed by rollback) and then creation of another replication slot.
Related records (5)
- Same changePostgreSQL 14.1 · Clean up correctly if a transaction fails after exporting its snapshot
- Same changePostgreSQL 13.5 · Clean up correctly if a transaction fails after exporting its snapshot
- Same changePostgreSQL 12.9 · Clean up correctly if a transaction fails after exporting its snapshot
- Same changePostgreSQL 10.19 · Clean up correctly if a transaction fails after exporting its snapshot
- Same changePostgreSQL 9.6.24 · Clean up correctly if a transaction fails after exporting its snapshot
Bug fixesPrevent wraparound of overflowed-subtransaction tracking on standby servers
Changes
Prevent wraparound of overflowed-subtransaction tracking on standby servers (Kyotaro Horiguchi, Alexander Korotkov)
This oversight could cause significant performance degradation (manifesting as excessive SubtransSLRU traffic) on standby servers.
Related records (5)
- Same changePostgreSQL 14.1 · Prevent wraparound of overflowed-subtransaction tracking on standby servers
- Same changePostgreSQL 13.5 · Prevent wraparound of overflowed-subtransaction tracking on standby servers
- Same changePostgreSQL 12.9 · Prevent wraparound of overflowed-subtransaction tracking on standby servers
- Same changePostgreSQL 10.19 · Prevent wraparound of overflowed-subtransaction tracking on standby servers
- Same changePostgreSQL 9.6.24 · Prevent wraparound of overflowed-subtransaction tracking on standby servers
ImprovementsEnsure that prepared transactions are properly accounted for during promotion of a standby server
Changes
Ensure that prepared transactions are properly accounted for during promotion of a standby server (Michael Paquier, Andres Freund)
There was a narrow window where a prepared transaction could be omitted from a snapshot taken by a concurrently-running session. If that session then used the snapshot to perform data updates, erroneous results or data corruption could occur.
Related records (5)
- Same changePostgreSQL 14.1 · Ensure that prepared transactions are properly accounted for during promotion of a standby server
- Same changePostgreSQL 13.5 · Ensure that prepared transactions are properly accounted for during promotion of a standby server
- Same changePostgreSQL 12.9 · Ensure that prepared transactions are properly accounted for during promotion of a standby server
- Same changePostgreSQL 10.19 · Ensure that prepared transactions are properly accounted for during promotion of a standby server
- Same changePostgreSQL 9.6.24 · Ensure that prepared transactions are properly accounted for during promotion of a standby server
ImprovementsRefuse to rewind a cursor marked NO SCROLL if it has been held over from a previous transaction due to the WITH HOLD option
Changes
Refuse to rewind a cursor marked NO SCROLL if it has been held over from a previous transaction due to the WITH HOLD option (Tom Lane)
We have long forbidden fetching backwards from a NO SCROLL cursor, but for historical reasons the prohibition didn't extend to cases in which we rewind the query altogether and then re-fetch forwards. That exception leads to inconsistencies, particularly for held-over cursors which may not have stored all the data necessary to rewind. Disallow rewinding for non-scrollable held-over cursors to block the worst inconsistencies. (v15 will remove the exception altogether.)
Related records (2)
- Same changePostgreSQL 13.5 · Refuse to rewind a cursor marked NO SCROLL if it has been held over from a previous transaction due to the WITH HOLD option
- Same changePostgreSQL 12.9 · Refuse to rewind a cursor marked NO SCROLL if it has been held over from a previous transaction due to the WITH HOLD option
Bug fixesFix possible failure while saving a WITH HOLD cursor at transaction end, if it had already been read to completion
Changes
Fix possible failure while saving a WITH HOLD cursor at transaction end, if it had already been read to completion (Tom Lane)
Related records (2)
Bug fixesFix detection of a relation that has grown to the maximum allowed length
Changes
Fix detection of a relation that has grown to the maximum allowed length (Tom Lane)
An attempt to extend a table or index past the limit of 2^32-1 blocks was rejected, but not soon enough to prevent inconsistent internal state from being created.
Related records (4)
- Same changePostgreSQL 13.5 · Fix detection of a relation that has grown to the maximum allowed length
- Same changePostgreSQL 12.9 · Fix detection of a relation that has grown to the maximum allowed length
- Same changePostgreSQL 10.19 · Fix detection of a relation that has grown to the maximum allowed length
- Same changePostgreSQL 9.6.24 · Fix detection of a relation that has grown to the maximum allowed length
ImprovementsCorrectly track the presence of data-modifying CTEs when expanding a DO INSTEAD rule
Changes
Correctly track the presence of data-modifying CTEs when expanding a DO INSTEAD rule (Greg Nancarrow, Tom Lane)
The previous failure to do this could lead to problems such as unsafely choosing a parallel plan.
Related records (4)
- Same changePostgreSQL 13.5 · Correctly track the presence of data-modifying CTEs when expanding a DO INSTEAD rule
- Same changePostgreSQL 12.9 · Correctly track the presence of data-modifying CTEs when expanding a DO INSTEAD rule
- Same changePostgreSQL 10.19 · Correctly track the presence of data-modifying CTEs when expanding a DO INSTEAD rule
- Same changePostgreSQL 9.6.24 · Correctly track the presence of data-modifying CTEs when expanding a DO INSTEAD rule
Bug fixesFix incorrect reporting of permissions failures on extended statistics objects
Changes
Fix incorrect reporting of permissions failures on extended statistics objects (Tomas Vondra)
The code typically produced “cache lookup error” rather than the intended message.
Related records (3)
- Same changePostgreSQL 13.5 · Fix incorrect reporting of permissions failures on extended statistics objects
- Same changePostgreSQL 12.9 · Fix incorrect reporting of permissions failures on extended statistics objects
- Same changePostgreSQL 10.19 · Fix incorrect reporting of permissions failures on extended statistics objects
Bug fixesFix incorrect snapshot handling in parallel workers
Changes
Fix incorrect snapshot handling in parallel workers (Greg Nancarrow)
This oversight could lead to misbehavior in parallel queries if the transaction isolation level is less than REPEATABLE READ.
Related records (3)
Bug fixesFix logical decoding to correctly ignore toast-table changes for transient tables
Changes
Fix logical decoding to correctly ignore toast-table changes for transient tables (Bertrand Drouvot)
Logical decoding normally ignores changes in transient tables such as those created during an ALTER TABLE heap rewrite. But that filtering wasn't applied to the associated toast table if any, leading to possible errors when rewriting a table that's being published.
ImprovementsEnsure that walreceiver processes create all required archive notification files before exiting
Changes
Ensure that walreceiver processes create all required archive notification files before exiting (Fujii Masao)
If a walreceiver exited exactly at a WAL segment boundary, it failed to make a notification file for the last-received segment, thus delaying archiving of that segment on the standby.
Related records (4)
- Same changePostgreSQL 13.5 · Ensure that walreceiver processes create all required archive notification files before exiting
- Same changePostgreSQL 12.9 · Ensure that walreceiver processes create all required archive notification files before exiting
- Same changePostgreSQL 10.19 · Ensure that walreceiver processes create all required archive notification files before exiting
- Same changePostgreSQL 9.6.24 · Ensure that walreceiver processes create all required archive notification files before exiting
ImprovementsAvoid trying to lock the OLD and NEW pseudo-relations in a rule that uses SELECT FOR UPDATE
Changes
Avoid trying to lock the OLD and NEW pseudo-relations in a rule that uses SELECT FOR UPDATE (Masahiko Sawada, Tom Lane)
Related records (4)
- Same changePostgreSQL 13.5 · Avoid trying to lock the OLD and NEW pseudo-relations in a rule that uses SELECT FOR UPDATE
- Same changePostgreSQL 12.9 · Avoid trying to lock the OLD and NEW pseudo-relations in a rule that uses SELECT FOR UPDATE
- Same changePostgreSQL 10.19 · Avoid trying to lock the OLD and NEW pseudo-relations in a rule that uses SELECT FOR UPDATE
- Same changePostgreSQL 9.6.24 · Avoid trying to lock the OLD and NEW pseudo-relations in a rule that uses SELECT FOR UPDATE
Bug fixesFix parser's processing of aggregate FILTER clauses
Changes
Fix parser's processing of aggregate FILTER clauses (Tom Lane)
If the FILTER expression is a plain boolean column, the semantic level of the aggregate could be mis-determined, leading to not-per-spec behavior. If the FILTER expression is itself a boolean-returning aggregate, an error should be thrown but was not, likely resulting in a crash at execution.
Related records (4)
- Same changePostgreSQL 13.5 · Fix parser's processing of aggregate FILTER clauses
- Same changePostgreSQL 12.9 · Fix parser's processing of aggregate FILTER clauses
- Same changePostgreSQL 10.19 · Fix parser's processing of aggregate FILTER clauses
- Same changePostgreSQL 9.6.24 · Fix parser's processing of aggregate FILTER clauses
ImprovementsAvoid trying to clean up LLVM state after an error within LLVM
Changes
Avoid trying to clean up LLVM state after an error within LLVM (Andres Freund, Justin Pryzby)
This prevents a likely crash during backend exit after a fatal LLVM error.
Related records (2)
Bug fixesAvoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently
Changes
Avoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently (Álvaro Herrera)
Related records (5)
- Same changePostgreSQL 14.1 · Avoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently
- Same changePostgreSQL 13.5 · Avoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently
- Same changePostgreSQL 12.9 · Avoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently
- Same changePostgreSQL 10.19 · Avoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently
- Same changePostgreSQL 9.6.24 · Avoid null-pointer-dereference crash when dropping a role that owns objects being dropped concurrently
Bug fixesPrevent “snapshot reference leak” warning when lo_export() or a related function fails
Changes
Prevent “snapshot reference leak” warning when lo_export() or a related function fails (Heikki Linnakangas)
Related records (5)
- Same changePostgreSQL 14.1 · Prevent “snapshot reference leak” warning when lo_export() or a related function fails
- Same changePostgreSQL 13.5 · Prevent “snapshot reference leak” warning when lo_export() or a related function fails
- Same changePostgreSQL 12.9 · Prevent “snapshot reference leak” warning when lo_export() or a related function fails
- Same changePostgreSQL 10.19 · Prevent “snapshot reference leak” warning when lo_export() or a related function fails
- Same changePostgreSQL 9.6.24 · Prevent "snapshot reference leak" warning when lo_export() or a related function fails
ImprovementsEnsure that scans of SP-GiST indexes are counted in the statistics views
Changes
Ensure that scans of SP-GiST indexes are counted in the statistics views (Tom Lane)
Incrementing the number-of-index-scans counter was overlooked in the SP-GiST code, although per-tuple counters were advanced correctly.
Related records (4)
- Same changePostgreSQL 13.5 · Ensure that scans of SP-GiST indexes are counted in the statistics views
- Same changePostgreSQL 12.9 · Ensure that scans of SP-GiST indexes are counted in the statistics views
- Same changePostgreSQL 10.19 · Ensure that scans of SP-GiST indexes are counted in the statistics views
- Same changePostgreSQL 9.6.24 · Ensure that scans of SP-GiST indexes are counted in the statistics views
ImprovementsRecalculate relevant wait intervals if recovery_min_apply_delay is changed during recovery
Changes
Recalculate relevant wait intervals if recovery_min_apply_delay is changed during recovery (Soumyadeep Chakraborty, Ashwin Agrawal)
Related records (4)
- Same changePostgreSQL 13.5 · Recalculate relevant wait intervals if recovery_min_apply_delay is changed during recovery
- Same changePostgreSQL 12.9 · Recalculate relevant wait intervals if recovery_min_apply_delay is changed during recovery
- Same changePostgreSQL 10.19 · Recalculate relevant wait intervals if recovery_min_apply_delay is changed during recovery
- Same changePostgreSQL 9.6.24 · Recalculate relevant wait intervals if recovery_min_apply_delay is changed during recovery
Bug fixesFix infinite loop if a simplehash.h hash table reaches 2^32 elements
Changes
Fix infinite loop if a simplehash.h hash table reaches 2^32 elements (Yura Sokolov)
It seems unlikely that this bug has been hit in practice, as it would require work_mem settings of hundreds of gigabytes for existing uses of simplehash.h.
Related records (3)
ImprovementsReduce memory consumption during calculation of extended statistics
Changes
Reduce memory consumption during calculation of extended statistics (Justin Pryzby, Tomas Vondra)
Related records (3)
Bug fixesFix ecpg to recover correctly after malloc() failure while establishing a connection
Changes
Fix ecpg to recover correctly after malloc() failure while establishing a connection (Michael Paquier)
Related records (4)
- Same changePostgreSQL 13.5 · Fix ecpg to recover correctly after malloc() failure while establishing a connection
- Same changePostgreSQL 12.9 · Fix ecpg to recover correctly after malloc() failure while establishing a connection
- Same changePostgreSQL 10.19 · Fix ecpg to recover correctly after malloc() failure while establishing a connection
- Same changePostgreSQL 9.6.24 · Fix ecpg to recover correctly after malloc() failure while establishing a connection
Bug fixesFix misevaluation of stable functions called in the arguments of a PL/pgSQL CALL statement
Changes
Fix misevaluation of stable functions called in the arguments of a PL/pgSQL CALL statement (Tom Lane)
They were being called with an out-of-date snapshot, so that they would not see any database changes made since the start of the session's top-level command.
ImprovementsAllow EXIT out of the outermost block in a PL/pgSQL routine
Changes
Allow EXIT out of the outermost block in a PL/pgSQL routine (Tom Lane)
If the routine does not require an explicit RETURN, this usage should be valid, but it was rejected.
Related records (4)
- Same changePostgreSQL 13.5 · Allow EXIT out of the outermost block in a PL/pgSQL routine
- Same changePostgreSQL 12.9 · Allow EXIT out of the outermost block in a PL/pgSQL routine
- Same changePostgreSQL 10.19 · Allow EXIT out of the outermost block in a PL/pgSQL routine
- Same changePostgreSQL 9.6.24 · Allow EXIT out of the outermost block in a PL/pgSQL routine
ImprovementsRemove pg_ctl's hard-coded limits on the total length of generated commands
Changes
Remove pg_ctl's hard-coded limits on the total length of generated commands (Phil Krylov)
For example, this removes a restriction on how many command-line options can be passed through to the postmaster. Individual path names that pg_ctl deals with, such as the postmaster executable's name or the data directory name, are still limited to MAXPGPATH bytes in most cases.
Related records (4)
- Same changePostgreSQL 13.5 · Remove pg_ctl's hard-coded limits on the total length of generated commands
- Same changePostgreSQL 12.9 · Remove pg_ctl's hard-coded limits on the total length of generated commands
- Same changePostgreSQL 10.19 · Remove pg_ctl's hard-coded limits on the total length of generated commands
- Same changePostgreSQL 9.6.24 · Remove pg_ctl's hard-coded limits on the total length of generated commands
Bug fixesFix pg_dump to dump non-global default privileges correctly
Changes
Fix pg_dump to dump non-global default privileges correctly (Neil Chen, Masahiko Sawada)
If a global (unrestricted) ALTER DEFAULT PRIVILEGES command revoked some present-by-default privilege, for example EXECUTE for functions, and then a restricted ALTER DEFAULT PRIVILEGES command granted that privilege again for a selected role or schema, pg_dump failed to dump the restricted privilege grant correctly.
Related records (5)
- Same changePostgreSQL 14.1 · Fix pg_dump to dump non-global default privileges correctly
- Same changePostgreSQL 13.5 · Fix pg_dump to dump non-global default privileges correctly
- Same changePostgreSQL 12.9 · Fix pg_dump to dump non-global default privileges correctly
- Same changePostgreSQL 10.19 · Fix pg_dump to dump non-global default privileges correctly
- Same changePostgreSQL 9.6.24 · Fix pg_dump to dump non-global default privileges correctly
ImprovementsMake pg_dump acquire shared lock on partitioned tables that are to be dumped
Changes
Make pg_dump acquire shared lock on partitioned tables that are to be dumped (Tom Lane)
This oversight was usually pretty harmless, since once pg_dump has locked any of the leaf partitions, that would suffice to prevent significant DDL on the partitioned table itself. However problems could ensue when dumping a childless partitioned table, since no relevant lock would be held.
Related records (4)
- Same changePostgreSQL 14.1 · Make pg_dump acquire shared lock on partitioned tables that are to be dumped
- Same changePostgreSQL 13.5 · Make pg_dump acquire shared lock on partitioned tables that are to be dumped
- Same changePostgreSQL 12.9 · Make pg_dump acquire shared lock on partitioned tables that are to be dumped
- Same changePostgreSQL 10.19 · Make pg_dump acquire shared lock on partitioned tables that are to be dumped
PerformanceImprove pg_dump's performance by avoiding making per-table queries for RLS policies, and by avoiding repetitive calls to format_type()
Changes
Improve pg_dump's performance by avoiding making per-table queries for RLS policies, and by avoiding repetitive calls to format_type() (Tom Lane)
These changes provide only marginal improvement when dumping from a local server, but a dump from a remote server can benefit substantially due to fewer network round-trips.
Related records (4)
- Same changePostgreSQL 13.5 · Improve pg_dump's performance by avoiding making per-table queries for RLS policies, and by avoiding repetitive calls to format_type()
- Same changePostgreSQL 12.9 · Improve pg_dump's performance by avoiding making per-table queries for RLS policies, and by avoiding repetitive calls to format_type()
- Same changePostgreSQL 10.19 · Improve pg_dump's performance by avoiding making per-table queries for RLS policies, and by avoiding repetitive calls to format_type()
- Same changePostgreSQL 9.6.24 · Improve pg_dump's performance by avoiding making per-table queries for RLS policies, and by avoiding repetitive calls to format_type()
Bug fixesFix crash in pg_dump when attempting to dump trigger definitions from a pre-8.3 server
Changes
Fix crash in pg_dump when attempting to dump trigger definitions from a pre-8.3 server (Tom Lane)
Related records (3)
- Same changePostgreSQL 14.1 · Fix crash in pg_dump when attempting to dump trigger definitions from a pre-8.3 server
- Same changePostgreSQL 13.5 · Fix crash in pg_dump when attempting to dump trigger definitions from a pre-8.3 server
- Same changePostgreSQL 12.9 · Fix crash in pg_dump when attempting to dump trigger definitions from a pre-8.3 server
Bug fixesFix incorrect filename in pg_restore's error message about an invalid large object TOC file
Changes
Fix incorrect filename in pg_restore's error message about an invalid large object TOC file (Daniel Gustafsson)
Related records (5)
- Same changePostgreSQL 14.1 · Fix incorrect filename in pg_restore's error message about an invalid large object TOC file
- Same changePostgreSQL 13.5 · Fix incorrect filename in pg_restore's error message about an invalid large object TOC file
- Same changePostgreSQL 12.9 · Fix incorrect filename in pg_restore's error message about an invalid large object TOC file
- Same changePostgreSQL 10.19 · Fix incorrect filename in pg_restore's error message about an invalid large object TOC file
- Same changePostgreSQL 9.6.24 · Fix incorrect filename in pg_restore's error message about an invalid large object TOC file
Bug fixesFix failure of contrib/btree_gin indexes on "char" (not char(n)) columns, when an indexscan using the < or <= operator is performed
Changes
Fix failure of contrib/btree_gin indexes on "char" (not char() columns, when an indexscan using the n)< or <= operator is performed (Tom Lane)
Such an indexscan failed to return all the entries it should.
Related records (4)
- Same changePostgreSQL 13.5 · Fix failure of contrib/btree_gin indexes on "char" (not char(n)) columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 12.9 · Fix failure of contrib/btree_gin indexes on "char" (not char(n)) columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 10.19 · Fix failure of contrib/btree_gin indexes on "char" (not char(n)) columns, when an indexscan using the < or <= operator is performed
- Same changePostgreSQL 9.6.24 · Fix failure of contrib/btree_gin indexes on "char" (not char(n)) columns, when an indexscan using the < or <= operator is performed
ImprovementsChange contrib/pg_stat_statements to read its “query texts” file in units of at most 1GB
Changes
Change contrib/pg_stat_statements to read its “query texts” file in units of at most 1GB (Tom Lane)
Such large query text files are very unusual, but if they do occur, the previous coding would fail on Windows 64 (which rejects individual read requests of more than 2GB).
Related records (5)
- Same changePostgreSQL 14.1 · Change contrib/pg_stat_statements to read its “query texts” file in units of at most 1GB
- Same changePostgreSQL 13.5 · Change contrib/pg_stat_statements to read its “query texts” file in units of at most 1GB
- Same changePostgreSQL 12.9 · Change contrib/pg_stat_statements to read its “query texts” file in units of at most 1GB
- Same changePostgreSQL 10.19 · Change contrib/pg_stat_statements to read its “query texts” file in units of at most 1GB
- Same changePostgreSQL 9.6.24 · Change contrib/pg_stat_statements to read its "query texts" file in units of at most 1GB
Bug fixesFix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error
Changes
Fix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error (Tom Lane)
Related records (5)
- Same changePostgreSQL 14.1 · Fix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error
- Same changePostgreSQL 13.5 · Fix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error
- Same changePostgreSQL 12.9 · Fix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error
- Same changePostgreSQL 10.19 · Fix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error
- Same changePostgreSQL 9.6.24 · Fix null-pointer crash when contrib/postgres_fdw tries to report a data conversion error
ImprovementsAdd spinlock support for the RISC-V architecture
Changes
Add spinlock support for the RISC-V architecture (Marek Szuba)
This is essential for reasonable performance on that platform.
Related records (4)
- Same changePostgreSQL 13.5 · Add spinlock support for the RISC-V architecture
- Same changePostgreSQL 12.9 · Add spinlock support for the RISC-V architecture
- Same changePostgreSQL 10.19 · Add spinlock support for the RISC-V architecture
- Same changePostgreSQL 9.6.24 · Add spinlock support for the RISC-V architecture
ImprovementsSupport OpenSSL 3.0.0
Changes
Support OpenSSL 3.0.0 (Peter Eisentraut, Daniel Gustafsson, Michael Paquier)
Related records (3)
- Same changePostgreSQL 13.5 · Support OpenSSL 3.0.0
- Same changePostgreSQL 12.9 · Support OpenSSL 3.0.0
- Same changePostgreSQL 10.19 · Support OpenSSL 3.0.0
Bug fixesSet correct type identifier on OpenSSL BIO (I/O abstraction) objects created by PostgreSQL
Changes
Set correct type identifier on OpenSSL BIO (I/O abstraction) objects created by PostgreSQL (Itamar Gafni)
This oversight probably only matters for code that is doing tasks like auditing the OpenSSL installation. But it's nominally a violation of the OpenSSL API, so fix it.
Related records (4)
- Same changePostgreSQL 13.5 · Set correct type identifier on OpenSSL BIO (I/O abstraction) objects created by PostgreSQL
- Same changePostgreSQL 12.9 · Set correct type identifier on OpenSSL BIO (I/O abstraction) objects created by PostgreSQL
- Same changePostgreSQL 10.19 · Set correct type identifier on OpenSSL BIO (I/O abstraction) objects created by PostgreSQL
- Same changePostgreSQL 9.6.24 · Set correct type identifier on OpenSSL BIO (I/O abstraction) objects created by PostgreSQL
ImprovementsMake pg_regexec() robust against an out-of-range search_start parameter
Changes
Make pg_regexec() robust against an out-of-range search_start parameter (Tom Lane)
Return REG_NOMATCH, instead of possibly crashing, when search_start is past the end of the string. This case is probably unreachable within core PostgreSQL, but extensions might be more careless about the parameter value.
Related records (4)
- Same changePostgreSQL 13.5 · Make pg_regexec() robust against an out-of-range search_start parameter
- Same changePostgreSQL 12.9 · Make pg_regexec() robust against an out-of-range search_start parameter
- Same changePostgreSQL 10.19 · Make pg_regexec() robust against an out-of-range search_start parameter
- Same changePostgreSQL 9.6.24 · Make pg_regexec() robust against an out-of-range search_start parameter
ImprovementsEnsure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries
Changes
Ensure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries (Jeff Davis)
Related records (5)
- Same changePostgreSQL 14.1 · Ensure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries
- Same changePostgreSQL 13.5 · Ensure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries
- Same changePostgreSQL 12.9 · Ensure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries
- Same changePostgreSQL 10.19 · Ensure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries
- Same changePostgreSQL 9.6.24 · Ensure that GetSharedSecurityLabel() can be used in a newly-started session that has not yet built its critical relation cache entries
ImprovementsUse the CLDR project's data to map Windows time zone names to IANA time zones
Changes
Use the CLDR project's data to map Windows time zone names to IANA time zones (Tom Lane)
When running on Windows, initdb attempts to set the new cluster's timezone parameter to the IANA time zone matching the system's prevailing time zone. We were using a mapping table that we'd generated years ago and updated only fitfully; unsurprisingly, it contained a number of errors as well as omissions of recently-added zones. It turns out that CLDR has been tracking the most appropriate mappings, so start using their data. This change will not affect any existing installation, only newly-initialized clusters.
Related records (5)
- Same changePostgreSQL 14.1 · Use the CLDR project's data to map Windows time zone names to IANA time zones
- Same changePostgreSQL 13.5 · Use the CLDR project's data to map Windows time zone names to IANA time zones
- Same changePostgreSQL 12.9 · Use the CLDR project's data to map Windows time zone names to IANA time zones
- Same changePostgreSQL 10.19 · Use the CLDR project's data to map Windows time zone names to IANA time zones
- Same changePostgreSQL 9.6.24 · Use the CLDR project's data to map Windows time zone names to IANA time zones
ImprovementsUpdate time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
Changes
Update time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
Also, the Pacific/Enderbury zone has been renamed to Pacific/Kanton. Also, the following zones have been merged into nearby, more-populous zones whose clocks have agreed with them since 1970: Africa/Accra, America/Atikokan, America/Blanc-Sablon, America/Creston, America/Curacao, America/Nassau, America/Port_of_Spain, Antarctica/DumontDUrville, and Antarctica/Syowa. In all these cases, the previous zone name remains as an alias.
Related records (5)
- Same changePostgreSQL 14.1 · Update time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
- Same changePostgreSQL 13.5 · Update time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
- Same changePostgreSQL 12.9 · Update time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
- Same changePostgreSQL 10.19 · Update time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
- Same changePostgreSQL 9.6.24 · Update time zone data files to tzdata release 2021e for DST law changes in Fiji, Jordan, Palestine, and Samoa, plus historical corrections for Barbados, Cook Islands, Guyana, Niue, Portugal, and Tonga.
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.