DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 17.6 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
17.6
2025-08-14
17.6stableSupport ends 2029-11-08
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2025-8715 Convert newlines to spaces in names included in comments in pg_dump output | 17.6 | Recorded fix | |
| CVE-2025-8714 Prevent pg_dump scripts from being used to attack the user running the restore | 17.6 | Recorded fix | |
| CVE-2017-7484 Tighten security checks in planner estimation functions | Recorded fix | ||
| CVE-2025-8713 Tighten security checks in planner estimation functions | 17.6 | Recorded fix | |
| CVE-2012-0868 Convert newlines to spaces in names included in comments in pg_dump output | Recorded fix |
PostgreSQL 17.6
Migration and compatibility
A dump/restore is not required for those running 17.X.
However, if you have any BRIN numeric_minmax_multi_ops indexes, it is advisable to reindex them after updating. See the fourth changelog entry below.
Also, if you are upgrading from a version earlier than 17.5, see Section E.7.
SecurityTighten security checks in planner estimation functions
Changes
Tighten security checks in planner estimation functions (Dean Rasheed) §
The fix for CVE-2017-7484, plus followup fixes, intended to prevent leaky functions from being applied to statistics data for columns that the calling user does not have permission to read. Two gaps in that protection have been found. One gap applies to partitioning and inheritance hierarchies where RLS policies on the tables should restrict access to statistics data, but did not.
The other gap applies to cases where the query accesses a table via a view, and the view owner has permissions to read the underlying table but the calling user does not have permissions on the view. The view owner's permissions satisfied the security checks, and the leaky function would get applied to the underlying table's statistics before we check the calling user's permissions on the view. This has been fixed by making security checks on views occur at the start of planning. That might cause permissions failures to occur earlier than before.
The PostgreSQL Project thanks Dean Rasheed for reporting this problem. (CVE-2025-8713)
Related records (4)
- Same changePostgreSQL 16.10 · Tighten security checks in planner estimation functions
- Same changePostgreSQL 15.14 · Tighten security checks in planner estimation functions
- Same changePostgreSQL 14.19 · Tighten security checks in planner estimation functions
- Same changePostgreSQL 13.22 · Tighten security checks in planner estimation functions
SecurityPrevent pg_dump scripts from being used to attack the user running the restore
Changes
Prevent pg_dump scripts from being used to attack the user running the restore (Nathan Bossart) §
Since dump/restore operations typically involve running SQL commands as superuser, the target database installation must trust the source server. However, it does not follow that the operating system user who executes psql to perform the restore should have to trust the source server. The risk here is that an attacker who has gained superuser-level control over the source server might be able to cause it to emit text that would be interpreted as psql meta-commands. That would provide shell-level access to the restoring user's own account, independently of access to the target database.
To provide a positive guarantee that this can't happen, extend psql with a \restrict command that prevents execution of further meta-commands, and teach pg_dump to issue that before any data coming from the source server.
The PostgreSQL Project thanks Martin Rakhmanov, Matthieu Denais, and RyotaK for reporting this problem. (CVE-2025-8714)
Related records (4)
- Same changePostgreSQL 16.10 · Prevent pg_dump scripts from being used to attack the user running the restore
- Same changePostgreSQL 15.14 · Prevent pg_dump scripts from being used to attack the user running the restore
- Same changePostgreSQL 14.19 · Prevent pg_dump scripts from being used to attack the user running the restore
- Same changePostgreSQL 13.22 · Prevent pg_dump scripts from being used to attack the user running the restore
SecurityConvert newlines to spaces in names included in comments in pg_dump output
Changes
Convert newlines to spaces in names included in comments in pg_dump output (Noah Misch) §
Object names containing newlines offered the ability to inject arbitrary SQL commands into the output script. (Without the preceding fix, injection of psql meta-commands would also be possible this way.) CVE-2012-0868 fixed this class of problem at the time, but later work reintroduced several cases.
The PostgreSQL Project thanks Noah Misch for reporting this problem. (CVE-2025-8715)
Related records (4)
- Same changePostgreSQL 16.10 · Convert newlines to spaces in names included in comments in pg_dump output
- Same changePostgreSQL 15.14 · Convert newlines to spaces in names included in comments in pg_dump output
- Same changePostgreSQL 14.19 · Convert newlines to spaces in names included in comments in pg_dump output
- Same changePostgreSQL 13.22 · Convert newlines to spaces in names included in comments in pg_dump output
Bug fixesFix incorrect distance calculation in BRIN numeric_minmax_multi_ops support function
Changes
Fix incorrect distance calculation in BRIN numeric_minmax_multi_ops support function (Peter Eisentraut, Tom Lane) §
The results were sometimes wrong on 64-bit platforms, and wildly wrong on 32-bit platforms. This did not produce obvious failures because the logic is only used to choose how to merge values into ranges; at worst the index would become inefficient and bloated. Nonetheless it's recommended to reindex any BRIN indexes that use the numeric_minmax_multi_ops operator class.
Related records (3)
- Same changePostgreSQL 16.10 · Fix incorrect distance calculation in BRIN numeric_minmax_multi_ops support function
- Same changePostgreSQL 15.14 · Fix incorrect distance calculation in BRIN numeric_minmax_multi_ops support function
- Same changePostgreSQL 14.19 · Fix incorrect distance calculation in BRIN numeric_minmax_multi_ops support function
ImprovementsAvoid regression in the size of XML input that we will accept
Changes
Avoid regression in the size of XML input that we will accept (Michael Paquier, Erik Wienhold) § §
Our workaround for a bug in early 2.13.x releases of libxml2 made use of a code path that rejects text chunks exceeding 10MB, whereas the previous coding did not. Those early releases are presumably extinct in the wild by now, so revert to the previous coding.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid regression in the size of XML input that we will accept
- Same changePostgreSQL 15.14 · Avoid regression in the size of XML input that we will accept
- Same changePostgreSQL 14.19 · Avoid regression in the size of XML input that we will accept
- Same changePostgreSQL 13.22 · Avoid regression in the size of XML input that we will accept
Bug fixesFix MERGE problems with concurrent updates
Changes
Fix MERGE problems with concurrent updates (Dean Rasheed) §
If a MERGE inside a CTE attempts an update or delete on a table with BEFORE ROW triggers, and a concurrent UPDATE or DELETE changes the target row, the MERGE command would fail (crashing in the case of an update action, and potentially executing the wrong action in the case of a delete action).
Bug fixesFix MERGE into a plain-inheritance parent table
Changes
Fix MERGE into a plain-inheritance parent table (Dean Rasheed) §
Insertions into such a target table could crash or produce incorrect query results due to failing to handle WITH CHECK OPTION and RETURNING actions.
Related records (2)
ImprovementsAllow tables with statement-level triggers to become partitions or inheritance children
Changes
Allow tables with statement-level triggers to become partitions or inheritance children (Etsuro Fujita) §
We do not allow partitions or inheritance child tables to have row-level triggers with transition tables, because an operation on the whole inheritance tree would need to maintain a separate transition table for each such child table. But that problem does not apply for statement-level triggers, because only the parent's statement-level triggers will be fired. The code that checks whether an existing table can become a partition or inheritance child nonetheless rejected both kinds of trigger.
Related records (4)
- Same changePostgreSQL 16.10 · Allow tables with statement-level triggers to become partitions or inheritance children
- Same changePostgreSQL 15.14 · Allow tables with statement-level triggers to become partitions or inheritance children
- Same changePostgreSQL 14.19 · Allow tables with statement-level triggers to become partitions or inheritance children
- Same changePostgreSQL 13.22 · Allow tables with statement-level triggers to become partitions or inheritance children
ImprovementsDisallow collecting transition tuples from child foreign tables
Changes
Disallow collecting transition tuples from child foreign tables (Etsuro Fujita) §
We do not support triggers with transition tables on foreign tables. However, the case of a partition or inheritance child that is a foreign table was overlooked. If the parent has such a trigger, incorrect transition tuples were collected from the foreign child. Instead throw an error, reporting that the case is not supported.
Related records (4)
- Same changePostgreSQL 16.10 · Disallow collecting transition tuples from child foreign tables
- Same changePostgreSQL 15.14 · Disallow collecting transition tuples from child foreign tables
- Same changePostgreSQL 14.19 · Disallow collecting transition tuples from child foreign tables
- Same changePostgreSQL 13.22 · Disallow collecting transition tuples from child foreign tables
ImprovementsAllow resetting unknown custom parameters with reserved prefixes
Changes
Allow resetting unknown custom parameters with reserved prefixes (Nathan Bossart) §
Previously, if a parameter setting had been stored using ALTER DATABASE/ROLE/SYSTEM, the stored setting could not be removed if the parameter was unknown but had a reserved prefix. This case could arise if an extension used to have a parameter, but that parameter had been removed in an upgrade.
Bug fixesFix a potential deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION
Changes
Fix a potential deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION (Ajin Cherian) §
Ensure that server processes acquire catalog locks in a consistent order during replication origin drops.
Related records (3)
- Same changePostgreSQL 16.10 · Fix a potential deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION
- Same changePostgreSQL 15.14 · Fix a potential deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION
- Same changePostgreSQL 14.19 · Fix a potential deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION
ImprovementsShorten the race condition window for creating indexes with conflicting names
Changes
Shorten the race condition window for creating indexes with conflicting names (Tom Lane) §
When choosing an auto-generated name for an index, avoid conflicting with not-yet-committed pg_class rows as well as fully-valid ones. This avoids possibly choosing the same name as some concurrent CREATE INDEX did, when that command is still in process of filling its index, or is done but is part of a not-yet-committed transaction. There's still a window for trouble, but it's only as long as the time needed to validate a new index's parameters and insert its pg_class row.
Related records (4)
- Same changePostgreSQL 16.10 · Shorten the race condition window for creating indexes with conflicting names
- Same changePostgreSQL 15.14 · Shorten the race condition window for creating indexes with conflicting names
- Same changePostgreSQL 14.19 · Shorten the race condition window for creating indexes with conflicting names
- Same changePostgreSQL 13.22 · Shorten the race condition window for creating indexes with conflicting names
ImprovementsPrevent usage of incorrect VACUUM options in some cases where multiple tables are vacuumed in a single command
Changes
Prevent usage of incorrect VACUUM options in some cases where multiple tables are vacuumed in a single command (Nathan Bossart, Michael Paquier) §
The TRUNCATE and INDEX_CLEANUP options of one table could be applied to others.
Related records (4)
- Same changePostgreSQL 16.10 · Prevent usage of incorrect VACUUM options in some cases where multiple tables are vacuumed in a single command
- Same changePostgreSQL 15.14 · Prevent usage of incorrect VACUUM options in some cases where multiple tables are vacuumed in a single command
- Same changePostgreSQL 14.19 · Prevent usage of incorrect VACUUM options in some cases where multiple tables are vacuumed in a single command
- Same changePostgreSQL 13.22 · Prevent usage of incorrect VACUUM options in some cases where multiple tables are vacuumed in a single command
ImprovementsEnsure that the table's free-space map is updated in a timely way when vacuuming a table that has no indexes
Changes
Ensure that the table's free-space map is updated in a timely way when vacuuming a table that has no indexes (Masahiko Sawada) §
A previous optimization caused FSM vacuuming to sometimes be skipped for such tables.
Bug fixesFix processing of character classes within SIMILAR TO regular expressions
Changes
Fix processing of character classes within SIMILAR TO regular expressions (Laurenz Albe) § §
The code that translates SIMILAR TO pattern matching expressions to POSIX-style regular expressions did not consider that square brackets can be nested. For example, in a pattern like [[:alpha:]%_], the code treated the % and _ characters as metacharacters when they should be literals.
Related records (4)
- Same changePostgreSQL 16.10 · Fix processing of character classes within SIMILAR TO regular expressions
- Same changePostgreSQL 15.14 · Fix processing of character classes within SIMILAR TO regular expressions
- Same changePostgreSQL 14.19 · Fix processing of character classes within SIMILAR TO regular expressions
- Same changePostgreSQL 13.22 · Fix processing of character classes within SIMILAR TO regular expressions
ImprovementsWhen deparsing queries, always add parentheses around the expression in FETCH FIRST expression ROWS WITH TIES clauses
Changes
When deparsing queries, always add parentheses around the expression in FETCH FIRST clauses (Heikki Linnakangas) § §expression ROWS WITH TIES
This avoids some cases where the deparsed result wasn't syntactically valid.
Related records (4)
- Same changePostgreSQL 16.10 · When deparsing queries, always add parentheses around the expression in FETCH FIRST expression ROWS WITH TIES clauses
- Same changePostgreSQL 15.14 · When deparsing queries, always add parentheses around the expression in FETCH FIRST expression ROWS WITH TIES clauses
- Same changePostgreSQL 14.19 · When deparsing queries, always add parentheses around the expression in FETCH FIRST expression ROWS WITH TIES clauses
- Same changePostgreSQL 13.22 · When deparsing queries, always add parentheses around the expression in FETCH FIRST expression ROWS WITH TIES clauses
ImprovementsLimit the checkpointer process's fsync request queue size
Changes
Limit the checkpointer process's fsync request queue size (Alexander Korotkov, Xuneng Zhou) § §
With very large shared_buffers settings, it was possible for the checkpointer to attempt to allocate more than 1GB for fsync requests, leading to failure and an infinite loop. Clamp the queue size to prevent this scenario.
Related records (4)
- Same changePostgreSQL 16.10 · Limit the checkpointer process's fsync request queue size
- Same changePostgreSQL 15.14 · Limit the checkpointer process's fsync request queue size
- Same changePostgreSQL 14.19 · Limit the checkpointer process's fsync request queue size
- Same changePostgreSQL 13.22 · Limit the checkpointer process's fsync request queue size
ImprovementsAvoid infinite wait in logical decoding when reading a partially-written WAL record
Changes
Avoid infinite wait in logical decoding when reading a partially-written WAL record (Vignesh C) §
If the server crashes after writing the first part of a WAL record that would span multiple pages, subsequent logical decoding of the WAL stream would wait for data to arrive on the next WAL page. That might never happen if the server is now idle.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid infinite wait in logical decoding when reading a partially-written WAL record
- Same changePostgreSQL 15.14 · Avoid infinite wait in logical decoding when reading a partially-written WAL record
- Same changePostgreSQL 14.19 · Avoid infinite wait in logical decoding when reading a partially-written WAL record
- Same changePostgreSQL 13.22 · Avoid infinite wait in logical decoding when reading a partially-written WAL record
Bug fixesFix inconsistent spelling of LWLock names for MultiXactOffsetSLRU and MultiXactMemberSLRU
Changes
Fix inconsistent spelling of LWLock names for MultiXactOffsetSLRU and MultiXactMemberSLRU (Bertrand Drouvot) §
This resulted in different wait-event names being displayed in pg_wait_events and pg_stat_activity, potentially breaking monitoring queries that join those views.
Bug fixesFix inconsistent quoting of role names in ACL strings
Changes
Fix inconsistent quoting of role names in ACL strings (Tom Lane) §
The previous quoting rule was locale-sensitive, which could lead to portability problems when transferring aclitem values across installations. (pg_dump does not do that, but other tools might.) To ensure consistency, always quote non-ASCII characters in aclitem output; but to preserve backward compatibility, never require that they be quoted during aclitem input.
Related records (4)
- Same changePostgreSQL 16.10 · Fix inconsistent quoting of role names in ACL strings
- Same changePostgreSQL 15.14 · Fix inconsistent quoting of role names in ACL strings
- Same changePostgreSQL 14.19 · Fix inconsistent quoting of role names in ACL strings
- Same changePostgreSQL 13.22 · Fix inconsistent quoting of role names in ACL strings
ImprovementsReject equal signs (=) in the names of relation options and foreign-data options
Changes
Reject equal signs (=) in the names of relation options and foreign-data options (Tom Lane) §
There's no evident use-case for option names like this, and allowing them creates ambiguity in the stored representation.
Related records (4)
- Same changePostgreSQL 16.10 · Reject equal signs (=) in the names of relation options and foreign-data options
- Same changePostgreSQL 15.14 · Reject equal signs (=) in the names of relation options and foreign-data options
- Same changePostgreSQL 14.19 · Reject equal signs (=) in the names of relation options and foreign-data options
- Same changePostgreSQL 13.22 · Reject equal signs (=) in the names of relation options and foreign-data options
Bug fixesFix potentially-incorrect decompression of LZ4-compressed archive data
Changes
Fix potentially-incorrect decompression of LZ4-compressed archive data (Mikhail Gribkov) §
This error seems to manifest only with not-very-compressible input data, which may explain why it escaped detection.
ImprovementsAvoid a rare scenario where a btree index scan could mark the wrong index entries as dead
Changes
Avoid a rare scenario where a btree index scan could mark the wrong index entries as dead (Peter Geoghegan) §
Related records (4)
- Same changePostgreSQL 16.10 · Avoid a rare scenario where a btree index scan could mark the wrong index entries as dead
- Same changePostgreSQL 15.14 · Avoid a rare scenario where a btree index scan could mark the wrong index entries as dead
- Same changePostgreSQL 14.19 · Avoid a rare scenario where a btree index scan could mark the wrong index entries as dead
- Same changePostgreSQL 13.22 · Avoid a rare scenario where a btree index scan could mark the wrong index entries as dead
ImprovementsAvoid re-distributing cache invalidation messages from other transactions during logical replication
Changes
Avoid re-distributing cache invalidation messages from other transactions during logical replication (vignesh C) §
Our previous round of minor releases included a bug fix to ensure that replication receiver processes would respond to cross-process cache invalidation messages, preventing them from using stale catalog data while performing replication updates. However, the fix unintentionally made them also redistribute those messages again, leading to an exponential increase in the number of invalidation messages, which would often end in a memory allocation failure. Fix by not redistributing received messages.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid re-distributing cache invalidation messages from other transactions during logical replication
- Same changePostgreSQL 15.14 · Avoid re-distributing cache invalidation messages from other transactions during logical replication
- Same changePostgreSQL 14.19 · Avoid re-distributing cache invalidation messages from other transactions during logical replication
- Same changePostgreSQL 13.22 · Avoid re-distributing cache invalidation messages from other transactions during logical replication
ImprovementsAvoid unexpected server shutdown when replication slot synchronization is misconfigured
Changes
Avoid unexpected server shutdown when replication slot synchronization is misconfigured (Fujii Masao) §
The postmaster process would report an error (and then stop) if sync_replication_slots was set to true while wal_level was less than logical. The desired behavior is just that slot synchronization should be disabled, so reduce this error message's level to avoid postmaster shutdown.
ImprovementsAvoid premature removal of old WAL during checkpoints
Changes
Avoid premature removal of old WAL during checkpoints (Vitaly Davydov) §
If a replication slot's restart point is advanced while a checkpoint is in progress, no-longer-needed WAL segments could get removed too soon, leading to recovery failure if the database crashes immediately afterwards. Fix by keeping them for one additional checkpoint cycle.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid premature removal of old WAL during checkpoints
- Same changePostgreSQL 15.14 · Avoid premature removal of old WAL during checkpoints
- Same changePostgreSQL 14.19 · Avoid premature removal of old WAL during checkpoints
- Same changePostgreSQL 13.22 · Avoid premature removal of old WAL during checkpoints
ImprovementsNever move a replication slot's confirmed-flush position backwards
Changes
Never move a replication slot's confirmed-flush position backwards (Shveta Malik) §
In some cases a replication client could acknowledge an LSN that's past what it has stored persistently, and then perhaps send an older LSN after a restart. We consider this not-a-bug so long as the client did not have anything it needed to do for the WAL between the two points. However, we should not re-send that WAL for fear of data duplication, so make sure we always believe the latest confirmed LSN for a given slot.
Related records (4)
- Same changePostgreSQL 16.10 · Never move a replication slot's confirmed-flush position backwards
- Same changePostgreSQL 15.14 · Never move a replication slot's confirmed-flush position backwards
- Same changePostgreSQL 14.19 · Never move a replication slot's confirmed-flush position backwards
- Same changePostgreSQL 13.22 · Never move a replication slot's confirmed-flush position backwards
ImprovementsPrevent excessive delays before launching new logical replication workers
Changes
Prevent excessive delays before launching new logical replication workers (Tom Lane) §
In some cases the logical replication launcher could sleep considerably longer than the configured wal_retrieve_retry_interval before launching a new worker.
Related records (1)
Bug fixesFix use-after-free during logical replication of INSERT ... ON CONFLICT
Changes
Fix use-after-free during logical replication of INSERT ... ON CONFLICT (Ethan Mertz, Michael Paquier) §
This could result in incorrect progress reporting, or with very bad luck it could result in a crash of the WAL sender process.
Related records (1)
ImprovementsAllow waiting for a transaction on a standby server to be interrupted
Changes
Allow waiting for a transaction on a standby server to be interrupted (Kevin K Biju) §
Creation of a replication slot on a standby server may require waiting for some active transaction(s) to finish on the primary and then be replayed on the standby. Since that could be an indefinite wait, it's desirable to allow the operation to be cancelled, but there was no check for query cancel in the loop.
Related records (4)
- Same changePostgreSQL 16.10 · Allow waiting for a transaction on a standby server to be interrupted
- Same changePostgreSQL 15.14 · Allow waiting for a transaction on a standby server to be interrupted
- Same changePostgreSQL 14.19 · Allow waiting for a transaction on a standby server to be interrupted
- Same changePostgreSQL 13.22 · Allow waiting for a transaction on a standby server to be interrupted
ImprovementsDo not let cascading logical WAL senders try to send data that's beyond what has been replayed on their standby server
Changes
Do not let cascading logical WAL senders try to send data that's beyond what has been replayed on their standby server (Alexey Makhmutov) §
This avoids a situation where such WAL senders could get stuck at standby server shutdown, waiting for replay work that will not happen because the server's startup process is already shut down.
Bug fixesFix per-relation memory leakage in autovacuum
Bug fixesFix session-lifespan memory leaks in XMLSERIALIZE(... INDENT)
Changes
Related records (1)
Bug fixesFix possible crash after out-of-memory when allocating large chunks with the “bump” allocator
Changes
Fix possible crash after out-of-memory when allocating large chunks with the “bump” allocator (Tom Lane) §
Bug fixesFix some places that might try to fetch toasted fields of system catalogs without any snapshot
Changes
Fix some places that might try to fetch toasted fields of system catalogs without any snapshot (Nathan Bossart) §
This could result in an assertion failure or “cannot fetch toast data without an active snapshot” error.
Related records (4)
- Same changePostgreSQL 16.10 · Fix some places that might try to fetch toasted fields of system catalogs without any snapshot
- Same changePostgreSQL 15.14 · Fix some places that might try to fetch toasted fields of system catalogs without any snapshot
- Same changePostgreSQL 14.19 · Fix some places that might try to fetch toasted fields of system catalogs without any snapshot
- Same changePostgreSQL 13.22 · Fix some places that might try to fetch toasted fields of system catalogs without any snapshot
ImprovementsAvoid assertion failure during cross-table constraint updates
Changes
Related records (4)
- Same changePostgreSQL 16.10 · Avoid assertion failure during cross-table constraint updates
- Same changePostgreSQL 15.14 · Avoid assertion failure during cross-table constraint updates
- Same changePostgreSQL 14.19 · Avoid assertion failure during cross-table constraint updates
- Same changePostgreSQL 13.22 · Avoid assertion failure during cross-table constraint updates
ImprovementsRemove faulty assertion that a command tag must have been determined by the end of PortalRunMulti()
Changes
Remove faulty assertion that a command tag must have been determined by the end of PortalRunMulti() (Álvaro Herrera) §
This failed in edge cases such as an empty prepared statement.
Related records (4)
- Same changePostgreSQL 16.10 · Remove faulty assertion that a command tag must have been determined by the end of PortalRunMulti()
- Same changePostgreSQL 15.14 · Remove faulty assertion that a command tag must have been determined by the end of PortalRunMulti()
- Same changePostgreSQL 14.19 · Remove faulty assertion that a command tag must have been determined by the end of PortalRunMulti()
- Same changePostgreSQL 13.22 · Remove faulty assertion that a command tag must have been determined by the end of PortalRunMulti()
Bug fixesFix assertion failure in XMLTABLE parsing
ImprovementsRestore the ability to run PL/pgSQL expressions in parallel
Changes
Restore the ability to run PL/pgSQL expressions in parallel (Dipesh Dhameliya) §
PL/pgSQL's notion of an “expression” is very broad, encompassing any SQL SELECT query that returns a single column and no more than one row. So there are cases, for example evaluation of an aggregate function, where the query involves significant work and it'd be useful to run it with parallel workers. This used to be possible, but a previous bug fix unintentionally disabled it.
Related records (4)
- Same changePostgreSQL 16.10 · Restore the ability to run PL/pgSQL expressions in parallel
- Same changePostgreSQL 15.14 · Restore the ability to run PL/pgSQL expressions in parallel
- Same changePostgreSQL 14.19 · Restore the ability to run PL/pgSQL expressions in parallel
- Same changePostgreSQL 13.22 · Restore the ability to run PL/pgSQL expressions in parallel
Bug fixesFix edge-case resource leaks in PL/Python error reporting
Changes
Fix edge-case resource leaks in PL/Python error reporting (Tom Lane) § §
An out-of-memory failure while reporting an error from Python could result in failure to drop reference counts on Python objects, leading to session-lifespan memory leakage.
Related records (4)
- Same changePostgreSQL 16.10 · Fix edge-case resource leaks in PL/Python error reporting
- Same changePostgreSQL 15.14 · Fix edge-case resource leaks in PL/Python error reporting
- Same changePostgreSQL 14.19 · Fix edge-case resource leaks in PL/Python error reporting
- Same changePostgreSQL 13.22 · Fix edge-case resource leaks in PL/Python error reporting
Bug fixesFix libpq's PQcancelCreate() function for the case where the server's address was specified using hostaddr
Changes
Fix libpq's PQcancelCreate() function for the case where the server's address was specified using hostaddr (Sergei Kornilov) §
libpq would crash if the resulting cancel object was actually used.
Bug fixesFix libpq's PQport() function to never return NULL unless the passed connection is NULL
Changes
Fix libpq's PQport() function to never return NULL unless the passed connection is NULL (Daniele Varrazzo) §
This is the documented behavior, but recent libpq versions would return NULL in some cases where the user had not provided a port specification. Revert to our historical behavior of returning an empty string in such cases. (v18 and later will return the compiled-in default port number, typically "5432", instead.)
Related records (4)
- Same changePostgreSQL 16.10 · Fix libpq's PQport() function to never return NULL unless the passed connection is NULL
- Same changePostgreSQL 15.14 · Fix libpq's PQport() function to never return NULL unless the passed connection is NULL
- Same changePostgreSQL 14.19 · Fix libpq's PQport() function to never return NULL unless the passed connection is NULL
- Same changePostgreSQL 13.22 · Fix libpq's PQport() function to never return NULL unless the passed connection is NULL
ImprovementsAvoid failure when GSSAPI authentication requires packets larger than 16kB
Changes
Avoid failure when GSSAPI authentication requires packets larger than 16kB (Jacob Champion, Tom Lane) §
Larger authentication packets are needed for Active Directory users who belong to many AD groups. This limitation manifested in connection failures with unintelligible error messages, typically “GSSAPI context establishment error: The routine must be called again to complete its function: Unknown error”.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid failure when GSSAPI authentication requires packets larger than 16kB
- Same changePostgreSQL 15.14 · Avoid failure when GSSAPI authentication requires packets larger than 16kB
- Same changePostgreSQL 14.19 · Avoid failure when GSSAPI authentication requires packets larger than 16kB
- Same changePostgreSQL 13.22 · Avoid failure when GSSAPI authentication requires packets larger than 16kB
Bug fixesFix timing-dependent failures in SSL and GSSAPI data transmission
Changes
Fix timing-dependent failures in SSL and GSSAPI data transmission (Tom Lane) §
When using SSL or GSSAPI encryption in non-blocking mode, libpq sometimes failed with “SSL error: bad length” or “GSSAPI caller failed to retransmit all data needing to be retried”.
Related records (4)
- Same changePostgreSQL 16.10 · Fix timing-dependent failures in SSL and GSSAPI data transmission
- Same changePostgreSQL 15.14 · Fix timing-dependent failures in SSL and GSSAPI data transmission
- Same changePostgreSQL 14.19 · Fix timing-dependent failures in SSL and GSSAPI data transmission
- Same changePostgreSQL 13.22 · Fix timing-dependent failures in SSL and GSSAPI data transmission
ImprovementsAvoid null-pointer dereference during connection lookup in ecpg applications
Changes
Avoid null-pointer dereference during connection lookup in ecpg applications (Aleksander Alekseev) §
The case could occur only if the application has some connections that are named and some that are not.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid null-pointer dereference during connection lookup in ecpg applications
- Same changePostgreSQL 15.14 · Avoid null-pointer dereference during connection lookup in ecpg applications
- Same changePostgreSQL 14.19 · Avoid null-pointer dereference during connection lookup in ecpg applications
- Same changePostgreSQL 13.22 · Avoid null-pointer dereference during connection lookup in ecpg applications
ImprovementsImprove psql's tab completion for COPY and \copy options
Changes
Improve psql's tab completion for COPY and \copy options (Atsushi Torikoshi) §
The same completions were offered for both COPY FROM and COPY TO, although some options are only valid for one case or the other. Distinguish these cases to provide more accurate suggestions.
ImprovementsAvoid assertion failure in pgbench when multiple pipeline sync messages are received
Changes
Avoid assertion failure in pgbench when multiple pipeline sync messages are received (Fujii Masao) §
Bug fixesFix duplicate transaction replay when initializing a subscription with pg_createsubscriber
Changes
Fix duplicate transaction replay when initializing a subscription with pg_createsubscriber (Shlok Kyal) §
It was possible for the last transaction processed during subscriber recovery to be sent again once normal replication begins.
ImprovementsEnsure that pg_dump dumps comments on not-null constraints on domain types
Changes
Ensure that pg_dump dumps comments on not-null constraints on domain types (Jian He, Álvaro Herrera) §
ImprovementsEnsure that pg_dump dumps comments on domain constraints in a valid order
Changes
Ensure that pg_dump dumps comments on domain constraints in a valid order (Jian He) §
In some cases the comment command could appear before creation of the constraint.
Related records (4)
- Same changePostgreSQL 16.10 · Ensure that pg_dump dumps comments on domain constraints in a valid order
- Same changePostgreSQL 15.14 · Ensure that pg_dump dumps comments on domain constraints in a valid order
- Same changePostgreSQL 14.19 · Ensure that pg_dump dumps comments on domain constraints in a valid order
- Same changePostgreSQL 13.22 · Ensure that pg_dump dumps comments on domain constraints in a valid order
ImprovementsEnsure stable sort ordering in pg_dump for all types of database objects
Changes
Ensure stable sort ordering in pg_dump for all types of database objects (Noah Misch, Andreas Karlsson) § § §
pg_dump sorts objects by their logical names before performing dependency-driven reordering. This sort did not account for the full unique key identifying certain object types such as rules and constraints, and thus it could produce dissimilar sort orders for logically-identical databases. That made it difficult to compare databases by diff'ing pg_dump output, so improve the logic to ensure stable sort ordering in all cases.
Related records (4)
- Same changePostgreSQL 16.10 · Ensure stable sort ordering in pg_dump for all types of database objects
- Same changePostgreSQL 15.14 · Ensure stable sort ordering in pg_dump for all types of database objects
- Same changePostgreSQL 14.19 · Ensure stable sort ordering in pg_dump for all types of database objects
- Same changePostgreSQL 13.22 · Ensure stable sort ordering in pg_dump for all types of database objects
Bug fixesFix incorrect parsing of object types in pg_dump filter files
Changes
Fix incorrect parsing of object types in pg_dump filter files (Fujii Masao) §
Treat keywords as extending to the next whitespace, rather than stopping at the first non-alphanumeric character as before. This makes no difference for valid keywords, but it allows some error cases to be recognized properly. For example, table-data will now be rejected, whereas previously it was misinterpreted as table.
Improvementspg_restore failed to restore large objects (BLOBs) from directory-format dumps made by pg_dump versions before PostgreSQL v12
Changes
pg_restore failed to restore large objects (BLOBs) from directory-format dumps made by pg_dump versions before PostgreSQL v12 (Pavel Stehule) §
ImprovementsIn pg_upgrade, check for inconsistent inherited not-null constraints
Changes
In pg_upgrade, check for inconsistent inherited not-null constraints (Ali Akbar) § § §
PostgreSQL versions before 18 allow an inherited column not-null constraint to be dropped. However, this results in a schema that cannot be restored, leading to failure in pg_upgrade. Detect such cases during pg_upgrade's preflight checks to allow users to fix them before initiating the upgrade.
Related records (4)
- Same changePostgreSQL 16.10 · In pg_upgrade, check for inconsistent inherited not-null constraints
- Same changePostgreSQL 15.14 · In pg_upgrade, check for inconsistent inherited not-null constraints
- Same changePostgreSQL 14.19 · In pg_upgrade, check for inconsistent inherited not-null constraints
- Same changePostgreSQL 13.22 · In pg_upgrade, check for inconsistent inherited not-null constraints
ImprovementsDon't require that the target installation have max_slot_wal_keep_size set to its default during pg_upgrade
Changes
Don't require that the target installation have max_slot_wal_keep_size set to its default during pg_upgrade (Dilip Kumar) §
ImprovementsAvoid assertion failure if track_commit_timestamp is enabled during initdb
Changes
Avoid assertion failure if track_commit_timestamp is enabled during initdb (Hayato Kuroda, Andy Fan) §
Related records (4)
- Same changePostgreSQL 16.10 · Avoid assertion failure if track_commit_timestamp is enabled during initdb
- Same changePostgreSQL 15.14 · Avoid assertion failure if track_commit_timestamp is enabled during initdb
- Same changePostgreSQL 14.19 · Avoid assertion failure if track_commit_timestamp is enabled during initdb
- Same changePostgreSQL 13.22 · Avoid assertion failure if track_commit_timestamp is enabled during initdb
Bug fixesFix pg_waldump to show information about dropped statistics in PREPARE TRANSACTION WAL records
Changes
Fix pg_waldump to show information about dropped statistics in PREPARE TRANSACTION WAL records (Daniil Davydov) §
Bug fixesAvoid possible leak of the open connection during contrib/dblink connection establishment
Changes
Avoid possible leak of the open connection during contrib/dblink connection establishment (Tom Lane) §
In the rare scenario where we hit out-of-memory while inserting the new connection object into dblink's hashtable, the open connection would be leaked until end of session, leaving an idle session sitting on the remote server.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid possible leak of the open connection during contrib/dblink connection establishment
- Same changePostgreSQL 15.14 · Avoid possible leak of the open connection during contrib/dblink connection establishment
- Same changePostgreSQL 14.19 · Avoid possible leak of the open connection during contrib/dblink connection establishment
- Same changePostgreSQL 13.22 · Avoid possible leak of the open connection during contrib/dblink connection establishment
ImprovementsMake contrib/pg_prewarm cope with very large shared_buffers settings
Changes
Make contrib/pg_prewarm cope with very large shared_buffers settings (Daria Shanina) §
Autoprewarm failed with a memory allocation error if shared_buffers was larger than about 50 million buffers (400GB).
Related records (4)
- Same changePostgreSQL 16.10 · Make contrib/pg_prewarm cope with very large shared_buffers settings
- Same changePostgreSQL 15.14 · Make contrib/pg_prewarm cope with very large shared_buffers settings
- Same changePostgreSQL 14.19 · Make contrib/pg_prewarm cope with very large shared_buffers settings
- Same changePostgreSQL 13.22 · Make contrib/pg_prewarm cope with very large shared_buffers settings
ImprovementsPrevent assertion failure in contrib/pg_prewarm
Changes
Prevent assertion failure in contrib/pg_prewarm (Masahiro Ikeda) §
Applying pg_prewarm() to a relation lacking storage (such as a view) caused an assertion failure, although there was no ill effect in non-assert builds. Add an error check to reject that case.
ImprovementsIn contrib/pg_stat_statements, avoid leaving gaps in the set of parameter numbers used in a normalized query
Changes
In contrib/pg_stat_statements, avoid leaving gaps in the set of parameter numbers used in a normalized query (Sami Imseih) §
Related records (4)
- Same changePostgreSQL 16.10 · In contrib/pg_stat_statements, avoid leaving gaps in the set of parameter numbers used in a normalized query
- Same changePostgreSQL 15.14 · In contrib/pg_stat_statements, avoid leaving gaps in the set of parameter numbers used in a normalized query
- Same changePostgreSQL 14.19 · In contrib/pg_stat_statements, avoid leaving gaps in the set of parameter numbers used in a normalized query
- Same changePostgreSQL 13.22 · In contrib/pg_stat_statements, avoid leaving gaps in the set of parameter numbers used in a normalized query
Bug fixesFix memory leakage in contrib/postgres_fdw's DirectModify methods
Changes
Fix memory leakage in contrib/postgres_fdw's DirectModify methods (Tom Lane) §
The PGresult holding the results of the remote modify command would be leaked for the rest of the session if the query fails between invocations of the DirectModify methods, which could happen when there's RETURNING data to process.
Related records (4)
- Same changePostgreSQL 16.10 · Fix memory leakage in contrib/postgres_fdw's DirectModify methods
- Same changePostgreSQL 15.14 · Fix memory leakage in contrib/postgres_fdw's DirectModify methods
- Same changePostgreSQL 14.19 · Fix memory leakage in contrib/postgres_fdw's DirectModify methods
- Same changePostgreSQL 13.22 · Fix memory leakage in contrib/postgres_fdw's DirectModify methods
ImprovementsEnsure that directories listed in configure's --with-includes and --with-libraries options are searched before system-supplied directories
Changes
Ensure that directories listed in configure's --with-includes and --with-libraries options are searched before system-supplied directories (Tom Lane) §
A common reason for using these options is to allow a user-built version of some library to override the system-supplied version. However, that failed to work in some environments because of careless ordering of switches in the commands issued by the makefiles.
Related records (4)
- Same changePostgreSQL 16.10 · Ensure that directories listed in configure's --with-includes and --with-libraries options are searched before system-supplied directories
- Same changePostgreSQL 15.14 · Ensure that directories listed in configure's --with-includes and --with-libraries options are searched before system-supplied directories
- Same changePostgreSQL 14.19 · Ensure that directories listed in configure's --with-includes and --with-libraries options are searched before system-supplied directories
- Same changePostgreSQL 13.22 · Ensure that directories listed in configure's --with-includes and --with-libraries options are searched before system-supplied directories
Bug fixesFix configure's checks for __cpuid() and __cpuidex()
Changes
Fix configure's checks for __cpuid() and __cpuidex() (Lukas Fittl, Michael Paquier) §
configure failed to detect these Windows-specific functions, so that they would not be used, leading to slower-than-necessary CRC computations since the availability of hardware instructions could not be verified. The practical impact of this error was limited, because production builds for Windows typically do not use the Autoconf toolchain.
Related records (4)
- Same changePostgreSQL 16.10 · Fix configure's checks for __cpuid() and __cpuidex()
- Same changePostgreSQL 15.14 · Fix configure's checks for __cpuid() and __cpuidex()
- Same changePostgreSQL 14.19 · Fix configure's checks for __cpuid() and __cpuidex()
- Same changePostgreSQL 13.22 · Fix configure's checks for __cpuid() and __cpuidex()
Bug fixesFix build failure with --with-pam option on Solaris-based platforms
Changes
Fix build failure with --with-pam option on Solaris-based platforms (Tom Lane) §
Solaris is inconsistent with other Unix platforms about the API for PAM authentication. This manifested as an “inconsistent pointer” compiler warning, which we never did anything about. But as of GCC 14 it's an error not warning by default, so fix it.
Related records (4)
- Same changePostgreSQL 16.10 · Fix build failure with --with-pam option on Solaris-based platforms
- Same changePostgreSQL 15.14 · Fix build failure with --with-pam option on Solaris-based platforms
- Same changePostgreSQL 14.19 · Fix build failure with --with-pam option on Solaris-based platforms
- Same changePostgreSQL 13.22 · Fix build failure with --with-pam option on Solaris-based platforms
ImprovementsMake our code portable to GNU Hurd
ImprovementsMake our usage of memset_s() conform strictly to the C11 standard
Changes
Make our usage of memset_s() conform strictly to the C11 standard (Tom Lane) §
This avoids compile failures on some platforms.
Related records (4)
- Same changePostgreSQL 16.10 · Make our usage of memset_s() conform strictly to the C11 standard
- Same changePostgreSQL 15.14 · Make our usage of memset_s() conform strictly to the C11 standard
- Same changePostgreSQL 14.19 · Make our usage of memset_s() conform strictly to the C11 standard
- Same changePostgreSQL 13.22 · Make our usage of memset_s() conform strictly to the C11 standard
ImprovementsSilence compatibility warning when using Meson to build with MSVC
Changes
Silence compatibility warning when using Meson to build with MSVC (Peter Eisentraut) §
Related records (1)
ImprovementsPrevent uninitialized-value compiler warnings in JSONB comparison code
Changes
Prevent uninitialized-value compiler warnings in JSONB comparison code (Tom Lane) §
Related records (4)
- Same changePostgreSQL 16.10 · Prevent uninitialized-value compiler warnings in JSONB comparison code
- Same changePostgreSQL 15.14 · Prevent uninitialized-value compiler warnings in JSONB comparison code
- Same changePostgreSQL 14.19 · Prevent uninitialized-value compiler warnings in JSONB comparison code
- Same changePostgreSQL 13.22 · Prevent uninitialized-value compiler warnings in JSONB comparison code
ImprovementsAvoid deprecation warnings when building with libxml2 2.14 and later
Changes
Avoid deprecation warnings when building with libxml2 2.14 and later (Michael Paquier) §
Related records (4)
- Same changePostgreSQL 16.10 · Avoid deprecation warnings when building with libxml2 2.14 and later
- Same changePostgreSQL 15.14 · Avoid deprecation warnings when building with libxml2 2.14 and later
- Same changePostgreSQL 14.19 · Avoid deprecation warnings when building with libxml2 2.14 and later
- Same changePostgreSQL 13.22 · Avoid deprecation warnings when building with libxml2 2.14 and later
ImprovementsAvoid problems when compiling pg_locale.h under C++
Changes
Avoid problems when compiling pg_locale.h under C++ (John Naylor) §
PostgreSQL header files generally need to be wrapped in extern "C" { ... } in order to be included in extensions written in C++. This failed for pg_locale.h because of its use of libicu headers, but we can work around that by suppressing C++-only declarations in those headers. C++ extensions that want to use libicu's C++ APIs can do so by including the libicu headers ahead of pg_locale.h.
Related records (4)
- Same changePostgreSQL 16.10 · Avoid problems when compiling pg_locale.h under C++
- Same changePostgreSQL 15.14 · Avoid problems when compiling pg_locale.h under C++
- Same changePostgreSQL 14.19 · Avoid problems when compiling pg_locale.h under C++
- Same changePostgreSQL 13.22 · Avoid problems when compiling pg_locale.h under C++
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.