DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 17.3 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.3
2025-02-13
17.3stableSupport ends 2029-11-08
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2025-1094 Harden PQescapeString and allied functions against invalidly-encoded input strings | 17.3 | Recorded fix |
PostgreSQL 17.3
Migration and compatibility
A dump/restore is not required for those running 17.X.
However, if you are upgrading from a version earlier than 17.1, see Section E.11.
SecurityHarden PQescapeString and allied functions against invalidly-encoded input strings
Changes
Harden PQescapeString and allied functions against invalidly-encoded input strings (Andres Freund, Noah Misch) § § § § § §
Data-quoting functions supplied by libpq now fully check the encoding validity of their input. If invalid characters are detected, they report an error if possible. For the ones that lack an error return convention, the output string is adjusted to ensure that the server will report invalid encoding and no intervening processing will be fooled by bytes that might happen to match single quote, backslash, etc.
The purpose of this change is to guard against SQL-injection attacks that are possible if one of these functions is used to quote crafted input. There is no hazard when the resulting string is sent directly to a PostgreSQL server (which would check its encoding anyway), but there is a risk when it is passed through psql or other client-side code. Historically such code has not carefully vetted encoding, and in many cases it's not clear what it should do if it did detect such a problem.
This fix is effective only if the data-quoting function, the server, and any intermediate processing agree on the character encoding that's being used. Applications that insert untrusted input into SQL commands should take special care to ensure that that's true.
Applications and drivers that quote untrusted input without using these libpq functions may be at risk of similar problems. They should first confirm the data is valid in the encoding expected by the server.
The PostgreSQL Project thanks Stephen Fewer for reporting this problem. (CVE-2025-1094)
Related records (4)
- Same changePostgreSQL 16.7 · Harden PQescapeString and allied functions against invalidly-encoded input strings
- Same changePostgreSQL 15.11 · Harden PQescapeString and allied functions against invalidly-encoded input strings
- Same changePostgreSQL 14.16 · Harden PQescapeString and allied functions against invalidly-encoded input strings
- Same changePostgreSQL 13.19 · Harden PQescapeString and allied functions against invalidly-encoded input strings
ImprovementsRestore auto-truncation of database and user names appearing in connection requests
Changes
Restore auto-truncation of database and user names appearing in connection requests (Nathan Bossart) §
This reverts a v17 change that proved to cause trouble for some users. Over-length names should be truncated in an encoding-aware fashion, but for now just return to the former behavior of blind truncation at NAMEDATALEN-1 bytes.
ImprovementsExclude parallel workers from connection privilege checks and limits
Changes
Exclude parallel workers from connection privilege checks and limits (Tom Lane) §
Do not check datallowconn, rolcanlogin, and ACL_CONNECT privileges when starting a parallel worker, instead assuming that it's enough for the leader process to have passed similar checks originally. This avoids, for example, unexpected failures of parallelized queries when the leader is running as a role that lacks login privilege. In the same vein, enforce ReservedConnections, datconnlimit, and rolconnlimit limits only against regular backends, and count only regular backends while checking if the limits were already reached. Those limits are meant to prevent excessive consumption of process slots for regular backends --- but parallel workers and other special processes have their own pools of process slots with their own limit checks.
Related records (4)
- Same changePostgreSQL 16.7 · Exclude parallel workers from connection privilege checks and limits
- Same changePostgreSQL 15.11 · Exclude parallel workers from connection privilege checks and limits
- Same changePostgreSQL 14.16 · Exclude parallel workers from connection privilege checks and limits
- Same changePostgreSQL 13.19 · Exclude parallel workers from connection privilege checks and limits
ImprovementsDrop “Lock” suffix from LWLock wait event names
Changes
Drop “Lock” suffix from LWLock wait event names (Bertrand Drouvot) §
Refactoring unintentionally caused the pg_stat_activity view to show lock-related wait event names with a “Lock” suffix, which among other things broke joining it to pg_wait_events.
Bug fixesFix possible failure to return all matching tuples for a btree index scan with a ScalarArrayOp (= ANY) condition
Changes
Fix possible failure to return all matching tuples for a btree index scan with a ScalarArrayOp (= ANY) condition (Peter Geoghegan) §
Bug fixesFix possible re-use of stale results in window aggregates
Changes
Fix possible re-use of stale results in window aggregates (David Rowley) §
A window aggregate with a “run condition” optimization and a pass-by-reference result type might incorrectly return the result from the previous partition instead of performing a fresh calculation.
Related records (2)
ImprovementsKeep TransactionXmin in sync with MyProc->xmin
Changes
Keep TransactionXmin in sync with MyProc->xmin (Heikki Linnakangas) §
This oversight could permit a process to try to access data that had already been vacuumed away. One known consequence is transient “could not access status of transaction” errors.
Related records (4)
- Same changePostgreSQL 16.7 · Keep TransactionXmin in sync with MyProc->xmin
- Same changePostgreSQL 15.11 · Keep TransactionXmin in sync with MyProc->xmin
- Same changePostgreSQL 14.16 · Keep TransactionXmin in sync with MyProc->xmin
- Same changePostgreSQL 13.19 · Keep TransactionXmin in sync with MyProc->xmin
Bug fixesFix race condition that could cause failure to add a newly-inserted catalog entry to a catalog cache list
Changes
Fix race condition that could cause failure to add a newly-inserted catalog entry to a catalog cache list (Heikki Linnakangas) §
This could result, for example, in failure to use a newly-created function within an existing session.
Related records (4)
- Same changePostgreSQL 16.7 · Fix race condition that could cause failure to add a newly-inserted catalog entry to a catalog cache list
- Same changePostgreSQL 15.11 · Fix race condition that could cause failure to add a newly-inserted catalog entry to a catalog cache list
- Same changePostgreSQL 14.16 · Fix race condition that could cause failure to add a newly-inserted catalog entry to a catalog cache list
- Same changePostgreSQL 13.19 · Fix race condition that could cause failure to add a newly-inserted catalog entry to a catalog cache list
Bug fixesPrevent possible catalog corruption when a system catalog is vacuumed concurrently with an update
Changes
Prevent possible catalog corruption when a system catalog is vacuumed concurrently with an update (Noah Misch) § §
Related records (4)
- Same changePostgreSQL 16.7 · Prevent possible catalog corruption when a system catalog is vacuumed concurrently with an update
- Same changePostgreSQL 15.11 · Prevent possible catalog corruption when a system catalog is vacuumed concurrently with an update
- Same changePostgreSQL 14.16 · Prevent possible catalog corruption when a system catalog is vacuumed concurrently with an update
- Same changePostgreSQL 13.19 · Prevent possible catalog corruption when a system catalog is vacuumed concurrently with an update
Bug fixesFix data corruption when relation truncation fails
Changes
Fix data corruption when relation truncation fails (Thomas Munro) § § §
The filesystem calls needed to perform relation truncation could fail, leaving inconsistent state on disk (for example, effectively reviving deleted data). We can't really prevent that, but we can recover by dint of making such failures into PANICs, so that consistency is restored by replaying from WAL up to just before the attempted truncation. This isn't a hugely desirable behavior, but such failures are rare enough that it seems an acceptable solution.
Related records (4)
- Same changePostgreSQL 16.7 · Fix data corruption when relation truncation fails
- Same changePostgreSQL 15.11 · Fix data corruption when relation truncation fails
- Same changePostgreSQL 14.16 · Fix data corruption when relation truncation fails
- Same changePostgreSQL 13.19 · Fix data corruption when relation truncation fails
ImprovementsPrevent checkpoints from starting during relation truncation
Changes
Prevent checkpoints from starting during relation truncation (Robert Haas) §
This avoids a race condition wherein the modified file might not get fsync'd before completing the checkpoint, creating a risk of data corruption if the operating system crashes soon after.
Related records (4)
- Same changePostgreSQL 16.7 · Prevent checkpoints from starting during relation truncation
- Same changePostgreSQL 15.11 · Prevent checkpoints from starting during relation truncation
- Same changePostgreSQL 14.16 · Prevent checkpoints from starting during relation truncation
- Same changePostgreSQL 13.19 · Prevent checkpoints from starting during relation truncation
ImprovementsAvoid possibly losing an update of pg_database.datfrozenxid when VACUUM runs concurrently with a REASSIGN OWNED that changes that database's owner
Changes
Avoid possibly losing an update of pg_database.datfrozenxid when VACUUM runs concurrently with a REASSIGN OWNED that changes that database's owner (Kirill Reshke) §
Related records (4)
- Same changePostgreSQL 16.7 · Avoid possibly losing an update of pg_database.datfrozenxid when VACUUM runs concurrently with a REASSIGN OWNED that changes that database's owner
- Same changePostgreSQL 15.11 · Avoid possibly losing an update of pg_database.datfrozenxid when VACUUM runs concurrently with a REASSIGN OWNED that changes that database's owner
- Same changePostgreSQL 14.16 · Avoid possibly losing an update of pg_database.datfrozenxid when VACUUM runs concurrently with a REASSIGN OWNED that changes that database's owner
- Same changePostgreSQL 13.19 · Avoid possibly losing an update of pg_database.datfrozenxid when VACUUM runs concurrently with a REASSIGN OWNED that changes that database's owner
Bug fixesFix incorrect tg_updatedcols values passed to AFTER UPDATE triggers
Changes
Fix incorrect tg_updatedcols values passed to AFTER UPDATE triggers (Tom Lane) §
In some cases the tg_updatedcols bitmap could describe the set of columns updated by an earlier command in the same transaction, fooling the trigger into doing the wrong thing.
Also, prevent memory bloat caused by making too many copies of the tg_updatedcols bitmap.
Related records (4)
- Same changePostgreSQL 16.7 · Fix incorrect tg_updatedcols values passed to AFTER UPDATE triggers
- Same changePostgreSQL 15.11 · Fix incorrect tg_updatedcols values passed to AFTER UPDATE triggers
- Same changePostgreSQL 14.16 · Fix incorrect tg_updatedcols values passed to AFTER UPDATE triggers
- Same changePostgreSQL 13.19 · Fix incorrect tg_updatedcols values passed to AFTER UPDATE triggers
Bug fixesFix detach of a partition that has its own foreign-key constraint referencing a partitioned table
Changes
Fix detach of a partition that has its own foreign-key constraint referencing a partitioned table (Amul Sul) §
In common cases, foreign keys are defined on a partitioned table's top level; but if instead one is defined on a partition and references a partitioned table, and the referencing partition is detached, the relevant pg_constraint entries were updated incorrectly. This led to errors like “could not find ON INSERT check triggers of foreign key constraint”.
Bug fixesFix pg_get_constraintdef's support for NOT NULL constraints on domains
Changes
Fix pg_get_constraintdef's support for NOT NULL constraints on domains (Álvaro Herrera) §
Bug fixesFix mis-processing of to_timestamp's FFn format codes
Changes
Fix mis-processing of to_timestamp's FF format codes (Tom Lane) §n
An integer format code immediately preceding FF would consume all available digits, leaving none for nFF.n
Related records (4)
- Same changePostgreSQL 16.7 · Fix mis-processing of to_timestamp's FFn format codes
- Same changePostgreSQL 15.11 · Fix mis-processing of to_timestamp's FFn format codes
- Same changePostgreSQL 14.16 · Fix mis-processing of to_timestamp's FFn format codes
- Same changePostgreSQL 13.19 · Fix mis-processing of to_timestamp's FFn format codes
ImprovementsWhen deparsing a PASSING clause in a SQL/JSON query function, ensure that variable names are double-quoted when necessary
Changes
When deparsing a PASSING clause in a SQL/JSON query function, ensure that variable names are double-quoted when necessary (Dean Rasheed) §
ImprovementsWhen deparsing an XMLTABLE() expression, ensure that XML namespace names are double-quoted when necessary
Changes
When deparsing an XMLTABLE() expression, ensure that XML namespace names are double-quoted when necessary (Dean Rasheed) §
Related records (4)
- Same changePostgreSQL 16.7 · When deparsing an XMLTABLE() expression, ensure that XML namespace names are double-quoted when necessary
- Same changePostgreSQL 15.11 · When deparsing an XMLTABLE() expression, ensure that XML namespace names are double-quoted when necessary
- Same changePostgreSQL 14.16 · When deparsing an XMLTABLE() expression, ensure that XML namespace names are double-quoted when necessary
- Same changePostgreSQL 13.19 · When deparsing an XMLTABLE() expression, ensure that XML namespace names are double-quoted when necessary
ImprovementsInclude the ldapscheme option in pg_hba_file_rules() output
Changes
Related records (4)
- Same changePostgreSQL 16.7 · Include the ldapscheme option in pg_hba_file_rules() output
- Same changePostgreSQL 15.11 · Include the ldapscheme option in pg_hba_file_rules() output
- Same changePostgreSQL 14.16 · Include the ldapscheme option in pg_hba_file_rules() output
- Same changePostgreSQL 13.19 · Include the ldapscheme option in pg_hba_file_rules() output
Bug fixesFix planning of pre-sorted UNION operations for cases where the input column datatypes don't all match
Changes
Fix planning of pre-sorted UNION operations for cases where the input column datatypes don't all match (David Rowley) §
This error could lead to sorting data with the wrong sort operator, with consequences ranging from no visible problem to core dumps.
ImprovementsDon't merge UNION operations if their column collations aren't consistent
Changes
Don't merge UNION operations if their column collations aren't consistent (Tom Lane) §
Previously we ignored collations when deciding if it's safe to merge UNION steps into a single N-way UNION operation. This was arguably valid before the introduction of nondeterministic collations, but it's not anymore, since the collation in use can affect the definition of uniqueness.
Related records (4)
- Same changePostgreSQL 16.7 · Don't merge UNION operations if their column collations aren't consistent
- Same changePostgreSQL 15.11 · Don't merge UNION operations if their column collations aren't consistent
- Same changePostgreSQL 14.16 · Don't merge UNION operations if their column collations aren't consistent
- Same changePostgreSQL 13.19 · Don't merge UNION operations if their column collations aren't consistent
ImprovementsPrevent “wrong varnullingrels” planner errors after pulling up a subquery that's underneath an outer join
ImprovementsIgnore nulling-relation marker bits when looking up statistics
Changes
Ignore nulling-relation marker bits when looking up statistics (Richard Guo) §
This oversight could lead to failure to use relevant statistics about expressions, or to “corrupt MVNDistinct entry” errors.
Related records (1)
Bug fixesFix missed expression processing for partition pruning steps
Changes
Fix missed expression processing for partition pruning steps (Tom Lane) §
This oversight could lead to “unrecognized node type” errors, and perhaps other problems, in queries accessing partitioned tables.
Related records (4)
- Same changePostgreSQL 16.7 · Fix missed expression processing for partition pruning steps
- Same changePostgreSQL 15.11 · Fix missed expression processing for partition pruning steps
- Same changePostgreSQL 14.16 · Fix missed expression processing for partition pruning steps
- Same changePostgreSQL 13.19 · Fix missed expression processing for partition pruning steps
ImprovementsGive the slotsync worker process its own process slot
Changes
Give the slotsync worker process its own process slot (Tom Lane, Hou Zhijie) §
This was overlooked in the addition of the slotsync worker, with the result that its process slot effectively came out of the pool meant for regular backend processes. This could result in failure to launch the worker, or to subsequent failures of connection requests that should have succeeded according to the configured settings, if the number of regular backend processes approached max_connections.
ImprovementsAllow dshash tables to grow past 1GB
Changes
Allow dshash tables to grow past 1GB (Matthias van de Meent) §
This avoids errors like “invalid DSA memory alloc request size”. The case can occur for example in transactions that process several million tables.
Related records (4)
Bug fixesAvoid possible integer overflow in bringetbitmap()
Changes
Avoid possible integer overflow in bringetbitmap() (James Hunter, Evgeniy Gorbanyov) §
Since the result is only used for statistical purposes, the effects of this error were mostly cosmetic.
Related records (4)
- Same changePostgreSQL 16.7 · Avoid possible integer overflow in bringetbitmap()
- Same changePostgreSQL 15.11 · Avoid possible integer overflow in bringetbitmap()
- Same changePostgreSQL 14.16 · Avoid possible integer overflow in bringetbitmap()
- Same changePostgreSQL 13.19 · Avoid possible integer overflow in bringetbitmap()
Bug fixesCorrect miscalculation of SLRU bank numbers
Changes
Correct miscalculation of SLRU bank numbers (Yura Sokolov) §
This error led to using a smaller number of banks than intended, causing more contention but no functional misbehavior.
ImprovementsEnsure that an already-set process latch doesn't prevent the postmaster from noticing socket events
Changes
Ensure that an already-set process latch doesn't prevent the postmaster from noticing socket events (Thomas Munro) §
An extremely heavy workload of backends launching workers and workers exiting could prevent the postmaster from responding to incoming client connections in a timely fashion.
Related records (1)
ImprovementsPrevent streaming standby servers from looping infinitely when reading a WAL record that crosses pages
Changes
Prevent streaming standby servers from looping infinitely when reading a WAL record that crosses pages (Kyotaro Horiguchi, Alexander Kukushkin) §
This would happen when the record's continuation is on a page that needs to be read from a different WAL source.
Related records (4)
- Same changePostgreSQL 16.7 · Prevent streaming standby servers from looping infinitely when reading a WAL record that crosses pages
- Same changePostgreSQL 15.11 · Prevent streaming standby servers from looping infinitely when reading a WAL record that crosses pages
- Same changePostgreSQL 14.16 · Prevent streaming standby servers from looping infinitely when reading a WAL record that crosses pages
- Same changePostgreSQL 13.19 · Prevent streaming standby servers from looping infinitely when reading a WAL record that crosses pages
Bug fixesFix unintended promotion of FATAL errors to PANIC during early process startup
Changes
Fix unintended promotion of FATAL errors to PANIC during early process startup (Noah Misch) §
This fixes some unlikely cases that would result in “PANIC: proc_exit() called in child process”.
Related records (4)
- Same changePostgreSQL 16.7 · Fix unintended promotion of FATAL errors to PANIC during early process startup
- Same changePostgreSQL 15.11 · Fix unintended promotion of FATAL errors to PANIC during early process startup
- Same changePostgreSQL 14.16 · Fix unintended promotion of FATAL errors to PANIC during early process startup
- Same changePostgreSQL 13.19 · Fix unintended promotion of FATAL errors to PANIC during early process startup
Bug fixesFix cases where an operator family member operator or support procedure could become a dangling reference
Changes
Fix cases where an operator family member operator or support procedure could become a dangling reference (Tom Lane) § §
In some cases a data type could be dropped while references to its OID still remain in pg_amop or pg_amproc. While that caused no immediate issues, an attempt to drop the owning operator family would fail, and pg_dump would produce bogus output when dumping the operator family. This fix causes creation and modification of operator families/classes to add needed dependency entries so that dropping a data type will also drop any dependent operator family elements. That does not help vulnerable pre-existing operator families, though, so a band-aid has also been added to DROP OPERATOR FAMILY to prevent failure when dropping a family that has dangling members.
Related records (4)
- Same changePostgreSQL 16.7 · Fix cases where an operator family member operator or support procedure could become a dangling reference
- Same changePostgreSQL 15.11 · Fix cases where an operator family member operator or support procedure could become a dangling reference
- Same changePostgreSQL 14.16 · Fix cases where an operator family member operator or support procedure could become a dangling reference
- Same changePostgreSQL 13.19 · Fix cases where an operator family member operator or support procedure could become a dangling reference
Bug fixesFix multiple memory leaks in logical decoding output
Changes
Related records (4)
- Same changePostgreSQL 16.7 · Fix multiple memory leaks in logical decoding output
- Same changePostgreSQL 15.11 · Fix multiple memory leaks in logical decoding output
- Same changePostgreSQL 14.16 · Fix multiple memory leaks in logical decoding output
- Same changePostgreSQL 13.19 · Fix multiple memory leaks in logical decoding output
Bug fixesFix small memory leak when updating the application_name or cluster_name settings
Changes
Fix small memory leak when updating the application_name or cluster_name settings (Tofig Aliev) §
Related records (1)
Bug fixesAvoid crash when a background process tries to check a new value of synchronized_standby_slots
Changes
Avoid crash when a background process tries to check a new value of synchronized_standby_slots (Álvaro Herrera) §
Bug fixesAvoid integer overflow while testing wal_skip_threshold condition
Changes
Avoid integer overflow while testing wal_skip_threshold condition (Tom Lane) §
A transaction that created a very large relation could mistakenly decide to ensure durability by copying the relation into WAL instead of fsync'ing it, thereby negating the point of wal_skip_threshold. (This only matters when wal_level is set to minimal, else a WAL copy is required anyway.)
Related records (4)
- Same changePostgreSQL 16.7 · Avoid integer overflow while testing wal_skip_threshold condition
- Same changePostgreSQL 15.11 · Avoid integer overflow while testing wal_skip_threshold condition
- Same changePostgreSQL 14.16 · Avoid integer overflow while testing wal_skip_threshold condition
- Same changePostgreSQL 13.19 · Avoid integer overflow while testing wal_skip_threshold condition
Bug fixesFix unsafe order of operations during cache lookups
Changes
Fix unsafe order of operations during cache lookups (Noah Misch) §
The only known consequence was a usually-harmless “you don't own a lock of type ExclusiveLock” warning during GRANT TABLESPACE.
Related records (4)
- Same changePostgreSQL 16.7 · Fix unsafe order of operations during cache lookups
- Same changePostgreSQL 15.11 · Fix unsafe order of operations during cache lookups
- Same changePostgreSQL 14.16 · Fix unsafe order of operations during cache lookups
- Same changePostgreSQL 13.19 · Fix unsafe order of operations during cache lookups
ImprovementsAvoid potential use-after-free in parallel vacuum
Changes
Avoid potential use-after-free in parallel vacuum (Vallimaharajan G, John Naylor) §
This bug seems to have no consequences in standard builds, but it's theoretically a hazard.
Bug fixesFix possible “failed to resolve name” failures when using JIT on older ARM platforms
Changes
Fix possible “failed to resolve name” failures when using JIT on older ARM platforms (Thomas Munro) §
This could occur as a consequence of inconsistency about the default setting of -moutline-atomics between gcc and clang. At least Debian and Ubuntu are known to ship gcc and clang compilers that target armv8-a but differ on the use of outline atomics by default.
Related records (4)
- Same changePostgreSQL 16.7 · Fix possible “failed to resolve name” failures when using JIT on older ARM platforms
- Same changePostgreSQL 15.11 · Fix possible “failed to resolve name” failures when using JIT on older ARM platforms
- Same changePostgreSQL 14.16 · Fix possible “failed to resolve name” failures when using JIT on older ARM platforms
- Same changePostgreSQL 13.19 · Fix possible “failed to resolve name” failures when using JIT on older ARM platforms
Bug fixesFix assertion failure in WITH RECURSIVE ... UNION queries
Changes
Fix assertion failure in WITH RECURSIVE ... UNION queries (David Rowley) §
Related records (4)
- Same changePostgreSQL 16.7 · Fix assertion failure in WITH RECURSIVE ... UNION queries
- Same changePostgreSQL 15.11 · Fix assertion failure in WITH RECURSIVE ... UNION queries
- Same changePostgreSQL 14.16 · Fix assertion failure in WITH RECURSIVE ... UNION queries
- Same changePostgreSQL 13.19 · Fix assertion failure in WITH RECURSIVE ... UNION queries
ImprovementsAvoid assertion failure in rule deparsing if a set operation leaf query contains set operations
Changes
Avoid assertion failure in rule deparsing if a set operation leaf query contains set operations (Man Zeng, Tom Lane) §
Related records (4)
- Same changePostgreSQL 16.7 · Avoid assertion failure in rule deparsing if a set operation leaf query contains set operations
- Same changePostgreSQL 15.11 · Avoid assertion failure in rule deparsing if a set operation leaf query contains set operations
- Same changePostgreSQL 14.16 · Avoid assertion failure in rule deparsing if a set operation leaf query contains set operations
- Same changePostgreSQL 13.19 · Avoid assertion failure in rule deparsing if a set operation leaf query contains set operations
ImprovementsAvoid edge-case assertion failure in parallel query startup
Changes
Avoid edge-case assertion failure in parallel query startup (Tom Lane) §
Related records (4)
- Same changePostgreSQL 16.7 · Avoid edge-case assertion failure in parallel query startup
- Same changePostgreSQL 15.11 · Avoid edge-case assertion failure in parallel query startup
- Same changePostgreSQL 14.16 · Avoid edge-case assertion failure in parallel query startup
- Same changePostgreSQL 13.19 · Avoid edge-case assertion failure in parallel query startup
Bug fixesFix assertion failure at shutdown when writing out the statistics file
Changes
Fix assertion failure at shutdown when writing out the statistics file (Michael Paquier) §
ImprovementsAvoid valgrind complaints about string hashing code
Changes
Avoid valgrind complaints about string hashing code (John Naylor) §
ImprovementsIn NULLIF(), avoid passing a read-write expanded object pointer to the data type's equality function
Changes
In NULLIF(), avoid passing a read-write expanded object pointer to the data type's equality function (Tom Lane) §
The equality function could modify or delete the object if it's given a read-write pointer, which would be bad if we decide to return it as the NULLIF() result. There is probably no problem with any built-in equality function, but it's easy to demonstrate a failure with one coded in PL/pgSQL.
Related records (4)
- Same changePostgreSQL 16.7 · In NULLIF(), avoid passing a read-write expanded object pointer to the data type's equality function
- Same changePostgreSQL 15.11 · In NULLIF(), avoid passing a read-write expanded object pointer to the data type's equality function
- Same changePostgreSQL 14.16 · In NULLIF(), avoid passing a read-write expanded object pointer to the data type's equality function
- Same changePostgreSQL 13.19 · In NULLIF(), avoid passing a read-write expanded object pointer to the data type's equality function
ImprovementsEnsure that expression preprocessing is applied to a default null value in INSERT
Changes
Ensure that expression preprocessing is applied to a default null value in INSERT (Tom Lane) §
If the target column is of a domain type, the planner must insert a coerce-to-domain step not just a null constant, and this expression missed going through some required processing steps. There is no known consequence with domains based on core data types, but in theory an error could occur with domains based on extension types.
Related records (3)
- Same changePostgreSQL 16.7 · Ensure that expression preprocessing is applied to a default null value in INSERT
- Same changePostgreSQL 15.11 · Ensure that expression preprocessing is applied to a default null value in INSERT
- Same changePostgreSQL 14.16 · Ensure that expression preprocessing is applied to a default null value in INSERT
ImprovementsAvoid data loss when starting a bulk write on a relation fork that already contains data
Changes
Avoid data loss when starting a bulk write on a relation fork that already contains data (Matthias van de Meent) §
Any pre-existing data was overwritten with zeroes. This is not an issue for core PostgreSQL, which never does that. Some extensions would like to, however.
Bug fixesAvoid crash if a server process tried to iterate over a shared radix tree that it didn't create
Changes
Avoid crash if a server process tried to iterate over a shared radix tree that it didn't create (Masahiko Sawada) §
There is no code in core PostgreSQL that does this, but an extension might wish to.
Bug fixesRepair memory leaks in PL/Python
Changes
Repair memory leaks in PL/Python (Mat Arye, Tom Lane) §
Repeated use of PLyPlan.execute or plpy.cursor resulted in memory leakage for the duration of the calling PL/Python function.
Related records (4)
Bug fixesFix PL/Tcl to compile with Tcl 9
Bug fixesIn the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables
Changes
In the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables (Tom Lane) §
Related records (4)
- Same changePostgreSQL 16.7 · In the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables
- Same changePostgreSQL 15.11 · In the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables
- Same changePostgreSQL 14.16 · In the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables
- Same changePostgreSQL 13.19 · In the ecpg preprocessor, fix possible misprocessing of cursors that reference out-of-scope variables
Bug fixesIn ecpg, fix compile-time warnings about unsupported use of COPY ... FROM STDIN
Changes
In ecpg, fix compile-time warnings about unsupported use of COPY ... FROM STDIN (Ryo Kanbayashi) §
Previously, the intended warning was not issued due to a typo.
Related records (4)
- Same changePostgreSQL 16.7 · In ecpg, fix compile-time warnings about unsupported use of COPY ... FROM STDIN
- Same changePostgreSQL 15.11 · In ecpg, fix compile-time warnings about unsupported use of COPY ... FROM STDIN
- Same changePostgreSQL 14.16 · In ecpg, fix compile-time warnings about unsupported use of COPY ... FROM STDIN
- Same changePostgreSQL 13.19 · In ecpg, fix compile-time warnings about unsupported use of COPY ... FROM STDIN
Bug fixesFix psql to safely handle file path names that are encoded in SJIS
Changes
Fix psql to safely handle file path names that are encoded in SJIS (Tom Lane) §
Some two-byte characters in SJIS have a second byte that is equal to ASCII backslash (\). These characters were corrupted by path name normalization, preventing access to files whose names include such characters.
Related records (4)
- Same changePostgreSQL 16.7 · Fix psql to safely handle file path names that are encoded in SJIS
- Same changePostgreSQL 15.11 · Fix psql to safely handle file path names that are encoded in SJIS
- Same changePostgreSQL 14.16 · Fix psql to safely handle file path names that are encoded in SJIS
- Same changePostgreSQL 13.19 · Fix psql to safely handle file path names that are encoded in SJIS
ImprovementsAdd psql tab completion for COPY (MERGE INTO)
Changes
Add psql tab completion for COPY (MERGE INTO) (Jian He) §
Bug fixesFix use of wrong version of pqsignal() in pgbench and psql
Changes
Fix use of wrong version of pqsignal() in pgbench and psql (Fujii Masao, Tom Lane) §
This error could lead to misbehavior when using the -T option in pgbench or the \watch command in psql, due to interrupted system calls not being resumed as expected.
Related records (4)
- Same changePostgreSQL 16.7 · Fix use of wrong version of pqsignal() in pgbench and psql
- Same changePostgreSQL 15.11 · Fix use of wrong version of pqsignal() in pgbench and psql
- Same changePostgreSQL 14.16 · Fix use of wrong version of pqsignal() in pgbench and psql
- Same changePostgreSQL 13.19 · Fix use of wrong version of pqsignal() in pgbench and psql
Bug fixesFix misexecution of some nested \if constructs in pgbench
Changes
Fix misexecution of some nested \if constructs in pgbench (Michail Nikolaev) §
An \if command appearing within a false (not-being-executed) \if branch was incorrectly treated the same as \elif.
Related records (4)
- Same changePostgreSQL 16.7 · Fix misexecution of some nested \if constructs in pgbench
- Same changePostgreSQL 15.11 · Fix misexecution of some nested \if constructs in pgbench
- Same changePostgreSQL 14.16 · Fix misexecution of some nested \if constructs in pgbench
- Same changePostgreSQL 13.19 · Fix misexecution of some nested \if constructs in pgbench
Bug fixesIn pgbench, fix possible misdisplay of progress messages during table initialization
Changes
In pgbench, fix possible misdisplay of progress messages during table initialization (Yushi Ogiwara, Tatsuo Ishii, Fujii Masao) § §
Related records (4)
- Same changePostgreSQL 16.7 · In pgbench, fix possible misdisplay of progress messages during table initialization
- Same changePostgreSQL 15.11 · In pgbench, fix possible misdisplay of progress messages during table initialization
- Same changePostgreSQL 14.16 · In pgbench, fix possible misdisplay of progress messages during table initialization
- Same changePostgreSQL 13.19 · In pgbench, fix possible misdisplay of progress messages during table initialization
ImprovementsMake pg_controldata more robust against corrupted pg_control files
Changes
Make pg_controldata more robust against corrupted pg_control files (Ilyasov Ian, Anton Voloshin) §
Since pg_controldata will attempt to print the contents of pg_control even if the CRC check fails, it must take care not to misbehave for invalid field values. This patch fixes some issues triggered by invalid timestamps and apparently-negative WAL segment sizes.
Related records (4)
- Same changePostgreSQL 16.7 · Make pg_controldata more robust against corrupted pg_control files
- Same changePostgreSQL 15.11 · Make pg_controldata more robust against corrupted pg_control files
- Same changePostgreSQL 14.16 · Make pg_controldata more robust against corrupted pg_control files
- Same changePostgreSQL 13.19 · Make pg_controldata more robust against corrupted pg_control files
Bug fixesFix possible crash in pg_dump with identity sequences attached to tables that are extension members
Changes
Fix possible crash in pg_dump with identity sequences attached to tables that are extension members (Tom Lane) §
Related records (4)
- Same changePostgreSQL 16.7 · Fix possible crash in pg_dump with identity sequences attached to tables that are extension members
- Same changePostgreSQL 15.11 · Fix possible crash in pg_dump with identity sequences attached to tables that are extension members
- Same changePostgreSQL 14.16 · Fix possible crash in pg_dump with identity sequences attached to tables that are extension members
- Same changePostgreSQL 13.19 · Fix possible crash in pg_dump with identity sequences attached to tables that are extension members
Bug fixesFix memory leak in pg_restore with zstd-compressed data
Changes
Fix memory leak in pg_restore with zstd-compressed data (Tom Lane) §
The leak was per-decompression-operation, so would be most noticeable with a dump containing many tables or large objects.
Related records (1)
Bug fixesFix pg_basebackup to correctly handle pg_wal.tar files exceeding 2GB on Windows
Changes
Fix pg_basebackup to correctly handle pg_wal.tar files exceeding 2GB on Windows (Davinder Singh, Thomas Munro) § §
Related records (4)
- Same changePostgreSQL 16.7 · Fix pg_basebackup to correctly handle pg_wal.tar files exceeding 2GB on Windows
- Same changePostgreSQL 15.11 · Fix pg_basebackup to correctly handle pg_wal.tar files exceeding 2GB on Windows
- Same changePostgreSQL 14.16 · Fix pg_basebackup to correctly handle pg_wal.tar files exceeding 2GB on Windows
- Same changePostgreSQL 13.19 · Fix pg_basebackup to correctly handle pg_wal.tar files exceeding 2GB on Windows
ImprovementsUse SQL-standard function bodies in the declarations of contrib/earthdistance's SQL-language functions
Changes
Use SQL-standard function bodies in the declarations of contrib/earthdistance's SQL-language functions (Tom Lane, Ronan Dunklau) §
This change allows their references to contrib/cube to be resolved during extension creation, reducing the risk of search-path-based failures and possible attacks.
In particular, this restores their usability in contexts like generated columns, for which PostgreSQL v17 restricts the search path on security grounds. We have received reports of databases failing to be upgraded to v17 because of that. This patch has been included in v16 to provide a workaround: updating the earthdistance extension to this version beforehand should allow an upgrade to succeed.
Related records (1)
ImprovementsDetect version mismatch between contrib/pageinspect's SQL declarations and the underlying shared library
Changes
Detect version mismatch between contrib/pageinspect's SQL declarations and the underlying shared library (Tomas Vondra) §
Previously, such a mismatch could result in a crash while calling brin_page_items(). Instead throw an error recommending updating the extension.
ImprovementsWhen trying to cancel a remote query in contrib/postgres_fdw, re-issue the cancel request a few times if it didn't seem to do anything
Changes
When trying to cancel a remote query in contrib/postgres_fdw, re-issue the cancel request a few times if it didn't seem to do anything (Tom Lane) §
This fixes a race condition where we might try to cancel a just-sent query before the remote server has started to process it, so that the initial cancel request is ignored.
ImprovementsUpdate configuration probes that determine the compiler switches needed to access ARM CRC instructions
Changes
Update configuration probes that determine the compiler switches needed to access ARM CRC instructions (Tom Lane) §
On ARM platforms where the baseline CPU target lacks CRC instructions, we need to supply a -march switch to persuade the compiler to compile such instructions. Recent versions of gcc reject the value we were trying, leading to silently falling back to software CRC.
Related records (4)
- Same changePostgreSQL 16.7 · Update configuration probes that determine the compiler switches needed to access ARM CRC instructions
- Same changePostgreSQL 15.11 · Update configuration probes that determine the compiler switches needed to access ARM CRC instructions
- Same changePostgreSQL 14.16 · Update configuration probes that determine the compiler switches needed to access ARM CRC instructions
- Same changePostgreSQL 13.19 · Update configuration probes that determine the compiler switches needed to access ARM CRC instructions
Bug fixesFix meson build system to support old OpenSSL libraries on Windows
Changes
Fix meson build system to support old OpenSSL libraries on Windows (Darek Slusarczyk) §
Add support for the legacy library names ssleay32 and libeay32.
Related records (1)
ImprovementsIn Windows builds using meson, ensure all libcommon and libpgport functions are exported
Bug fixesFix meson configuration process to correctly detect OSSP's uuid.h header file under MSVC
Changes
Fix meson configuration process to correctly detect OSSP's uuid.h header file under MSVC (Andrew Dunstan) §
Related records (1)
ImprovementsWhen building with meson, install pgevent in pkglibdir not bindir
Changes
When building with meson, install pgevent in pkglibdir not bindir (Peter Eisentraut) §
This matches the behavior of the make-based build system and the old MSVC build system.
Related records (1)
ImprovementsWhen building with meson, install sepgsql.sql under share/contrib/ not share/extension/
Changes
When building with meson, install sepgsql.sql under share/contrib/ not share/extension/ (Peter Eisentraut) §
This matches what the make-based build system does.
Related records (1)
ImprovementsUpdate time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines
Changes
Update time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines (Tom Lane) §
Related records (4)
- Same changePostgreSQL 16.7 · Update time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines
- Same changePostgreSQL 15.11 · Update time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines
- Same changePostgreSQL 14.16 · Update time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines
- Same changePostgreSQL 13.19 · Update time zone data files to tzdata release 2025a for DST law changes in Paraguay, plus historical corrections for the Philippines
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.