DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 13.4 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
13.4
2021-08-12
13.4stableSupport ends 2025-11-13
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2021-3677 Fix mis-planning of repeated application of a projection step | 13.4 | Recorded fix | |
| CVE-2021-3449 Disallow SSL renegotiation more completely | Recorded fix | ||
| CVE-2006-2313 In psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data | Recorded fix |
PostgreSQL 13.4
Migration and compatibility
A dump/restore is not required for those running 13.X.
However, if you are upgrading from a version earlier than 13.2, see Section E.22.
SecurityFix mis-planning of repeated application of a projection step
Changes
Fix mis-planning of repeated application of a projection step (Tom Lane) §
The planner could create an incorrect plan in cases where two ProjectionPaths were stacked on top of each other. The only known way to trigger that situation involves parallel sort operations, but there may be other instances. The result would be crashes or incorrect query results. Disclosure of server memory contents is also possible. (CVE-2021-3677)
Related records (2)
SecurityDisallow SSL renegotiation more completely
Changes
Disallow SSL renegotiation more completely (Michael Paquier) §
SSL renegotiation has been disabled for some time, but the server would still cooperate with a client-initiated renegotiation request. A maliciously crafted renegotiation request could result in a server crash (see OpenSSL issue CVE-2021-3449). Disable the feature altogether on OpenSSL versions that permit doing so, which are 1.1.0h and newer.
Related records (4)
ImprovementsRestore the Portal-level snapshot after COMMIT or ROLLBACK within a procedure
Changes
Restore the Portal-level snapshot after COMMIT or ROLLBACK within a procedure (Tom Lane) § § § § §
This change fixes cases where an attempt to fetch a toasted value immediately after COMMIT/ROLLBACK would fail with errors like “no known snapshots” or “missing chunk number 0 for toast value”.
Some extensions may attempt to execute SQL code outside of any Portal. They are responsible for ensuring that an outer snapshot exists before doing so. Previously, not providing a snapshot might work or it might not; now it will consistently fail with “cannot execute SQL without an outer snapshot or portal”.
ImprovementsAvoid misbehavior when persisting the output of a cursor that's reading a non-stable query
Changes
Avoid misbehavior when persisting the output of a cursor that's reading a non-stable query (Tom Lane) § §
Previously, we'd always rewind and re-read the whole query result, possibly getting results different from the earlier execution, causing great confusion later. For a NO SCROLL cursor, we can fix this by only storing the not-yet-read portion of the query output, which is sufficient since a NO SCROLL cursor can't be backed up. Cursors with the SCROLL option remain at hazard, but that was already documented to be an unsafe option to use with a non-stable query. Make those documentation warnings stronger.
Also force NO SCROLL mode for the implicit cursor used by a PL/pgSQL FOR-over-query loop, to avoid this type of problem when persisting such a cursor during an intra-procedure commit.
ImprovementsReject SELECT ... GROUP BY GROUPING SETS (()) FOR UPDATE
Changes
Reject SELECT ... GROUP BY GROUPING SETS (()) FOR UPDATE (Tom Lane) §
This should be disallowed, just as FOR UPDATE with a plain GROUP BY is disallowed, but the test for that failed to handle empty grouping sets correctly. The end result would be a null-pointer dereference in the executor.
Related records (4)
- Same changePostgreSQL 12.8 · Reject SELECT ... GROUP BY GROUPING SETS (()) FOR UPDATE
- Same changePostgreSQL 11.13 · Reject SELECT ... GROUP BY GROUPING SETS (()) FOR UPDATE
- Same changePostgreSQL 10.18 · Reject SELECT ... GROUP BY GROUPING SETS (()) FOR UPDATE
- Same changePostgreSQL 9.6.23 · Reject SELECT ... GROUP BY GROUPING SETS (()) FOR UPDATE
ImprovementsReject cases where a query in WITH rewrites to just NOTIFY
Changes
Reject cases where a query in WITH rewrites to just NOTIFY (Tom Lane) §
Such cases previously crashed.
Related records (4)
- Same changePostgreSQL 12.8 · Reject cases where a query in WITH rewrites to just NOTIFY
- Same changePostgreSQL 11.13 · Reject cases where a query in WITH rewrites to just NOTIFY
- Same changePostgreSQL 10.18 · Reject cases where a query in WITH rewrites to just NOTIFY
- Same changePostgreSQL 9.6.23 · Reject cases where a query in WITH rewrites to just NOTIFY
ImprovementsIn numeric multiplication, round the result rather than failing if it would have more than 16383 digits after the decimal point
Changes
In numeric multiplication, round the result rather than failing if it would have more than 16383 digits after the decimal point (Dean Rasheed) §
Related records (4)
- Same changePostgreSQL 12.8 · In numeric multiplication, round the result rather than failing if it would have more than 16383 digits after the decimal point
- Same changePostgreSQL 11.13 · In numeric multiplication, round the result rather than failing if it would have more than 16383 digits after the decimal point
- Same changePostgreSQL 10.18 · In numeric multiplication, round the result rather than failing if it would have more than 16383 digits after the decimal point
- Same changePostgreSQL 9.6.23 · In numeric multiplication, round the result rather than failing if it would have more than 16383 digits after the decimal point
Bug fixesFix corner-case errors and loss of precision when raising numeric values to very large powers
Changes
Fix corner-case errors and loss of precision when raising numeric values to very large powers (Dean Rasheed) § §
Related records (4)
- Same changePostgreSQL 12.8 · Fix corner-case errors and loss of precision when raising numeric values to very large powers
- Same changePostgreSQL 11.13 · Fix corner-case errors and loss of precision when raising numeric values to very large powers
- Same changePostgreSQL 10.18 · Fix corner-case errors and loss of precision when raising numeric values to very large powers
- Same changePostgreSQL 9.6.23 · Fix corner-case errors and loss of precision when raising numeric values to very large powers
Bug fixesFix division-by-zero failure in to_char() with EEEE format and a numeric input value less than 10^(-1001)
Changes
Fix division-by-zero failure in to_char() with EEEE format and a numeric input value less than 10^(-1001) (Dean Rasheed) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix division-by-zero failure in to_char() with EEEE format and a numeric input value less than 10^(-1001)
- Same changePostgreSQL 11.13 · Fix division-by-zero failure in to_char() with EEEE format and a numeric input value less than 10^(-1001)
- Same changePostgreSQL 10.18 · Fix division-by-zero failure in to_char() with EEEE format and a numeric input value less than 10^(-1001)
- Same changePostgreSQL 9.6.23 · Fix division-by-zero failure in to_char() with EEEE format and a numeric input value less than 10^(-1001)
Bug fixesFix pg_size_pretty(bigint) to round negative values consistently with the way it rounds positive ones (and consistently with the numeric version)
Changes
Fix pg_size_pretty(bigint) to round negative values consistently with the way it rounds positive ones (and consistently with the numeric version) (Dean Rasheed, David Rowley) § §
Related records (4)
- Same changePostgreSQL 12.8 · Fix pg_size_pretty(bigint) to round negative values consistently with the way it rounds positive ones (and consistently with the numeric version)
- Same changePostgreSQL 11.13 · Fix pg_size_pretty(bigint) to round negative values consistently with the way it rounds positive ones (and consistently with the numeric version)
- Same changePostgreSQL 10.18 · Fix pg_size_pretty(bigint) to round negative values consistently with the way it rounds positive ones (and consistently with the numeric version)
- Same changePostgreSQL 9.6.23 · Fix pg_size_pretty(bigint) to round negative values consistently with the way it rounds positive ones (and consistently with the numeric version)
ImprovementsMake pg_filenode_relation(0, 0) return NULL rather than failing
Changes
Make pg_filenode_relation(0, 0) return NULL rather than failing (Justin Pryzby) §
Related records (4)
- Same changePostgreSQL 12.8 · Make pg_filenode_relation(0, 0) return NULL rather than failing
- Same changePostgreSQL 11.13 · Make pg_filenode_relation(0, 0) return NULL rather than failing
- Same changePostgreSQL 10.18 · Make pg_filenode_relation(0, 0) return NULL rather than failing
- Same changePostgreSQL 9.6.23 · Make pg_filenode_relation(0, 0) return NULL rather than failing
ImprovementsMake ALTER EXTENSION lock the extension when adding or removing a member object
Changes
Make ALTER EXTENSION lock the extension when adding or removing a member object (Tom Lane) §
The previous coding allowed ALTER EXTENSION ADD/DROP to occur concurrently with DROP EXTENSION, leading to a crash or corrupt catalog entries.
Related records (4)
- Same changePostgreSQL 12.8 · Make ALTER EXTENSION lock the extension when adding or removing a member object
- Same changePostgreSQL 11.13 · Make ALTER EXTENSION lock the extension when adding or removing a member object
- Same changePostgreSQL 10.18 · Make ALTER EXTENSION lock the extension when adding or removing a member object
- Same changePostgreSQL 9.6.23 · Make ALTER EXTENSION lock the extension when adding or removing a member object
Bug fixesFix ALTER SUBSCRIPTION to reject an empty slot name
Changes
Fix ALTER SUBSCRIPTION to reject an empty slot name (Japin Li) §
ImprovementsWhen cloning a partitioned table's triggers to a new partition, ensure that their enabled status is copied
Changes
When cloning a partitioned table's triggers to a new partition, ensure that their enabled status is copied (Álvaro Herrera) §
ImprovementsAvoid alias conflicts in queries generated for REFRESH MATERIALIZED VIEW CONCURRENTLY
Changes
Avoid alias conflicts in queries generated for REFRESH MATERIALIZED VIEW CONCURRENTLY (Tom Lane, Bharath Rupireddy) § §
This command failed on materialized views containing columns with certain names, notably mv and newdata.
Related records (4)
- Same changePostgreSQL 12.8 · Avoid alias conflicts in queries generated for REFRESH MATERIALIZED VIEW CONCURRENTLY
- Same changePostgreSQL 11.13 · Avoid alias conflicts in queries generated for REFRESH MATERIALIZED VIEW CONCURRENTLY
- Same changePostgreSQL 10.18 · Avoid alias conflicts in queries generated for REFRESH MATERIALIZED VIEW CONCURRENTLY
- Same changePostgreSQL 9.6.23 · Avoid alias conflicts in queries generated for REFRESH MATERIALIZED VIEW CONCURRENTLY
Bug fixesFix PREPARE TRANSACTION to check correctly for conflicting session-lifespan and transaction-lifespan locks
Changes
Fix PREPARE TRANSACTION to check correctly for conflicting session-lifespan and transaction-lifespan locks (Tom Lane) §
A transaction cannot be prepared if it has both session-lifespan and transaction-lifespan locks on the same advisory-lock ID value. This restriction was not fully checked, which could lead to a PANIC during PREPARE TRANSACTION.
Related records (4)
- Same changePostgreSQL 12.8 · Fix PREPARE TRANSACTION to check correctly for conflicting session-lifespan and transaction-lifespan locks
- Same changePostgreSQL 11.13 · Fix PREPARE TRANSACTION to check correctly for conflicting session-lifespan and transaction-lifespan locks
- Same changePostgreSQL 10.18 · Fix PREPARE TRANSACTION to check correctly for conflicting session-lifespan and transaction-lifespan locks
- Same changePostgreSQL 9.6.23 · Fix PREPARE TRANSACTION to check correctly for conflicting session-lifespan and transaction-lifespan locks
Bug fixesFix misbehavior of DROP OWNED BY when the target role is listed more than once in an RLS policy
Changes
Fix misbehavior of DROP OWNED BY when the target role is listed more than once in an RLS policy (Tom Lane) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix misbehavior of DROP OWNED BY when the target role is listed more than once in an RLS policy
- Same changePostgreSQL 11.13 · Fix misbehavior of DROP OWNED BY when the target role is listed more than once in an RLS policy
- Same changePostgreSQL 10.18 · Fix misbehavior of DROP OWNED BY when the target role is listed more than once in an RLS policy
- Same changePostgreSQL 9.6.23 · Fix misbehavior of DROP OWNED BY when the target role is listed more than once in an RLS policy
ImprovementsSkip unnecessary error tests when removing a role from an RLS policy during DROP OWNED BY
Changes
Skip unnecessary error tests when removing a role from an RLS policy during DROP OWNED BY (Tom Lane) §
Notably, this fixes some cases where it was necessary to be a superuser to use DROP OWNED BY.
Related records (4)
- Same changePostgreSQL 12.8 · Skip unnecessary error tests when removing a role from an RLS policy during DROP OWNED BY
- Same changePostgreSQL 11.13 · Skip unnecessary error tests when removing a role from an RLS policy during DROP OWNED BY
- Same changePostgreSQL 10.18 · Skip unnecessary error tests when removing a role from an RLS policy during DROP OWNED BY
- Same changePostgreSQL 9.6.23 · Skip unnecessary error tests when removing a role from an RLS policy during DROP OWNED BY
ImprovementsRe-allow old-style Windows locale names in CREATE COLLATION commands
Changes
Re-allow old-style Windows locale names in CREATE COLLATION commands (Thomas Munro) §
Previously we were failing because the operating system can't provide version information for such locales. At some point we may decide to require version information, but no such policy exists yet, so re-allow the case for now.
ImprovementsDisallow whole-row variables in GENERATED expressions
Changes
Disallow whole-row variables in GENERATED expressions (Tom Lane) §
Use of a whole-row variable clearly violates the rule that a generated column cannot depend on itself, so such cases have no well-defined behavior. The actual behavior frequently included a crash.
Related records (1)
Bug fixesFix usage of tableoid in GENERATED expressions
Changes
Fix usage of tableoid in GENERATED expressions (Tom Lane) §
Some code paths failed to provide a valid value for this system column while evaluating a GENERATED expression.
Related records (1)
ImprovementsDon't store a “fast default” when adding a column to a foreign table
Changes
Don't store a “fast default” when adding a column to a foreign table (Andrew Dunstan) §
The fast default is useless since no local heap storage exists for such a table, but it confused subsequent operations. In addition to suppressing creation of such catalog entries in ALTER TABLE commands, adjust the downstream code to cope when one is incorrectly present.
ImprovementsAllow index state flags to be updated transactionally
Changes
Allow index state flags to be updated transactionally (Michael Paquier, Andrey Lepikhov) § §
This avoids failures when dealing with index predicates that aren't really immutable. While that's not considered a supported case, the original reason for using a non-transactional update here is long gone, so we may as well change it.
Related records (4)
- Same changePostgreSQL 12.8 · Allow index state flags to be updated transactionally
- Same changePostgreSQL 11.13 · Allow index state flags to be updated transactionally
- Same changePostgreSQL 10.18 · Allow index state flags to be updated transactionally
- Same changePostgreSQL 9.6.23 · Allow index state flags to be updated transactionally
Bug fixesAvoid corrupting the plan cache entry when CREATE DOMAIN or ALTER DOMAIN appears in a cached plan
Changes
Avoid corrupting the plan cache entry when CREATE DOMAIN or ALTER DOMAIN appears in a cached plan (Tom Lane) §
Related records (4)
- Same changePostgreSQL 12.8 · Avoid corrupting the plan cache entry when CREATE DOMAIN or ALTER DOMAIN appears in a cached plan
- Same changePostgreSQL 11.13 · Avoid corrupting the plan cache entry when CREATE DOMAIN or ALTER DOMAIN appears in a cached plan
- Same changePostgreSQL 10.18 · Avoid corrupting the plan cache entry when CREATE DOMAIN or ALTER DOMAIN appears in a cached plan
- Same changePostgreSQL 9.6.23 · Avoid corrupting the plan cache entry when CREATE DOMAIN or ALTER DOMAIN appears in a cached plan
ImprovementsMake walsenders show their latest replication commands in pg_stat_activity
Changes
Make walsenders show their latest replication commands in pg_stat_activity (Tom Lane) §
Previously, a walsender would show its latest SQL command, which was confusing if it's now doing some replication operation instead. Now we show replication-protocol commands on the same footing as SQL commands.
Related records (3)
- Same changePostgreSQL 12.8 · Make walsenders show their latest replication commands in pg_stat_activity
- Same changePostgreSQL 11.13 · Make walsenders show their latest replication commands in pg_stat_activity
- Same changePostgreSQL 10.18 · Make walsenders show their latest replication commands in pg_stat_activity
ImprovementsMake pg_settings.pending_restart show as true when the pertinent entry in postgresql.conf has been removed
Changes
Make pg_settings.pending_restart show as true when the pertinent entry in postgresql.conf has been removed (Álvaro Herrera) §
pending_restart correctly showed the case where an entry that cannot be changed without a postmaster restart has been modified, but not where the entry had been removed altogether.
Related records (4)
- Same changePostgreSQL 12.8 · Make pg_settings.pending_restart show as true when the pertinent entry in postgresql.conf has been removed
- Same changePostgreSQL 11.13 · Make pg_settings.pending_restart show as true when the pertinent entry in postgresql.conf has been removed
- Same changePostgreSQL 10.18 · Make pg_settings.pending_restart show as true when the pertinent entry in postgresql.conf has been removed
- Same changePostgreSQL 9.6.23 · Make pg_settings.pending_restart show as true when the pertinent entry in postgresql.conf has been removed
ImprovementsOn 64-bit Windows, allow the effective value of work_mem times hash_mem_multiplier to exceed 2GB
Changes
On 64-bit Windows, allow the effective value of work_mem times hash_mem_multiplier to exceed 2GB (Tom Lane) §
This allows hash_mem_multiplier to be used for its intended purpose of preventing large hash aggregations from spilling to disk, even when “large” means multiple gigabytes.
Bug fixesFix mis-planning of queries involving regular tables that are inheritance children of foreign tables
Changes
Fix mis-planning of queries involving regular tables that are inheritance children of foreign tables (Amit Langote) §
SELECT FOR UPDATE and related commands would fail with assertion failures or “could not find junk column” errors in such cases.
Related records (1)
Bug fixesFix pullup of constant function-in-FROM results when the FROM item is marked LATERAL
Changes
Fix pullup of constant function-in-FROM results when the FROM item is marked LATERAL (Tom Lane) §
Bug fixesFix corner-case failure of a new standby to follow a new primary
Changes
Fix corner-case failure of a new standby to follow a new primary (Dilip Kumar, Robert Haas) § § § § § §
Under a narrow combination of conditions, the standby could wind up trying to follow the wrong WAL timeline.
Related records (4)
- Same changePostgreSQL 12.8 · Fix corner-case failure of a new standby to follow a new primary
- Same changePostgreSQL 11.13 · Fix corner-case failure of a new standby to follow a new primary
- Same changePostgreSQL 10.18 · Fix corner-case failure of a new standby to follow a new primary
- Same changePostgreSQL 9.6.23 · Fix corner-case failure of a new standby to follow a new primary
ImprovementsUpdate minimum recovery point when WAL replay of a transaction abort record causes file truncation
Changes
Update minimum recovery point when WAL replay of a transaction abort record causes file truncation (Fujii Masao) §
File truncation is irreversible, so it's no longer safe to stop recovery at a point earlier than that record. The corresponding case for transaction commit was fixed years ago, but this one was overlooked.
Related records (4)
- Same changePostgreSQL 12.8 · Update minimum recovery point when WAL replay of a transaction abort record causes file truncation
- Same changePostgreSQL 11.13 · Update minimum recovery point when WAL replay of a transaction abort record causes file truncation
- Same changePostgreSQL 10.18 · Update minimum recovery point when WAL replay of a transaction abort record causes file truncation
- Same changePostgreSQL 9.6.23 · Update minimum recovery point when WAL replay of a transaction abort record causes file truncation
ImprovementsAdvance oldest-required-WAL-segment horizon properly after a replication slot is invalidated
ImprovementsIn walreceivers, avoid attempting catalog lookups after an error
Changes
In walreceivers, avoid attempting catalog lookups after an error (Masahiko Sawada, Bharath Rupireddy) §
Related records (3)
ImprovementsEnsure that a standby server's startup process will respond to a shutdown signal promptly while waiting for WAL to arrive
Changes
Ensure that a standby server's startup process will respond to a shutdown signal promptly while waiting for WAL to arrive (Fujii Masao, Soumyadeep Chakraborty) §
Related records (4)
- Same changePostgreSQL 12.8 · Ensure that a standby server's startup process will respond to a shutdown signal promptly while waiting for WAL to arrive
- Same changePostgreSQL 11.13 · Ensure that a standby server's startup process will respond to a shutdown signal promptly while waiting for WAL to arrive
- Same changePostgreSQL 10.18 · Ensure that a standby server's startup process will respond to a shutdown signal promptly while waiting for WAL to arrive
- Same changePostgreSQL 9.6.23 · Ensure that a standby server's startup process will respond to a shutdown signal promptly while waiting for WAL to arrive
ImprovementsCorrectly clear shared state after failing to become a member of a transaction commit group
Changes
Correctly clear shared state after failing to become a member of a transaction commit group (Amit Kapila) §
Given the right timing, this could cause an assertion failure when some later session re-uses the same PGPROC object.
ImprovementsAdd locking to avoid reading incorrect relmapper data in the face of a concurrent write from another process
Changes
Add locking to avoid reading incorrect relmapper data in the face of a concurrent write from another process (Heikki Linnakangas) § §
Related records (4)
- Same changePostgreSQL 12.8 · Add locking to avoid reading incorrect relmapper data in the face of a concurrent write from another process
- Same changePostgreSQL 11.13 · Add locking to avoid reading incorrect relmapper data in the face of a concurrent write from another process
- Same changePostgreSQL 10.18 · Add locking to avoid reading incorrect relmapper data in the face of a concurrent write from another process
- Same changePostgreSQL 9.6.23 · Add locking to avoid reading incorrect relmapper data in the face of a concurrent write from another process
ImprovementsImprove progress reporting for the sort phase of a parallel btree index build
Changes
Improve progress reporting for the sort phase of a parallel btree index build (Matthias van de Meent) §
Related records (1)
ImprovementsImprove checks for violations of replication protocol
Changes
Improve checks for violations of replication protocol (Tom Lane) §
Logical replication workers frequently used Asserts to check for cases that could be triggered by invalid or out-of-order replication commands. This seems unwise, so promote these tests to regular error checks.
Bug fixesFix assorted crash cases in logical replication of partitioned-table updates
Bug fixesFix potential crash when firing AFTER triggers of partitioned tables in logical replication workers
Changes
Fix potential crash when firing AFTER triggers of partitioned tables in logical replication workers (Tom Lane) §
Bug fixesFix deadlock when multiple logical replication workers try to truncate the same table
Changes
Fix deadlock when multiple logical replication workers try to truncate the same table (Peter Smith, Haiying Tang) §
Bug fixesFix error cases and memory leaks in logical decoding of speculative insertions
Changes
Related records (4)
- Same changePostgreSQL 12.8 · Fix error cases and memory leaks in logical decoding of speculative insertions
- Same changePostgreSQL 11.13 · Fix error cases and memory leaks in logical decoding of speculative insertions
- Same changePostgreSQL 10.18 · Fix error cases and memory leaks in logical decoding of speculative insertions
- Same changePostgreSQL 9.6.23 · Fix error cases and memory leaks in logical decoding of speculative insertions
Bug fixesFix memory leak in logical replication output
ImprovementsAvoid leaving an invalid record-type hash table entry behind after an error
Changes
Avoid leaving an invalid record-type hash table entry behind after an error (Sait Talha Nisanci) §
This could lead to later crashes or memory leakage.
Bug fixesFix plan cache reference leaks in some error cases in CREATE TABLE ... AS EXECUTE
Changes
Fix plan cache reference leaks in some error cases in CREATE TABLE ... AS EXECUTE (Tom Lane) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix plan cache reference leaks in some error cases in CREATE TABLE ... AS EXECUTE
- Same changePostgreSQL 11.13 · Fix plan cache reference leaks in some error cases in CREATE TABLE ... AS EXECUTE
- Same changePostgreSQL 10.18 · Fix plan cache reference leaks in some error cases in CREATE TABLE ... AS EXECUTE
- Same changePostgreSQL 9.6.23 · Fix plan cache reference leaks in some error cases in CREATE TABLE ... AS EXECUTE
Bug fixesFix race condition in code for sharing tuple descriptors across parallel workers
Changes
Fix race condition in code for sharing tuple descriptors across parallel workers (Thomas Munro) §
Given the right timing, a crash could result.
Bug fixesFix race condition when invalidating an obsolete replication slot concurrently with an attempt to drop or update it
Changes
Fix race condition when invalidating an obsolete replication slot concurrently with an attempt to drop or update it (Andres Freund, Álvaro Herrera) §
Bug fixesFix possible race condition when releasing BackgroundWorkerSlots
Changes
Fix possible race condition when releasing BackgroundWorkerSlots (Tom Lane) §
It's likely that this doesn't fix any observable bug on Intel hardware, but machines with weaker memory ordering rules could have problems.
Related records (4)
- Same changePostgreSQL 12.8 · Fix possible race condition when releasing BackgroundWorkerSlots
- Same changePostgreSQL 11.13 · Fix possible race condition when releasing BackgroundWorkerSlots
- Same changePostgreSQL 10.18 · Fix possible race condition when releasing BackgroundWorkerSlots
- Same changePostgreSQL 9.6.23 · Fix possible race condition when releasing BackgroundWorkerSlots
Bug fixesFix latent crash in sorting code
ImprovementsHarden B-tree posting list split code against corrupt data
Changes
Harden B-tree posting list split code against corrupt data (Peter Geoghegan) §
Throw an error, rather than crashing, for an attempt to insert an item with a TID identical to an existing entry. While that shouldn't ever happen, it has been reported to happen when the index is inconsistent with its table.
ImprovementsPrevent infinite loops in SP-GiST index insertion
Changes
Prevent infinite loops in SP-GiST index insertion (Tom Lane) §
In the event that INCLUDE columns take up enough space to prevent a leaf index tuple from ever fitting on a page, the text_ops operator class would get into an infinite loop vainly trying to make the tuple fit. While pre-v11 versions don't have INCLUDE columns, back-patch this anti-looping fix to them anyway, as it seems like a good defense against bugs in operator classes.
Related records (4)
- Same changePostgreSQL 12.8 · Prevent infinite loops in SP-GiST index insertion
- Same changePostgreSQL 11.13 · Prevent infinite loops in SP-GiST index insertion
- Same changePostgreSQL 10.18 · Prevent infinite loops in SP-GiST index insertion
- Same changePostgreSQL 9.6.23 · Prevent infinite loops in SP-GiST index insertion
ImprovementsEnsure that SP-GiST index insertion can be terminated by a query cancel request
Changes
Ensure that SP-GiST index insertion can be terminated by a query cancel request (Tom Lane, Álvaro Herrera) § §
Related records (4)
- Same changePostgreSQL 12.8 · Ensure that SP-GiST index insertion can be terminated by a query cancel request
- Same changePostgreSQL 11.13 · Ensure that SP-GiST index insertion can be terminated by a query cancel request
- Same changePostgreSQL 10.18 · Ensure that SP-GiST index insertion can be terminated by a query cancel request
- Same changePostgreSQL 9.6.23 · Ensure that SP-GiST index insertion can be terminated by a query cancel request
Bug fixesFix uninitialized-variable bug that could cause PL/pgSQL to act as though an INTO clause specified STRICT, even though it didn't
Changes
Fix uninitialized-variable bug that could cause PL/pgSQL to act as though an INTO clause specified STRICT, even though it didn't (Tom Lane) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix uninitialized-variable bug that could cause PL/pgSQL to act as though an INTO clause specified STRICT, even though it didn't
- Same changePostgreSQL 11.13 · Fix uninitialized-variable bug that could cause PL/pgSQL to act as though an INTO clause specified STRICT, even though it didn't
- Same changePostgreSQL 10.18 · Fix uninitialized-variable bug that could cause PL/pgSQL to act as though an INTO clause specified STRICT, even though it didn't
- Same changePostgreSQL 9.6.23 · Fix uninitialized-variable bug that could cause PL/pgSQL to act as though an INTO clause specified STRICT, even though it didn't
ImprovementsDon't abort the process for an out-of-memory failure in libpq's printing functions
Changes
Don't abort the process for an out-of-memory failure in libpq's printing functions (Tom Lane) §
Related records (4)
- Same changePostgreSQL 12.8 · Don't abort the process for an out-of-memory failure in libpq's printing functions
- Same changePostgreSQL 11.13 · Don't abort the process for an out-of-memory failure in libpq's printing functions
- Same changePostgreSQL 10.18 · Don't abort the process for an out-of-memory failure in libpq's printing functions
- Same changePostgreSQL 9.6.23 · Don't abort the process for an out-of-memory failure in libpq's printing functions
ImprovementsIn ecpg, allow the numeric value INT_MIN (usually -2147483648) to be converted to integer
Changes
In ecpg, allow the numeric value INT_MIN (usually -2147483648) to be converted to integer (John Naylor) §
Related records (4)
- Same changePostgreSQL 12.8 · In ecpg, allow the numeric value INT_MIN (usually -2147483648) to be converted to integer
- Same changePostgreSQL 11.13 · In ecpg, allow the numeric value INT_MIN (usually -2147483648) to be converted to integer
- Same changePostgreSQL 10.18 · In ecpg, allow the numeric value INT_MIN (usually -2147483648) to be converted to integer
- Same changePostgreSQL 9.6.23 · In ecpg, allow the numeric value INT_MIN (usually -2147483648) to be converted to integer
SecurityIn psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data
Changes
In psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data (Tom Lane) §
An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on what happens to be in the following memory. This is reminiscent of CVE-2006-2313, although these particular cases do not appear to have interesting security consequences.
Related records (4)
- Same changePostgreSQL 12.8 · In psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data
- Same changePostgreSQL 11.13 · In psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data
- Same changePostgreSQL 10.18 · In psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data
- Same changePostgreSQL 9.6.23 · In psql and other client programs, avoid overrunning the ends of strings when dealing with invalidly-encoded data
Bug fixesFix pg_dump to correctly handle triggers on partitioned tables whose enabled status is different from their parent triggers' status
Changes
Fix pg_dump to correctly handle triggers on partitioned tables whose enabled status is different from their parent triggers' status (Justin Pryzby, Álvaro Herrera) §
Related records (2)
- Same changePostgreSQL 12.8 · Fix pg_dump to correctly handle triggers on partitioned tables whose enabled status is different from their parent triggers' status
- Same changePostgreSQL 11.13 · Fix pg_dump to correctly handle triggers on partitioned tables whose enabled status is different from their parent triggers' status
ImprovementsAvoid “invalid creation date in header” warnings observed when running pg_restore on an archive file created in a different time zone
Changes
Avoid “invalid creation date in header” warnings observed when running pg_restore on an archive file created in a different time zone (Tom Lane) §
Related records (4)
- Same changePostgreSQL 12.8 · Avoid “invalid creation date in header” warnings observed when running pg_restore on an archive file created in a different time zone
- Same changePostgreSQL 11.13 · Avoid “invalid creation date in header” warnings observed when running pg_restore on an archive file created in a different time zone
- Same changePostgreSQL 10.18 · Avoid “invalid creation date in header” warnings observed when running pg_restore on an archive file created in a different time zone
- Same changePostgreSQL 9.6.23 · Avoid "invalid creation date in header" warnings observed when running pg_restore on an archive file created in a different time zone
ImprovementsMake pg_upgrade carry forward the old installation's oldestXID value
Changes
Make pg_upgrade carry forward the old installation's oldestXID value (Bertrand Drouvot) §
Previously, the new installation's oldestXID was set to a value old enough to (usually) force immediate anti-wraparound autovacuuming. That's not desirable from a performance standpoint; what's worse, installations using large values of autovacuum_freeze_max_age could suffer unwanted forced shutdowns soon after an upgrade.
Related records (4)
- Same changePostgreSQL 12.8 · Make pg_upgrade carry forward the old installation's oldestXID value
- Same changePostgreSQL 11.13 · Make pg_upgrade carry forward the old installation's oldestXID value
- Same changePostgreSQL 10.18 · Make pg_upgrade carry forward the old installation's oldestXID value
- Same changePostgreSQL 9.6.23 · Make pg_upgrade carry forward the old installation's oldestXID value
ImprovementsExtend pg_upgrade to detect and warn about extensions that should be upgraded
Changes
Extend pg_upgrade to detect and warn about extensions that should be upgraded (Bruce Momjian) § §
A script file is now produced containing the ALTER EXTENSION UPDATE commands needed to bring extensions up to the versions that are considered default in the new installation.
Related records (4)
- Same changePostgreSQL 12.8 · Extend pg_upgrade to detect and warn about extensions that should be upgraded
- Same changePostgreSQL 11.13 · Extend pg_upgrade to detect and warn about extensions that should be upgraded
- Same changePostgreSQL 10.18 · Extend pg_upgrade to detect and warn about extensions that should be upgraded
- Same changePostgreSQL 9.6.23 · Extend pg_upgrade to detect and warn about extensions that should be upgraded
ImprovementsAvoid problems when switching pg_receivewal between compressed and non-compressed WAL storage
Changes
Avoid problems when switching pg_receivewal between compressed and non-compressed WAL storage (Michael Paquier) § §
Related records (3)
- Same changePostgreSQL 12.8 · Avoid problems when switching pg_receivewal between compressed and non-compressed WAL storage
- Same changePostgreSQL 11.13 · Avoid problems when switching pg_receivewal between compressed and non-compressed WAL storage
- Same changePostgreSQL 10.18 · Avoid problems when switching pg_receivewal between compressed and non-compressed WAL storage
Bug fixesFix contrib/postgres_fdw to work usefully with generated columns
Changes
Fix contrib/postgres_fdw to work usefully with generated columns (Etsuro Fujita) §
postgres_fdw will now behave reasonably with generated columns, so long as a generated column in a foreign table represents a generated column in the remote table. IMPORT FOREIGN SCHEMA will now import generated columns that way by default.
Related records (1)
ImprovementsIn contrib/postgres_fdw, avoid attempting catalog lookups after an error
Changes
In contrib/postgres_fdw, avoid attempting catalog lookups after an error (Tom Lane) §
While this usually worked, it's not very safe since the error might have been one that made catalog access nonfunctional. A side effect of the fix is that messages about data conversion errors will now mention the query's table and column aliases (if used) rather than the true underlying name of a foreign table or column.
Related records (4)
- Same changePostgreSQL 12.8 · In contrib/postgres_fdw, avoid attempting catalog lookups after an error
- Same changePostgreSQL 11.13 · In contrib/postgres_fdw, avoid attempting catalog lookups after an error
- Same changePostgreSQL 10.18 · In contrib/postgres_fdw, avoid attempting catalog lookups after an error
- Same changePostgreSQL 9.6.23 · In contrib/postgres_fdw, avoid attempting catalog lookups after an error
ImprovementsImprove the isolation-test infrastructure
Changes
Improve the isolation-test infrastructure (Tom Lane, Michael Paquier) § § § § § § §
Allow isolation test steps to be annotated to show the expected completion order. This allows getting stable results from otherwise-racy test cases, without the long delays that we previously used (not entirely successfully) to fend off race conditions. Allow non-quoted identifiers as isolation test session/step names (formerly, all such names had to be double-quoted). Detect and warn about unused steps in isolation tests. Improve display of query results in isolation tests. Remove isolationtester's “dry-run” mode. Remove memory leaks in isolationtester itself.
Related records (4)
PerformanceReduce overhead of cache-clobber testing
Changes
Related records (4)
Bug fixesFix PL/Python's regression tests to pass with Python 3.10
Changes
Fix PL/Python's regression tests to pass with Python 3.10 (Honza Horak) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix PL/Python's regression tests to pass with Python 3.10
- Same changePostgreSQL 11.13 · Fix PL/Python's regression tests to pass with Python 3.10
- Same changePostgreSQL 10.18 · Fix PL/Python's regression tests to pass with Python 3.10
- Same changePostgreSQL 9.6.23 · Fix PL/Python's regression tests to pass with Python 3.10
ImprovementsMake printf("%s", NULL) print (null) instead of crashing
Changes
Make printf("%s", NULL) print (null) instead of crashing (Tom Lane) §
This should improve server robustness in corner cases, and it syncs our printf implementation with common libraries.
Related records (4)
- Same changePostgreSQL 12.8 · Make printf("%s", NULL) print (null) instead of crashing
- Same changePostgreSQL 11.13 · Make printf("%s", NULL) print (null) instead of crashing
- Same changePostgreSQL 10.18 · Make printf("%s", NULL) print (null) instead of crashing
- Same changePostgreSQL 9.6.23 · Make printf("%s", NULL) print (null) instead of crashing
Bug fixesFix incorrect log message when point-in-time recovery stops at a ROLLBACK PREPARED record
Changes
Fix incorrect log message when point-in-time recovery stops at a ROLLBACK PREPARED record (Simon Riggs) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix incorrect log message when point-in-time recovery stops at a ROLLBACK PREPARED record
- Same changePostgreSQL 11.13 · Fix incorrect log message when point-in-time recovery stops at a ROLLBACK PREPARED record
- Same changePostgreSQL 10.18 · Fix incorrect log message when point-in-time recovery stops at a ROLLBACK PREPARED record
- Same changePostgreSQL 9.6.23 · Fix incorrect log message when point-in-time recovery stops at a ROLLBACK PREPARED record
ImprovementsImprove ALTER TABLE's messages for wrong-relation-kind errors
Changes
Improve ALTER TABLE's messages for wrong-relation-kind errors (Kyotaro Horiguchi) §
Related records (2)
ImprovementsClarify error messages referring to “non-negative” values
Changes
Clarify error messages referring to “non-negative” values (Bharath Rupireddy) §
Related records (4)
- Same changePostgreSQL 12.8 · Clarify error messages referring to “non-negative” values
- Same changePostgreSQL 11.13 · Clarify error messages referring to “non-negative” values
- Same changePostgreSQL 10.18 · Clarify error messages referring to “non-negative” values
- Same changePostgreSQL 9.6.23 · Clarify error messages referring to "non-negative" values
Bug fixesFix configure to work with OpenLDAP 2.5, which no longer has a separate libldap_r library
Changes
Fix configure to work with OpenLDAP 2.5, which no longer has a separate libldap_r library (Adrian Ho, Tom Lane) § § § §
If there is no libldap_r library, we now silently assume that libldap is thread-safe.
Related records (4)
- Same changePostgreSQL 12.8 · Fix configure to work with OpenLDAP 2.5, which no longer has a separate libldap_r library
- Same changePostgreSQL 11.13 · Fix configure to work with OpenLDAP 2.5, which no longer has a separate libldap_r library
- Same changePostgreSQL 10.18 · Fix configure to work with OpenLDAP 2.5, which no longer has a separate libldap_r library
- Same changePostgreSQL 9.6.23 · Fix configure to work with OpenLDAP 2.5, which no longer has a separate libldap_r library
ImprovementsAdd new make targets world-bin and install-world-bin
Changes
Add new make targets world-bin and install-world-bin (Andrew Dunstan) § §
These are the same as world and install-world respectively, except that they do not build or install the documentation.
Related records (4)
- Same changePostgreSQL 12.8 · Add new make targets world-bin and install-world-bin
- Same changePostgreSQL 11.13 · Add new make targets world-bin and install-world-bin
- Same changePostgreSQL 10.18 · Add new make targets world-bin and install-world-bin
- Same changePostgreSQL 9.6.23 · Add new make targets world-bin and install-world-bin
Bug fixesFix make rule for TAP tests (prove_installcheck) to work in PGXS usage
Changes
Fix make rule for TAP tests (prove_installcheck) to work in PGXS usage (Andrew Dunstan) §
Related records (4)
- Same changePostgreSQL 12.8 · Fix make rule for TAP tests (prove_installcheck) to work in PGXS usage
- Same changePostgreSQL 11.13 · Fix make rule for TAP tests (prove_installcheck) to work in PGXS usage
- Same changePostgreSQL 10.18 · Fix make rule for TAP tests (prove_installcheck) to work in PGXS usage
- Same changePostgreSQL 9.6.23 · Fix make rule for TAP tests (prove_installcheck) to work in PGXS usage
ImprovementsAdjust JIT code to prepare for forthcoming LLVM API change
Changes
Adjust JIT code to prepare for forthcoming LLVM API change (Thomas Munro, Andres Freund) §
LLVM 13 has made an incompatible API change that will cause crashing of our previous JIT compiler.
Related records (2)
ImprovementsAvoid assuming that strings returned by GSSAPI libraries are null-terminated
Changes
Avoid assuming that strings returned by GSSAPI libraries are null-terminated (Tom Lane) §
The GSSAPI spec provides for a string pointer and length. It seems that in practice the next byte after the string is usually zero, so that our previous coding didn't actually fail; but we do have a report of AddressSanitizer complaints.
Related records (4)
- Same changePostgreSQL 12.8 · Avoid assuming that strings returned by GSSAPI libraries are null-terminated
- Same changePostgreSQL 11.13 · Avoid assuming that strings returned by GSSAPI libraries are null-terminated
- Same changePostgreSQL 10.18 · Avoid assuming that strings returned by GSSAPI libraries are null-terminated
- Same changePostgreSQL 9.6.23 · Avoid assuming that strings returned by GSSAPI libraries are null-terminated
ImprovementsEnable building with GSSAPI on MSVC
ImprovementsIn MSVC builds, include --with-pgport in the set of configure options reported by pg_config, if it had been specified
Changes
In MSVC builds, include --with-pgport in the set of configure options reported by pg_config, if it had been specified (Andrew Dunstan) § §
Related records (4)
- Same changePostgreSQL 12.8 · In MSVC builds, include --with-pgport in the set of configure options reported by pg_config, if it had been specified
- Same changePostgreSQL 11.13 · In MSVC builds, include --with-pgport in the set of configure options reported by pg_config, if it had been specified
- Same changePostgreSQL 10.18 · In MSVC builds, include --with-pgport in the set of configure options reported by pg_config, if it had been specified
- Same changePostgreSQL 9.6.23 · In MSVC builds, include --with-pgport in the set of configure options reported by pg_config, if it had been specified
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.