DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 16.2 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
16.2
2024-02-08
16.2stableSupport ends 2028-11-09
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2024-0985 Tighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY | 16.2 | Recorded fix |
PostgreSQL 16.2
Migration and compatibility
A dump/restore is not required for those running 16.X.
However, one bug was fixed that could have resulted in corruption of GIN indexes during concurrent updates. If you suspect such corruption, reindex affected indexes after installing this update.
Also, if you are upgrading from a version earlier than 16.1, see Section E.15.
SecurityTighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY
Changes
Tighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY (Heikki Linnakangas) § §
One step of a concurrent refresh command was run under weak security restrictions. If a materialized view's owner could persuade a superuser or other high-privileged user to perform a concurrent refresh on that view, the view's owner could control code executed with the privileges of the user running REFRESH. Fix things so that all user-determined code is run as the view's owner, as expected.
The only known exploit for this error does not work in PostgreSQL 16.0 and later, so it may be that v16 is not vulnerable in practice.
The PostgreSQL Project thanks Pedro Gallegos for reporting this problem. (CVE-2024-0985)
Related records (4)
- Same changePostgreSQL 15.6 · Tighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY
- Same changePostgreSQL 14.11 · Tighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY
- Same changePostgreSQL 13.14 · Tighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY
- Same changePostgreSQL 12.18 · Tighten security restrictions within REFRESH MATERIALIZED VIEW CONCURRENTLY
Bug fixesFix memory leak when performing JIT inlining
Changes
Fix memory leak when performing JIT inlining (Andres Freund, Daniel Gustafsson) §
There have been multiple reports of backend processes suffering out-of-memory conditions after sufficiently many JIT compilations. This fix should resolve that.
Related records (4)
ImprovementsAvoid generating incorrect partitioned-join plans
Changes
Avoid generating incorrect partitioned-join plans (Richard Guo) §
Some uncommon situations involving lateral references could create incorrect plans. Affected queries could produce wrong answers, or odd failures such as “variable not found in subplan target list”, or executor crashes.
Related records (4)
- Same changePostgreSQL 15.6 · Avoid generating incorrect partitioned-join plans
- Same changePostgreSQL 14.11 · Avoid generating incorrect partitioned-join plans
- Same changePostgreSQL 13.14 · Avoid generating incorrect partitioned-join plans
- Same changePostgreSQL 12.18 · Avoid generating incorrect partitioned-join plans
Bug fixesFix incorrect wrapping of subquery output expressions in PlaceHolderVars
Changes
Fix incorrect wrapping of subquery output expressions in PlaceHolderVars (Tom Lane) §
This fixes incorrect results when a subquery is underneath an outer join and has an output column that laterally references something outside the outer join's scope. The output column might not appear as NULL when it should do so due to the action of the outer join.
Related records (4)
- Same changePostgreSQL 15.6 · Fix incorrect wrapping of subquery output expressions in PlaceHolderVars
- Same changePostgreSQL 14.11 · Fix incorrect wrapping of subquery output expressions in PlaceHolderVars
- Same changePostgreSQL 13.14 · Fix incorrect wrapping of subquery output expressions in PlaceHolderVars
- Same changePostgreSQL 12.18 · Fix incorrect wrapping of subquery output expressions in PlaceHolderVars
Bug fixesFix misprocessing of window function run conditions
Changes
Fix misprocessing of window function run conditions (Richard Guo) §
This oversight could lead to “WindowFunc not found in subplan target lists” errors.
Related records (1)
Bug fixesFix detection of inner-side uniqueness for Memoize plans
Changes
Fix detection of inner-side uniqueness for Memoize plans (Richard Guo) §
This mistake could lead to “cache entry already complete” errors.
Bug fixesFix computation of nullingrels when constant-folding field selection
Changes
Fix computation of nullingrels when constant-folding field selection (Richard Guo) §
Failure to do this led to errors like “wrong varnullingrels (b) (expected (b 3)) for Var 2/2”.
ImprovementsSkip inappropriate actions when MERGE causes a cross-partition update
Changes
Skip inappropriate actions when MERGE causes a cross-partition update (Dean Rasheed) §
When executing a MERGE UPDATE action on a partitioned table, if the UPDATE is turned into a DELETE and INSERT due to changing a partition key column, skip firing AFTER UPDATE ROW triggers, as well as other post-update actions such as RLS checks. These actions would typically fail, which is why a regular UPDATE doesn't do them in such cases; MERGE shouldn't either.
Related records (1)
ImprovementsCope with BEFORE ROW DELETE triggers in cross-partition MERGE updates
Changes
Cope with BEFORE ROW DELETE triggers in cross-partition MERGE updates (Dean Rasheed) §
If such a trigger attempted to prevent the update by returning NULL, MERGE would suffer an error or assertion failure.
Related records (1)
ImprovementsPrevent access to a no-longer-pinned buffer in BEFORE ROW UPDATE triggers
Changes
Prevent access to a no-longer-pinned buffer in BEFORE ROW UPDATE triggers (Alexander Lakhin, Tom Lane) §
If the tuple being updated had just been updated and moved to another page by another session, there was a narrow window where we would attempt to fetch data from the new tuple version without any pin on its buffer. In principle this could result in garbage data appearing in non-updated columns of the proposed new tuple. The odds of problems in practice seem rather low, however.
ImprovementsAvoid requesting an oversize shared-memory area in parallel hash join
Changes
Avoid requesting an oversize shared-memory area in parallel hash join (Thomas Munro, Andrei Lepikhov, Alexander Korotkov) § §
The limiting value was too large, allowing “invalid DSA memory alloc request size” errors to occur with sufficiently large expected hash table sizes.
Related records (4)
- Same changePostgreSQL 15.6 · Avoid requesting an oversize shared-memory area in parallel hash join
- Same changePostgreSQL 14.11 · Avoid requesting an oversize shared-memory area in parallel hash join
- Same changePostgreSQL 13.14 · Avoid requesting an oversize shared-memory area in parallel hash join
- Same changePostgreSQL 12.18 · Avoid requesting an oversize shared-memory area in parallel hash join
Bug fixesFix corruption of local buffer state when an error occurs while trying to extend a temporary table
Changes
Fix corruption of local buffer state when an error occurs while trying to extend a temporary table (Tender Wang) §
Bug fixesFix use of wrong tuple slot while evaluating DISTINCT aggregates that have multiple arguments
Changes
Fix use of wrong tuple slot while evaluating DISTINCT aggregates that have multiple arguments (David Rowley) §
This mistake could lead to errors such as “attribute 1 of type record has wrong type”.
ImprovementsAvoid assertion failures in heap_update() and heap_delete() when a tuple to be updated by a foreign-key enforcement trigger fails the extra visibility crosscheck
Changes
Avoid assertion failures in heap_update() and heap_delete() when a tuple to be updated by a foreign-key enforcement trigger fails the extra visibility crosscheck (Alexander Lakhin) §
This error had no impact in non-assert builds.
Related records (4)
- Same changePostgreSQL 15.6 · Avoid assertion failures in heap_update() and heap_delete() when a tuple to be updated by a foreign-key enforcement trigger fails the extra visibility crosscheck
- Same changePostgreSQL 14.11 · Avoid assertion failures in heap_update() and heap_delete() when a tuple to be updated by a foreign-key enforcement trigger fails the extra visibility crosscheck
- Same changePostgreSQL 13.14 · Avoid assertion failures in heap_update() and heap_delete() when a tuple to be updated by a foreign-key enforcement trigger fails the extra visibility crosscheck
- Same changePostgreSQL 12.18 · Avoid assertion failures in heap_update() and heap_delete() when a tuple to be updated by a foreign-key enforcement trigger fails the extra visibility crosscheck
Bug fixesFix overly tight assertion about false_positive_rate parameter of BRIN bloom operator classes
Changes
Fix overly tight assertion about false_positive_rate parameter of BRIN bloom operator classes (Alexander Lakhin) §
This error had no impact in non-assert builds, either.
Bug fixesFix possible failure during ALTER TABLE ADD COLUMN on a complex inheritance tree
Changes
Fix possible failure during ALTER TABLE ADD COLUMN on a complex inheritance tree (Tender Wang) §
If a grandchild table would inherit the new column via multiple intermediate parents, the command failed with “tuple already updated by self”.
Related records (4)
- Same changePostgreSQL 15.6 · Fix possible failure during ALTER TABLE ADD COLUMN on a complex inheritance tree
- Same changePostgreSQL 14.11 · Fix possible failure during ALTER TABLE ADD COLUMN on a complex inheritance tree
- Same changePostgreSQL 13.14 · Fix possible failure during ALTER TABLE ADD COLUMN on a complex inheritance tree
- Same changePostgreSQL 12.18 · Fix possible failure during ALTER TABLE ADD COLUMN on a complex inheritance tree
Bug fixesFix problems with duplicate token names in ALTER TEXT SEARCH CONFIGURATION ... MAPPING commands
Changes
Fix problems with duplicate token names in ALTER TEXT SEARCH CONFIGURATION ... MAPPING commands (Tender Wang, Michael Paquier) §
Related records (4)
- Same changePostgreSQL 15.6 · Fix problems with duplicate token names in ALTER TEXT SEARCH CONFIGURATION ... MAPPING commands
- Same changePostgreSQL 14.11 · Fix problems with duplicate token names in ALTER TEXT SEARCH CONFIGURATION ... MAPPING commands
- Same changePostgreSQL 13.14 · Fix problems with duplicate token names in ALTER TEXT SEARCH CONFIGURATION ... MAPPING commands
- Same changePostgreSQL 12.18 · Fix problems with duplicate token names in ALTER TEXT SEARCH CONFIGURATION ... MAPPING commands
Bug fixesFix DROP ROLE with duplicate role names
Changes
Fix DROP ROLE with duplicate role names (Michael Paquier) §
Previously this led to a “tuple already updated by self” failure. Instead, ignore the duplicate.
ImprovementsProperly lock the associated table during DROP STATISTICS
Changes
Properly lock the associated table during DROP STATISTICS (Tomas Vondra) §
Failure to acquire the lock could result in “tuple concurrently deleted” errors if the DROP executes concurrently with ANALYZE.
Related records (4)
- Same changePostgreSQL 15.6 · Properly lock the associated table during DROP STATISTICS
- Same changePostgreSQL 14.11 · Properly lock the associated table during DROP STATISTICS
- Same changePostgreSQL 13.14 · Properly lock the associated table during DROP STATISTICS
- Same changePostgreSQL 12.18 · Properly lock the associated table during DROP STATISTICS
Bug fixesFix function volatility checking for GENERATED and DEFAULT expressions
Changes
Fix function volatility checking for GENERATED and DEFAULT expressions (Tom Lane) §
These places could fail to detect insertion of a volatile function default-argument expression, or decide that a polymorphic function is volatile although it is actually immutable on the datatype of interest. This could lead to improperly rejecting or accepting a GENERATED clause, or to mistakenly applying the constant-default-value optimization in ALTER TABLE ADD COLUMN.
Related records (4)
- Same changePostgreSQL 15.6 · Fix function volatility checking for GENERATED and DEFAULT expressions
- Same changePostgreSQL 14.11 · Fix function volatility checking for GENERATED and DEFAULT expressions
- Same changePostgreSQL 13.14 · Fix function volatility checking for GENERATED and DEFAULT expressions
- Same changePostgreSQL 12.18 · Fix function volatility checking for GENERATED and DEFAULT expressions
ImprovementsDetect that a new catalog cache entry became stale while detoasting its fields
Changes
Detect that a new catalog cache entry became stale while detoasting its fields (Tom Lane) § §
We expand any out-of-line fields in a catalog tuple before inserting it into the catalog caches. That involves database access which might cause invalidation of catalog cache entries — but the new entry isn't in the cache yet, so we would miss noticing that it should get invalidated. The result is a race condition in which an already-stale cache entry could get made, and then persist indefinitely. This would lead to hard-to-predict misbehavior. Fix by rechecking the tuple's visibility after detoasting.
Related records (4)
- Same changePostgreSQL 15.6 · Detect that a new catalog cache entry became stale while detoasting its fields
- Same changePostgreSQL 14.11 · Detect that a new catalog cache entry became stale while detoasting its fields
- Same changePostgreSQL 13.14 · Detect that a new catalog cache entry became stale while detoasting its fields
- Same changePostgreSQL 12.18 · Detect that a new catalog cache entry became stale while detoasting its fields
Bug fixesFix edge-case integer overflow detection bug on some platforms
Changes
Fix edge-case integer overflow detection bug on some platforms (Dean Rasheed) §
Computing 0 - INT64_MIN should result in an overflow error, and did on most platforms. However, platforms with neither integer overflow builtins nor 128-bit integers would fail to spot the overflow, instead returning INT64_MIN.
Related records (4)
- Same changePostgreSQL 15.6 · Fix edge-case integer overflow detection bug on some platforms
- Same changePostgreSQL 14.11 · Fix edge-case integer overflow detection bug on some platforms
- Same changePostgreSQL 13.14 · Fix edge-case integer overflow detection bug on some platforms
- Same changePostgreSQL 12.18 · Fix edge-case integer overflow detection bug on some platforms
ImprovementsDetect Julian-date overflow when adding or subtracting an interval to/from a timestamp
Changes
Detect Julian-date overflow when adding or subtracting an interval to/from a timestamp (Tom Lane) §
Some cases that should cause an out-of-range error produced an incorrect result instead.
Related records (4)
- Same changePostgreSQL 15.6 · Detect Julian-date overflow when adding or subtracting an interval to/from a timestamp
- Same changePostgreSQL 14.11 · Detect Julian-date overflow when adding or subtracting an interval to/from a timestamp
- Same changePostgreSQL 13.14 · Detect Julian-date overflow when adding or subtracting an interval to/from a timestamp
- Same changePostgreSQL 12.18 · Detect Julian-date overflow when adding or subtracting an interval to/from a timestamp
ImprovementsAdd more checks for overflow in interval_mul() and interval_div()
Changes
Add more checks for overflow in interval_mul() and interval_div() (Dean Rasheed) §
Some cases that should cause an out-of-range error produced an incorrect result instead.
Related records (4)
- Same changePostgreSQL 15.6 · Add more checks for overflow in interval_mul() and interval_div()
- Same changePostgreSQL 14.11 · Add more checks for overflow in interval_mul() and interval_div()
- Same changePostgreSQL 13.14 · Add more checks for overflow in interval_mul() and interval_div()
- Same changePostgreSQL 12.18 · Add more checks for overflow in interval_mul() and interval_div()
ImprovementsAllow scram_SaltedPassword() to be interrupted
Changes
Allow scram_SaltedPassword() to be interrupted (Bowen Shi) §
With large scram_iterations values, this function could take a long time to run. Allow it to be interrupted by query cancel requests.
ImprovementsEnsure cached statistics are discarded after a change to stats_fetch_consistency
Changes
Ensure cached statistics are discarded after a change to stats_fetch_consistency (Shinya Kato) §
In some code paths, it was possible for stale statistics to be returned.
Related records (1)
ImprovementsMake the pg_file_settings view check validity of unapplied values for settings with backend or superuser-backend context
Changes
Make the pg_file_settings view check validity of unapplied values for settings with backend or superuser-backend context (Tom Lane) §
Invalid values were not noted in the view as intended. This escaped detection because there are very few settings in these groups.
Related records (4)
- Same changePostgreSQL 15.6 · Make the pg_file_settings view check validity of unapplied values for settings with backend or superuser-backend context
- Same changePostgreSQL 14.11 · Make the pg_file_settings view check validity of unapplied values for settings with backend or superuser-backend context
- Same changePostgreSQL 13.14 · Make the pg_file_settings view check validity of unapplied values for settings with backend or superuser-backend context
- Same changePostgreSQL 12.18 · Make the pg_file_settings view check validity of unapplied values for settings with backend or superuser-backend context
ImprovementsMatch collation too when matching an existing index to a new partitioned index
Changes
Match collation too when matching an existing index to a new partitioned index (Peter Eisentraut) §
Previously we could accept an index that has a different collation from the corresponding element of the partition key, possibly leading to misbehavior.
Related records (4)
- Same changePostgreSQL 15.6 · Match collation too when matching an existing index to a new partitioned index
- Same changePostgreSQL 14.11 · Match collation too when matching an existing index to a new partitioned index
- Same changePostgreSQL 13.14 · Match collation too when matching an existing index to a new partitioned index
- Same changePostgreSQL 12.18 · Match collation too when matching an existing index to a new partitioned index
ImprovementsAvoid failure if a child index is dropped concurrently with REINDEX INDEX on a partitioned index
Bug fixesFix insufficient locking when cleaning up an incomplete split of a GIN index's internal page
Changes
Fix insufficient locking when cleaning up an incomplete split of a GIN index's internal page (Fei Changhong, Heikki Linnakangas) §
The code tried to do this with shared rather than exclusive lock on the buffer. This could lead to index corruption if two processes attempted the cleanup concurrently.
Related records (4)
- Same changePostgreSQL 15.6 · Fix insufficient locking when cleaning up an incomplete split of a GIN index's internal page
- Same changePostgreSQL 14.11 · Fix insufficient locking when cleaning up an incomplete split of a GIN index's internal page
- Same changePostgreSQL 13.14 · Fix insufficient locking when cleaning up an incomplete split of a GIN index's internal page
- Same changePostgreSQL 12.18 · Fix insufficient locking when cleaning up an incomplete split of a GIN index's internal page
ImprovementsAvoid premature release of buffer pin in GIN index insertion
Changes
Avoid premature release of buffer pin in GIN index insertion (Tom Lane) §
If an index root page split occurs concurrently with our own insertion, the code could fail with “buffer NNNN is not owned by resource owner”.
Related records (4)
- Same changePostgreSQL 15.6 · Avoid premature release of buffer pin in GIN index insertion
- Same changePostgreSQL 14.11 · Avoid premature release of buffer pin in GIN index insertion
- Same changePostgreSQL 13.14 · Avoid premature release of buffer pin in GIN index insertion
- Same changePostgreSQL 12.18 · Avoid premature release of buffer pin in GIN index insertion
ImprovementsAvoid failure with partitioned SP-GiST indexes
Changes
Avoid failure with partitioned SP-GiST indexes (Tom Lane) §
Trying to use an index of this kind could lead to “No such file or directory” errors.
Related records (4)
- Same changePostgreSQL 15.6 · Avoid failure with partitioned SP-GiST indexes
- Same changePostgreSQL 14.11 · Avoid failure with partitioned SP-GiST indexes
- Same changePostgreSQL 13.14 · Avoid failure with partitioned SP-GiST indexes
- Same changePostgreSQL 12.18 · Avoid failure with partitioned SP-GiST indexes
Bug fixesFix ownership tests for large objects
Changes
Fix ownership tests for large objects (Tom Lane) §
Operations on large objects that require ownership privilege failed with “unrecognized class ID: 2613”, unless run by a superuser.
Related records (5)
- Related commitsPostgreSQL 16.2 · Fix ownership change reporting for large objects
- Related commitsPostgreSQL 15.6 · Fix ownership change reporting for large objects
- Related commitsPostgreSQL 14.11 · Fix ownership change reporting for large objects
- Related commitsPostgreSQL 13.14 · Fix ownership change reporting for large objects
- Related commitsPostgreSQL 12.18 · Fix ownership change reporting for large objects
Bug fixesFix ownership change reporting for large objects
Changes
Fix ownership change reporting for large objects (Tom Lane) §
A no-op ALTER LARGE OBJECT OWNER command (that is, one selecting the existing owner) passed the wrong class ID to the PostAlterHook, probably confusing any extension using that hook.
Related records (5)
- Related commitsPostgreSQL 16.2 · Fix ownership tests for large objects
- Same changePostgreSQL 15.6 · Fix ownership change reporting for large objects
- Same changePostgreSQL 14.11 · Fix ownership change reporting for large objects
- Same changePostgreSQL 13.14 · Fix ownership change reporting for large objects
- Same changePostgreSQL 12.18 · Fix ownership change reporting for large objects
Bug fixesFix reporting of I/O timing data in EXPLAIN (BUFFERS)
Changes
Fix reporting of I/O timing data in EXPLAIN (BUFFERS) (Michael Paquier) §
The numbers labeled as “shared/local” actually refer only to shared buffers, so change that label to “shared”.
Related records (1)
ImprovementsEnsure durability of CREATE DATABASE
Changes
Ensure durability of CREATE DATABASE (Noah Misch) § §
If an operating system crash occurred during or shortly after CREATE DATABASE, recovery could fail, or subsequent connections to the new database could fail. If a base backup was taken in that window, similar problems could be observed when trying to use the backup. The symptom would be that the database directory, PG_VERSION file, or pg_filenode.map file was missing or empty.
Related records (1)
ImprovementsAdd more LOG messages when starting and ending recovery from a backup
Changes
Add more LOG messages when starting and ending recovery from a backup (Andres Freund) §
This change provides additional information in the postmaster log that may be useful for diagnosing recovery problems.
Related records (2)
ImprovementsPrevent standby servers from incorrectly processing dead index tuples during subtransactions
Changes
Prevent standby servers from incorrectly processing dead index tuples during subtransactions (Fei Changhong) §
The startedInRecovery flag was not correctly set for a subtransaction. This affects only processing of dead index tuples. It could allow a query in a subtransaction to ignore index entries that it should return (if they are already dead on the primary server, but not dead to the standby transaction), or to prematurely mark index entries as dead that are not yet dead on the primary. It is not clear that the latter case has any serious consequences, but it's not the intended behavior.
Related records (4)
- Same changePostgreSQL 15.6 · Prevent standby servers from incorrectly processing dead index tuples during subtransactions
- Same changePostgreSQL 14.11 · Prevent standby servers from incorrectly processing dead index tuples during subtransactions
- Same changePostgreSQL 13.14 · Prevent standby servers from incorrectly processing dead index tuples during subtransactions
- Same changePostgreSQL 12.18 · Prevent standby servers from incorrectly processing dead index tuples during subtransactions
Bug fixesFix signal handling in walreceiver processes
Changes
Fix signal handling in walreceiver processes (Heikki Linnakangas) §
Revert a change that made walreceivers non-responsive to SIGTERM while waiting for the replication connection to be established.
Bug fixesFix integer overflow hazard in checking whether a record will fit into the WAL decoding buffer
Changes
Fix integer overflow hazard in checking whether a record will fit into the WAL decoding buffer (Thomas Munro) §
This bug appears to be only latent except when running a 32-bit PostgreSQL build on a 64-bit platform.
Related records (1)
Bug fixesFix deadlock between a logical replication apply worker, its tablesync worker, and a session process trying to alter the subscription
Changes
Fix deadlock between a logical replication apply worker, its tablesync worker, and a session process trying to alter the subscription (Shlok Kyal) §
One edge of the deadlock loop did not involve a lock wait, so the deadlock went undetected and would persist until manual intervention.
Related records (4)
- Same changePostgreSQL 15.6 · Fix deadlock between a logical replication apply worker, its tablesync worker, and a session process trying to alter the subscription
- Same changePostgreSQL 14.11 · Fix deadlock between a logical replication apply worker, its tablesync worker, and a session process trying to alter the subscription
- Same changePostgreSQL 13.14 · Fix deadlock between a logical replication apply worker, its tablesync worker, and a session process trying to alter the subscription
- Same changePostgreSQL 12.18 · Fix deadlock between a logical replication apply worker, its tablesync worker, and a session process trying to alter the subscription
ImprovementsEnsure that column default values are correctly transmitted by the pgoutput logical replication plugin
Changes
Ensure that column default values are correctly transmitted by the pgoutput logical replication plugin (Nikhil Benesch) §
ALTER TABLE ADD COLUMN with a constant default value for the new column avoids rewriting existing tuples, instead expecting that reading code will insert the correct default into a tuple that lacks that column. If replication was subsequently initiated on the table, pgoutput would transmit NULL instead of the correct default for such a column, causing incorrect replication on the subscriber.
Related records (1)
Bug fixesFix failure of logical replication's initial sync for a table with no columns
Changes
Fix failure of logical replication's initial sync for a table with no columns (Vignesh C) §
This case generated an improperly-formatted COPY command.
Related records (1)
ImprovementsRe-validate a subscription's connection string before use
Bug fixesReturn the correct status code when a new client disconnects without responding to the server's password challenge
Changes
Return the correct status code when a new client disconnects without responding to the server's password challenge (Liu Lang, Tom Lane) §
In some cases we'd treat this as a loggable error, which was not the intention and tends to create log spam, since common clients like psql frequently do this. It may also confuse extensions that use ClientAuthentication_hook.
Related records (4)
- Same changePostgreSQL 15.6 · Return the correct status code when a new client disconnects without responding to the server's password challenge
- Same changePostgreSQL 14.11 · Return the correct status code when a new client disconnects without responding to the server's password challenge
- Same changePostgreSQL 13.14 · Return the correct status code when a new client disconnects without responding to the server's password challenge
- Same changePostgreSQL 12.18 · Return the correct status code when a new client disconnects without responding to the server's password challenge
Bug fixesFix incompatibility with OpenSSL 3.2
Changes
Fix incompatibility with OpenSSL 3.2 (Tristan Partin, Bo Andreson) §
Use the BIO “app_data” field for our private storage, instead of assuming it's okay to use the “data” field. This mistake didn't cause problems before, but with 3.2 it leads to crashes and complaints about double frees.
Related records (4)
ImprovementsBe more wary about OpenSSL not setting errno on error
Changes
Be more wary about OpenSSL not setting errno on error (Tom Lane) §
If errno isn't set, assume the cause of the reported failure is read EOF. This fixes rare cases of strange error reports like “could not accept SSL connection: Success”.
Related records (4)
- Same changePostgreSQL 15.6 · Be more wary about OpenSSL not setting errno on error
- Same changePostgreSQL 14.11 · Be more wary about OpenSSL not setting errno on error
- Same changePostgreSQL 13.14 · Be more wary about OpenSSL not setting errno on error
- Same changePostgreSQL 12.18 · Be more wary about OpenSSL not setting errno on error
Bug fixesFix file descriptor leakage when a foreign data wrapper's ForeignAsyncRequest function fails
Changes
Fix file descriptor leakage when a foreign data wrapper's ForeignAsyncRequest function fails (Heikki Linnakangas) §
Bug fixesFix minor memory leak in connection string validation for CREATE SUBSCRIPTION
Changes
Fix minor memory leak in connection string validation for CREATE SUBSCRIPTION (Jeff Davis) §
ImprovementsReport ENOMEM errors from file-related system calls as ERRCODE_OUT_OF_MEMORY, not ERRCODE_INTERNAL_ERROR
Changes
Report ENOMEM errors from file-related system calls as ERRCODE_OUT_OF_MEMORY, not ERRCODE_INTERNAL_ERROR (Alexander Kuzmenkov) §
Related records (4)
- Same changePostgreSQL 15.6 · Report ENOMEM errors from file-related system calls as ERRCODE_OUT_OF_MEMORY, not ERRCODE_INTERNAL_ERROR
- Same changePostgreSQL 14.11 · Report ENOMEM errors from file-related system calls as ERRCODE_OUT_OF_MEMORY, not ERRCODE_INTERNAL_ERROR
- Same changePostgreSQL 13.14 · Report ENOMEM errors from file-related system calls as ERRCODE_OUT_OF_MEMORY, not ERRCODE_INTERNAL_ERROR
- Same changePostgreSQL 12.18 · Report ENOMEM errors from file-related system calls as ERRCODE_OUT_OF_MEMORY, not ERRCODE_INTERNAL_ERROR
ImprovementsIn PL/pgSQL, support SQL commands that are CREATE FUNCTION/CREATE PROCEDURE with SQL-standard bodies
Changes
In PL/pgSQL, support SQL commands that are CREATE FUNCTION/CREATE PROCEDURE with SQL-standard bodies (Tom Lane) §
Previously, such cases failed with parsing errors due to the semicolon(s) appearing in the function body.
Bug fixesFix libpq's handling of errors in pipelines
Changes
Fix libpq's handling of errors in pipelines (Álvaro Herrera) § §
The pipeline state could get out of sync if an error is returned for reasons other than a query problem (for example, if the connection is lost). Potentially this would lead to a busy-loop in the calling application.
Related records (2)
ImprovementsMake libpq's PQsendFlushRequest() function flush the client output buffer under the same rules as other PQsend functions
Changes
Make libpq's PQsendFlushRequest() function flush the client output buffer under the same rules as other PQsend functions (Jelte Fennema-Nio) §
In pipeline mode, it may still be necessary to call PQflush() as well; but this change removes some inconsistency.
Related records (2)
ImprovementsAvoid race condition when libpq initializes OpenSSL support concurrently in two different threads
Changes
Avoid race condition when libpq initializes OpenSSL support concurrently in two different threads (Willi Mann, Michael Paquier) §
Related records (4)
- Same changePostgreSQL 15.6 · Avoid race condition when libpq initializes OpenSSL support concurrently in two different threads
- Same changePostgreSQL 14.11 · Avoid race condition when libpq initializes OpenSSL support concurrently in two different threads
- Same changePostgreSQL 13.14 · Avoid race condition when libpq initializes OpenSSL support concurrently in two different threads
- Same changePostgreSQL 12.18 · Avoid race condition when libpq initializes OpenSSL support concurrently in two different threads
Bug fixesFix timing-dependent failure in GSSAPI data transmission
Changes
Fix timing-dependent failure in GSSAPI data transmission (Tom Lane) §
When using GSSAPI encryption in non-blocking mode, libpq sometimes failed with “GSSAPI caller failed to retransmit all data needing to be retried”.
Related records (4)
- Same changePostgreSQL 15.6 · Fix timing-dependent failure in GSSAPI data transmission
- Same changePostgreSQL 14.11 · Fix timing-dependent failure in GSSAPI data transmission
- Same changePostgreSQL 13.14 · Fix timing-dependent failure in GSSAPI data transmission
- Same changePostgreSQL 12.18 · Fix timing-dependent failure in GSSAPI data transmission
ImprovementsChange initdb to always un-comment the postgresql.conf entries for the lc_xxx parameters
Changes
Change initdb to always un-comment the postgresql.conf entries for the lc_ parameters (Kyotaro Horiguchi) §xxx
initdb used to work this way before v16, and now it does again. The change caused initdb's --no-locale option to not have the intended effect on lc_messages.
ImprovementsIn pg_dump, don't dump RLS policies or security labels for extension member objects
Changes
In pg_dump, don't dump RLS policies or security labels for extension member objects (Tom Lane, Jacob Champion) § §
Previously, commands would be included in the dump to set these properties, which is really incorrect since they should be considered as internal affairs of the extension. Moreover, the restoring user might not have adequate privilege to set them, and indeed the dumping user might not have enough privilege to dump them (since dumping RLS policies requires acquiring lock on their table).
Related records (4)
- Same changePostgreSQL 15.6 · In pg_dump, don't dump RLS policies or security labels for extension member objects
- Same changePostgreSQL 14.11 · In pg_dump, don't dump RLS policies or security labels for extension member objects
- Same changePostgreSQL 13.14 · In pg_dump, don't dump RLS policies or security labels for extension member objects
- Same changePostgreSQL 12.18 · In pg_dump, don't dump RLS policies or security labels for extension member objects
ImprovementsIn pg_dump, don't dump an extended statistics object if its underlying table isn't being dumped
Changes
In pg_dump, don't dump an extended statistics object if its underlying table isn't being dumped (Rian McGuire, Tom Lane) §
This conforms to the behavior for other dependent objects such as indexes.
Related records (4)
- Same changePostgreSQL 15.6 · In pg_dump, don't dump an extended statistics object if its underlying table isn't being dumped
- Same changePostgreSQL 14.11 · In pg_dump, don't dump an extended statistics object if its underlying table isn't being dumped
- Same changePostgreSQL 13.14 · In pg_dump, don't dump an extended statistics object if its underlying table isn't being dumped
- Same changePostgreSQL 12.18 · In pg_dump, don't dump an extended statistics object if its underlying table isn't being dumped
ImprovementsProperly detect out-of-memory in one code path in pg_dump
Changes
Properly detect out-of-memory in one code path in pg_dump (Daniel Gustafsson) §
ImprovementsMake it an error for a pgbench script to end with an open pipeline
Changes
Make it an error for a pgbench script to end with an open pipeline (Anthonin Bonnefoy) §
Previously, pgbench would behave oddly if a \startpipeline command lacked a matching \endpipeline. This seems like a scripting mistake rather than a case that pgbench needs to handle nicely, so throw an error.
Bug fixesFix crash in contrib/intarray if an array with an element equal to INT_MAX is inserted into a gist__int_ops index
Changes
Fix crash in contrib/intarray if an array with an element equal to INT_MAX is inserted into a gist__int_ops index (Alexander Lakhin, Tom Lane) §
Related records (4)
- Same changePostgreSQL 15.6 · Fix crash in contrib/intarray if an array with an element equal to INT_MAX is inserted into a gist__int_ops index
- Same changePostgreSQL 14.11 · Fix crash in contrib/intarray if an array with an element equal to INT_MAX is inserted into a gist__int_ops index
- Same changePostgreSQL 13.14 · Fix crash in contrib/intarray if an array with an element equal to INT_MAX is inserted into a gist__int_ops index
- Same changePostgreSQL 12.18 · Fix crash in contrib/intarray if an array with an element equal to INT_MAX is inserted into a gist__int_ops index
ImprovementsReport a better error when contrib/pageinspect's hash_bitmap_info() function is applied to a partitioned hash index
Changes
Report a better error when contrib/pageinspect's hash_bitmap_info() function is applied to a partitioned hash index (Alexander Lakhin, Michael Paquier) §
Related records (4)
- Same changePostgreSQL 15.6 · Report a better error when contrib/pageinspect's hash_bitmap_info() function is applied to a partitioned hash index
- Same changePostgreSQL 14.11 · Report a better error when contrib/pageinspect's hash_bitmap_info() function is applied to a partitioned hash index
- Same changePostgreSQL 13.14 · Report a better error when contrib/pageinspect's hash_bitmap_info() function is applied to a partitioned hash index
- Same changePostgreSQL 12.18 · Report a better error when contrib/pageinspect's hash_bitmap_info() function is applied to a partitioned hash index
ImprovementsReport a better error when contrib/pgstattuple's pgstathashindex() function is applied to a partitioned hash index
Changes
Report a better error when contrib/pgstattuple's pgstathashindex() function is applied to a partitioned hash index (Alexander Lakhin) §
Related records (4)
- Same changePostgreSQL 15.6 · Report a better error when contrib/pgstattuple's pgstathashindex() function is applied to a partitioned hash index
- Same changePostgreSQL 14.11 · Report a better error when contrib/pgstattuple's pgstathashindex() function is applied to a partitioned hash index
- Same changePostgreSQL 13.14 · Report a better error when contrib/pgstattuple's pgstathashindex() function is applied to a partitioned hash index
- Same changePostgreSQL 12.18 · Report a better error when contrib/pgstattuple's pgstathashindex() function is applied to a partitioned hash index
ImprovementsOn Windows, suppress autorun options when launching subprocesses in pg_ctl and pg_regress
Changes
On Windows, suppress autorun options when launching subprocesses in pg_ctl and pg_regress (Kyotaro Horiguchi) § §
When launching a child process via cmd.exe, pass the /D flag to prevent executing any autorun commands specified in the registry. This avoids possibly-surprising side effects.
Related records (4)
- Same changePostgreSQL 15.6 · On Windows, suppress autorun options when launching subprocesses in pg_ctl and pg_regress
- Same changePostgreSQL 14.11 · On Windows, suppress autorun options when launching subprocesses in pg_ctl and pg_regress
- Same changePostgreSQL 13.14 · On Windows, suppress autorun options when launching subprocesses in pg_ctl and pg_regress
- Same changePostgreSQL 12.18 · On Windows, suppress autorun options when launching subprocesses in pg_ctl and pg_regress
ImprovementsMove is_valid_ascii() from mb/pg_wchar.h to utils/ascii.h
Changes
Move is_valid_ascii() from mb/pg_wchar.h to utils/ascii.h (Jubilee Young) §
This change avoids the need to include <simd.h> in pg_wchar.h, which was causing problems for some third-party code.
Related records (1)
Bug fixesFix compilation failures with libxml2 version 2.12.0 and later
Changes
Fix compilation failures with libxml2 version 2.12.0 and later (Tom Lane) §
Related records (4)
- Same changePostgreSQL 15.6 · Fix compilation failures with libxml2 version 2.12.0 and later
- Same changePostgreSQL 14.11 · Fix compilation failures with libxml2 version 2.12.0 and later
- Same changePostgreSQL 13.14 · Fix compilation failures with libxml2 version 2.12.0 and later
- Same changePostgreSQL 12.18 · Fix compilation failures with libxml2 version 2.12.0 and later
Bug fixesFix compilation failure of WAL_DEBUG code on Windows
Changes
Fix compilation failure of WAL_DEBUG code on Windows (Bharath Rupireddy) §
ImprovementsSuppress compiler warnings from Python's header files
Changes
Suppress compiler warnings from Python's header files (Peter Eisentraut, Tom Lane) § §
Our preferred compiler options provoke warnings about constructs appearing in recent versions of Python's header files. When using gcc, we can suppress these warnings with a pragma.
Related records (4)
- Same changePostgreSQL 15.6 · Suppress compiler warnings from Python's header files
- Same changePostgreSQL 14.11 · Suppress compiler warnings from Python's header files
- Same changePostgreSQL 13.14 · Suppress compiler warnings from Python's header files
- Same changePostgreSQL 12.18 · Suppress compiler warnings from Python's header files
ImprovementsAvoid deprecation warning when compiling with LLVM 18
Changes
Avoid deprecation warning when compiling with LLVM 18 (Thomas Munro) §
Related records (4)
- Same changePostgreSQL 15.6 · Avoid deprecation warning when compiling with LLVM 18
- Same changePostgreSQL 14.11 · Avoid deprecation warning when compiling with LLVM 18
- Same changePostgreSQL 13.14 · Avoid deprecation warning when compiling with LLVM 18
- Same changePostgreSQL 12.18 · Avoid deprecation warning when compiling with LLVM 18
ImprovementsUpdate time zone data files to tzdata release 2024a for DST law changes in Greenland, Kazakhstan, and Palestine, plus corrections for the Antarctic stations Casey and Vostok. Also historical corrections for Vietnam, Toronto, and Miquelon.
Changes
Update time zone data files to tzdata release 2024a for DST law changes in Greenland, Kazakhstan, and Palestine, plus corrections for the Antarctic stations Casey and Vostok. Also historical corrections for Vietnam, Toronto, and Miquelon. (Tom Lane) §
Related records (4)
- Same changePostgreSQL 15.6 · Update time zone data files to tzdata release 2024a for DST law changes in Greenland, Kazakhstan, and Palestine, plus corrections for the Antarctic stations Casey and Vostok. Also historical corrections for Vietnam, Toronto, and Miquelon.
- Same changePostgreSQL 14.11 · Update time zone data files to tzdata release 2024a for DST law changes in Greenland, Kazakhstan, and Palestine, plus corrections for the Antarctic stations Casey and Vostok. Also historical corrections for Vietnam, Toronto, and Miquelon.
- Same changePostgreSQL 13.14 · Update time zone data files to tzdata release 2024a for DST law changes in Greenland, Kazakhstan, and Palestine, plus corrections for the Antarctic stations Casey and Vostok. Also historical corrections for Vietnam, Toronto, and Miquelon.
- Same changePostgreSQL 12.18 · Update time zone data files to tzdata release 2024a for DST law changes in Greenland, Kazakhstan, and Palestine, plus corrections for the Antarctic stations Casey and Vostok. Also historical corrections for Vietnam, Toronto, and Miquelon
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.