DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 15.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
15.3
2023-05-11
15.3stableSupport ends 2027-11-11
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2023-2454 Prevent CREATE SCHEMA from defeating changes in search_path | 15.3 | Recorded fix | |
| CVE-2023-2455 Enforce row-level security policies correctly after inlining a set-returning function | 15.3 | Recorded fix |
PostgreSQL 15.3
Migration and compatibility
A dump/restore is not required for those running 15.X.
However, if you are upgrading from a version earlier than 15.1, see Section E.19.
SecurityPrevent CREATE SCHEMA from defeating changes in search_path
Changes
Prevent CREATE SCHEMA from defeating changes in search_path (Alexander Lakhin) § §
Within a CREATE SCHEMA command, objects in the prevailing search_path, as well as those in the newly-created schema, would be visible even within a called function or script that attempted to set a secure search_path. This could allow any user having permission to create a schema to hijack the privileges of a security definer function or extension script.
The PostgreSQL Project thanks Alexander Lakhin for reporting this problem. (CVE-2023-2454)
Related records (4)
- Same changePostgreSQL 14.8 · Prevent CREATE SCHEMA from defeating changes in search_path
- Same changePostgreSQL 13.11 · Prevent CREATE SCHEMA from defeating changes in search_path
- Same changePostgreSQL 12.15 · Prevent CREATE SCHEMA from defeating changes in search_path
- Same changePostgreSQL 11.20 · Prevent CREATE SCHEMA from defeating changes in search_path
SecurityEnforce row-level security policies correctly after inlining a set-returning function
Changes
Enforce row-level security policies correctly after inlining a set-returning function (Stephen Frost, Tom Lane) §
If a set-returning SQL-language function refers to a table having row-level security policies, and it can be inlined into a calling query, those RLS policies would not get enforced properly in some cases involving re-using a cached plan under a different role. This could allow a user to see or modify rows that should have been invisible.
The PostgreSQL Project thanks Wolfgang Walther for reporting this problem. (CVE-2023-2455)
Related records (4)
- Same changePostgreSQL 14.8 · Enforce row-level security policies correctly after inlining a set-returning function
- Same changePostgreSQL 13.11 · Enforce row-level security policies correctly after inlining a set-returning function
- Same changePostgreSQL 12.15 · Enforce row-level security policies correctly after inlining a set-returning function
- Same changePostgreSQL 11.20 · Enforce row-level security policies correctly after inlining a set-returning function
Bug fixesFix potential corruption of the template (source) database after CREATE DATABASE with the STRATEGY WAL_LOG option
Changes
Fix potential corruption of the template (source) database after CREATE DATABASE with the STRATEGY WAL_LOG option (Nathan Bossart, Ryo Matsumura) §
Improper buffer handling created a risk that any later modification of the template's pg_class catalog would be lost.
Bug fixesFix memory leakage and unnecessary disk reads during CREATE DATABASE with the STRATEGY WAL_LOG option
Changes
Fix memory leakage and unnecessary disk reads during CREATE DATABASE with the STRATEGY WAL_LOG option (Andres Freund) §
Bug fixesAvoid crash when the new schema name is omitted in CREATE SCHEMA
Changes
Avoid crash when the new schema name is omitted in CREATE SCHEMA (Michael Paquier) §
The SQL standard allows writing CREATE SCHEMA AUTHORIZATION , with the schema name defaulting to owner_nameowner_name. However some code paths expected the schema name to be present and would fail.
Related records (4)
- Same changePostgreSQL 14.8 · Avoid crash when the new schema name is omitted in CREATE SCHEMA
- Same changePostgreSQL 13.11 · Avoid crash when the new schema name is omitted in CREATE SCHEMA
- Same changePostgreSQL 12.15 · Avoid crash when the new schema name is omitted in CREATE SCHEMA
- Same changePostgreSQL 11.20 · Avoid crash when the new schema name is omitted in CREATE SCHEMA
Bug fixesFix various planner failures with MERGE commands
Bug fixesFix the row count reported by MERGE for some corner cases
Changes
Fix the row count reported by MERGE for some corner cases (Dean Rasheed) § §
The row count reported in the command tag counted rows that actually hadn't been modified due to a BEFORE ROW trigger returning NULL. This is inconsistent with what happens in plain UPDATE or DELETE, so change it to not count such rows. Also, avoid counting a row twice when MERGE moves it into a different partition of a partitioned table.
Bug fixesFix MERGE problems with concurrent updates
ImprovementsAdd support for decompiling MERGE commands
Changes
Add support for decompiling MERGE commands (Álvaro Herrera) §
This was overlooked when MERGE was added, but it's essential support for MERGE in new-style SQL functions.
Bug fixesFix enabling/disabling of foreign-key triggers in partitioned tables
Changes
Fix enabling/disabling of foreign-key triggers in partitioned tables (Tom Lane) §
ALTER TABLE ... ENABLE/DISABLE TRIGGER failed if applied to a partitioned table's foreign-key enforcement triggers, because it tried to locate the clone triggers for the partitions by name, and they do not have the same name. Locate them by parent-trigger OID instead.
ImprovementsDisallow altering composite types that are stored in indexes
Changes
Disallow altering composite types that are stored in indexes (Tom Lane) §
ALTER TYPE disallows non-binary-compatible modifications of composite types if they are stored in any table columns. (Perhaps that will be allowed someday, but it hasn't happened yet; the locking implications of rewriting many tables are daunting.) We overlooked the possibility that an index might contain a composite type that doesn't also appear in its table.
Related records (4)
- Same changePostgreSQL 14.8 · Disallow altering composite types that are stored in indexes
- Same changePostgreSQL 13.11 · Disallow altering composite types that are stored in indexes
- Same changePostgreSQL 12.15 · Disallow altering composite types that are stored in indexes
- Same changePostgreSQL 11.20 · Disallow altering composite types that are stored in indexes
ImprovementsDisallow system columns as elements of foreign keys
Changes
Disallow system columns as elements of foreign keys (Tom Lane) §
Since the removal of OID as a system column, there is no plausible use-case for this, and various bits of code no longer support it. Disallow it rather than trying to fix all the cases.
ImprovementsEnsure that COPY TO from an RLS-enabled parent table does not copy any rows from child tables
Changes
Ensure that COPY TO from an RLS-enabled parent table does not copy any rows from child tables (Antonin Houska) §
The documentation is quite clear that COPY TO copies rows from only the named table, not any inheritance children it may have. However, if row-level security was enabled on the table then this stopped being true.
Related records (4)
- Same changePostgreSQL 14.8 · Ensure that COPY TO from an RLS-enabled parent table does not copy any rows from child tables
- Same changePostgreSQL 13.11 · Ensure that COPY TO from an RLS-enabled parent table does not copy any rows from child tables
- Same changePostgreSQL 12.15 · Ensure that COPY TO from an RLS-enabled parent table does not copy any rows from child tables
- Same changePostgreSQL 11.20 · Ensure that COPY TO from an RLS-enabled parent table does not copy any rows from child tables
Bug fixesAvoid possible crash when array_position() or array_positions() is passed an empty array
Changes
Avoid possible crash when array_position() or array_positions() is passed an empty array (Tom Lane) §
Related records (4)
- Same changePostgreSQL 14.8 · Avoid possible crash when array_position() or array_positions() is passed an empty array
- Same changePostgreSQL 13.11 · Avoid possible crash when array_position() or array_positions() is passed an empty array
- Same changePostgreSQL 12.15 · Avoid possible crash when array_position() or array_positions() is passed an empty array
- Same changePostgreSQL 11.20 · Avoid possible crash when array_position() or array_positions() is passed an empty array
Bug fixesFix possible out-of-bounds fetch in to_char()
Changes
Fix possible out-of-bounds fetch in to_char() (Tom Lane) §
With bad luck this could have resulted in a server crash.
Related records (4)
ImprovementsAvoid buffer overread in translate() function
Changes
Avoid buffer overread in translate() function (Daniil Anisimov) §
When using the deletion feature, the function might fetch the byte just after the input string, creating a small risk of crash.
Related records (4)
ImprovementsAdjust text-search-related character classification logic to correctly detect whether the prevailing locale is C
Changes
Adjust text-search-related character classification logic to correctly detect whether the prevailing locale is C (Jeff Davis) §
This code got confused if the database's default collation uses ICU.
Bug fixesAvoid possible crash on empty input for type interval
Changes
Avoid possible crash on empty input for type interval (Tom Lane) §
ImprovementsRe-allow exponential notation in ISO-8601 interval fields
Changes
Re-allow exponential notation in ISO-8601 interval fields (Tom Lane) §
Interval input like P0.1e10D isn't officially sanctioned by ISO-8601, but we accepted it for a long time before version 15, so re-allow it.
Bug fixesFix error cursor setting for parse errors in JSON string literals
Changes
Fix error cursor setting for parse errors in JSON string literals (Tom Lane) §
Most cases in which a syntax error is detected in a string literal within a JSON value failed to set the error cursor appropriately. This led at least to an unhelpful error message (pointing to the token before the string, rather than the actual trouble spot), and could even result in a crash in v14 and later.
Related records (4)
- Same changePostgreSQL 14.8 · Fix error cursor setting for parse errors in JSON string literals
- Same changePostgreSQL 13.11 · Fix error cursor setting for parse errors in JSON string literals
- Same changePostgreSQL 12.15 · Fix error cursor setting for parse errors in JSON string literals
- Same changePostgreSQL 11.20 · Fix error cursor setting for parse errors in JSON string literals
Bug fixesFix data corruption due to vacuum_defer_cleanup_age being larger than the current 64-bit xid
Changes
Fix data corruption due to vacuum_defer_cleanup_age being larger than the current 64-bit xid (Andres Freund) §
In v14 and later with non-default settings of vacuum_defer_cleanup_age, it was possible to compute a very large vacuum cleanup horizon xid, leading to vacuum removing rows that are still live. v12 and v13 have a lesser form of the same problem affecting only GiST indexes, which could lead to index pages getting recycled too early.
Related records (3)
- Same changePostgreSQL 14.8 · Fix data corruption due to vacuum_defer_cleanup_age being larger than the current 64-bit xid
- Same changePostgreSQL 13.11 · Fix data corruption due to vacuum_defer_cleanup_age being larger than the current 64-bit xid
- Same changePostgreSQL 12.15 · Fix data corruption due to vacuum_defer_cleanup_age being larger than the current 64-bit xid
Bug fixesFix parser's failure to detect some cases of improperly-nested aggregates
Changes
Fix parser's failure to detect some cases of improperly-nested aggregates (Tom Lane) §
This oversight could lead to executor failures for queries that should have been rejected as invalid.
Related records (4)
- Same changePostgreSQL 14.8 · Fix parser's failure to detect some cases of improperly-nested aggregates
- Same changePostgreSQL 13.11 · Fix parser's failure to detect some cases of improperly-nested aggregates
- Same changePostgreSQL 12.15 · Fix parser's failure to detect some cases of improperly-nested aggregates
- Same changePostgreSQL 11.20 · Fix parser's failure to detect some cases of improperly-nested aggregates
Bug fixesFix data structure corruption during parsing of serial SEQUENCE NAME options
Changes
Fix data structure corruption during parsing of serial SEQUENCE NAME options (David Rowley) §
This can lead to trouble if an event trigger captures the corrupted parse tree.
Related records (4)
- Same changePostgreSQL 14.8 · Fix data structure corruption during parsing of serial SEQUENCE NAME options
- Same changePostgreSQL 13.11 · Fix data structure corruption during parsing of serial SEQUENCE NAME options
- Same changePostgreSQL 12.15 · Fix data structure corruption during parsing of serial SEQUENCE NAME options
- Same changePostgreSQL 11.20 · Fix data structure corruption during parsing of serial SEQUENCE NAME options
ImprovementsCorrectly update plan nodes' parallel-safety markings when moving initplans from one node to another
Changes
Correctly update plan nodes' parallel-safety markings when moving initplans from one node to another (Tom Lane) §
This planner oversight could lead to “subplan was not initialized” errors at runtime.
Related records (4)
- Same changePostgreSQL 14.8 · Correctly update plan nodes' parallel-safety markings when moving initplans from one node to another
- Same changePostgreSQL 13.11 · Correctly update plan nodes' parallel-safety markings when moving initplans from one node to another
- Same changePostgreSQL 12.15 · Correctly update plan nodes' parallel-safety markings when moving initplans from one node to another
- Same changePostgreSQL 11.20 · Correctly update plan nodes' parallel-safety markings when moving initplans from one node to another
ImprovementsAvoid failure with PlaceHolderVars in extended-statistics code
Changes
Avoid failure with PlaceHolderVars in extended-statistics code (Tom Lane) §
Use of dependency-type extended statistics could fail with “PlaceHolderVar found where not expected”.
Related records (1)
Bug fixesFix incorrect tests for whether a qual clause applied to a subquery can be transformed into a window aggregate “run condition” within the subquery
Changes
Fix incorrect tests for whether a qual clause applied to a subquery can be transformed into a window aggregate “run condition” within the subquery (David Rowley) §
A SubPlan within such a clause would cause assertion failures or incorrect answers, as would some other unusual cases.
ImprovementsDisable the inverse-transition optimization for window aggregates when the call contains sub-SELECTs
Changes
Disable the inverse-transition optimization for window aggregates when the call contains sub-SELECTs (David Rowley) §
This optimization requires that the aggregate's argument expressions have repeatable results, which might not hold for a sub-SELECT.
Related records (4)
- Same changePostgreSQL 14.8 · Disable the inverse-transition optimization for window aggregates when the call contains sub-SELECTs
- Same changePostgreSQL 13.11 · Disable the inverse-transition optimization for window aggregates when the call contains sub-SELECTs
- Same changePostgreSQL 12.15 · Disable the inverse-transition optimization for window aggregates when the call contains sub-SELECTs
- Same changePostgreSQL 11.20 · Disable the inverse-transition optimization for window aggregates when the call contains sub-SELECTs
Bug fixesFix oversights in execution of nested ARRAY[] constructs
Changes
Fix oversights in execution of nested ARRAY[] constructs (Alexander Lakhin, Tom Lane) §
Correctly detect overflow of the total space needed for the result array, avoiding a possible crash due to undersized output allocation. Also ensure that any trailing padding space in the result array is zeroed; while leaving garbage there is harmless for most purposes, it can result in odd behavior later.
Related records (4)
- Same changePostgreSQL 14.8 · Fix oversights in execution of nested ARRAY[] constructs
- Same changePostgreSQL 13.11 · Fix oversights in execution of nested ARRAY[] constructs
- Same changePostgreSQL 12.15 · Fix oversights in execution of nested ARRAY[] constructs
- Same changePostgreSQL 11.20 · Fix oversights in execution of nested ARRAY[] constructs
Bug fixesPrevent crash when updating a field within an array-of-domain-over-composite-type column
Changes
Prevent crash when updating a field within an array-of-domain-over-composite-type column (Dmitry Dolgov) §
Related records (3)
- Same changePostgreSQL 14.8 · Prevent crash when updating a field within an array-of-domain-over-composite-type column
- Same changePostgreSQL 13.11 · Prevent crash when updating a field within an array-of-domain-over-composite-type column
- Same changePostgreSQL 12.15 · Prevent crash when updating a field within an array-of-domain-over-composite-type column
Bug fixesFix partition pruning logic for partitioning on boolean columns
Changes
Fix partition pruning logic for partitioning on boolean columns (David Rowley) §
Pruning with a condition like boolcol IS NOT TRUE was done incorrectly, leading to possibly not returning rows in which boolcol is NULL. Also, the rather unlikely case of partitioning on NOT boolcol was handled incorrectly.
Related records (4)
- Same changePostgreSQL 14.8 · Fix partition pruning logic for partitioning on boolean columns
- Same changePostgreSQL 13.11 · Fix partition pruning logic for partitioning on boolean columns
- Same changePostgreSQL 12.15 · Fix partition pruning logic for partitioning on boolean columns
- Same changePostgreSQL 11.20 · Fix partition pruning logic for partitioning on boolean columns
Bug fixesFix race condition in per-batch cleanup during parallel hash join
Changes
Fix race condition in per-batch cleanup during parallel hash join (Thomas Munro, Melanie Plageman) §
A crash was possible given unlucky timing and parallel_leader_participation = off (which is not the default).
Related records (4)
- Same changePostgreSQL 14.8 · Fix race condition in per-batch cleanup during parallel hash join
- Same changePostgreSQL 13.11 · Fix race condition in per-batch cleanup during parallel hash join
- Same changePostgreSQL 12.15 · Fix race condition in per-batch cleanup during parallel hash join
- Same changePostgreSQL 11.20 · Fix race condition in per-batch cleanup during parallel hash join
ImprovementsRecalculate GENERATED columns after an EvalPlanQual check
Changes
Recalculate GENERATED columns after an EvalPlanQual check (Tom Lane) §
In READ COMMITTED isolation mode, the effects of a row update might need to get reapplied to a newer version of the row than the query found originally. If so, we need to recompute any GENERATED columns, in case they depend on columns that were changed by the concurrent update.
Bug fixesFix memory leak in Memoize plan execution
Bug fixesFix buffer refcount leak when using batched inserts for a foreign table included in a partitioned tree
Changes
Fix buffer refcount leak when using batched inserts for a foreign table included in a partitioned tree (Alexander Pyhalov) §
Related records (1)
ImprovementsRestore support for sub-millisecond vacuum_cost_delay settings
Changes
Restore support for sub-millisecond vacuum_cost_delay settings (Thomas Munro) §
Related records (1)
ImprovementsDon't balance vacuum cost delay when a table has a per-relation vacuum_cost_delay setting of zero
Changes
Don't balance vacuum cost delay when a table has a per-relation vacuum_cost_delay setting of zero (Masahiko Sawada) §
Delay balancing is supposed to be disabled whenever autovacuum is processing a table with a per-relation vacuum_cost_delay setting, but this was done only for positive settings, not zero.
Related records (4)
- Same changePostgreSQL 14.8 · Don't balance vacuum cost delay when a table has a per-relation vacuum_cost_delay setting of zero
- Same changePostgreSQL 13.11 · Don't balance vacuum cost delay when a table has a per-relation vacuum_cost_delay setting of zero
- Same changePostgreSQL 12.15 · Don't balance vacuum cost delay when a table has a per-relation vacuum_cost_delay setting of zero
- Same changePostgreSQL 11.20 · Don't balance vacuum cost delay when a table has a per-relation vacuum_cost_delay setting of zero
Bug fixesFix corner-case crashes when columns have been added to the end of a view
Changes
Fix corner-case crashes when columns have been added to the end of a view (Tom Lane) §
Related records (4)
- Same changePostgreSQL 14.8 · Fix corner-case crashes when columns have been added to the end of a view
- Same changePostgreSQL 13.11 · Fix corner-case crashes when columns have been added to the end of a view
- Same changePostgreSQL 12.15 · Fix corner-case crashes when columns have been added to the end of a view
- Same changePostgreSQL 11.20 · Fix corner-case crashes when columns have been added to the end of a view
Bug fixesRepair rare failure of MULTIEXPR_SUBLINK subplans in partitioned updates
Changes
Repair rare failure of MULTIEXPR_SUBLINK subplans in partitioned updates (Andres Freund, Tom Lane) §
Use of the syntax INSERT ... ON CONFLICT DO UPDATE SET (c1, ...) = (SELECT ...) with a partitioned target table could result in failure if any child table is dissimilar from the parent (for example, different physical column order). This typically manifested as failure of consistency checks in the executor; but a crash or incorrect data updates are also possible.
Related records (4)
- Same changePostgreSQL 14.8 · Repair rare failure of MULTIEXPR_SUBLINK subplans in partitioned updates
- Same changePostgreSQL 13.11 · Repair rare failure of MULTIEXPR_SUBLINK subplans in partitioned updates
- Same changePostgreSQL 12.15 · Repair rare failure of MULTIEXPR_SUBLINK subplans in partitioned updates
- Same changePostgreSQL 11.20 · Repair rare failure of MULTIEXPR_SUBLINK subplans in partitioned updates
Bug fixesFix handling of DEFAULT markers within a multi-row INSERT ... VALUES query on a view that has a DO ALSO INSERT ... SELECT rule
Changes
Fix handling of DEFAULT markers within a multi-row INSERT ... VALUES query on a view that has a DO ALSO INSERT ... SELECT rule (Dean Rasheed) §
Such cases typically failed with “unrecognized node type” errors or assertion failures.
Related records (4)
- Same changePostgreSQL 14.8 · Fix handling of DEFAULT markers within a multi-row INSERT ... VALUES query on a view that has a DO ALSO INSERT ... SELECT rule
- Same changePostgreSQL 13.11 · Fix handling of DEFAULT markers within a multi-row INSERT ... VALUES query on a view that has a DO ALSO INSERT ... SELECT rule
- Same changePostgreSQL 12.15 · Fix handling of DEFAULT markers within a multi-row INSERT ... VALUES query on a view that has a DO ALSO INSERT ... SELECT rule
- Same changePostgreSQL 11.20 · Fix handling of DEFAULT markers within a multi-row INSERT ... VALUES query on a view that has a DO ALSO INSERT ... SELECT rule
ImprovementsSupport references to OLD and NEW within subqueries in rule actions
Changes
Support references to OLD and NEW within subqueries in rule actions (Dean Rasheed, Tom Lane) §
Such references are really lateral references, but the server could crash if the subquery wasn't explicitly marked with LATERAL. Arrange to do that implicitly when necessary.
Related records (4)
- Same changePostgreSQL 14.8 · Support references to OLD and NEW within subqueries in rule actions
- Same changePostgreSQL 13.11 · Support references to OLD and NEW within subqueries in rule actions
- Same changePostgreSQL 12.15 · Support references to OLD and NEW within subqueries in rule actions
- Same changePostgreSQL 11.20 · Support references to OLD and NEW within subqueries in rule actions
Bug fixesWhen decompiling a rule or SQL function body containing INSERT/UPDATE/DELETE within WITH, take care to print the correct alias for the target table
Changes
When decompiling a rule or SQL function body containing INSERT/UPDATE/DELETE within WITH, take care to print the correct alias for the target table (Tom Lane) §
Related records (4)
- Same changePostgreSQL 14.8 · When decompiling a rule or SQL function body containing INSERT/UPDATE/DELETE within WITH, take care to print the correct alias for the target table
- Same changePostgreSQL 13.11 · When decompiling a rule or SQL function body containing INSERT/UPDATE/DELETE within WITH, take care to print the correct alias for the target table
- Same changePostgreSQL 12.15 · When decompiling a rule or SQL function body containing INSERT/UPDATE/DELETE within WITH, take care to print the correct alias for the target table
- Same changePostgreSQL 11.20 · When decompiling a rule or SQL function body containing INSERT/UPDATE/DELETE within WITH, take care to print the correct alias for the target table
Bug fixesFix glitches in SERIALIZABLE READ ONLY optimization
Changes
Fix glitches in SERIALIZABLE READ ONLY optimization (Thomas Munro) § §
Transactions already marked as “doomed” confused the safe-snapshot optimization for SERIALIZABLE READ ONLY transactions. The optimization was unnecessarily skipped in some cases. In other cases an assertion failure occurred (but there was no problem in non-assert builds).
Related records (4)
- Same changePostgreSQL 14.8 · Fix glitches in SERIALIZABLE READ ONLY optimization
- Same changePostgreSQL 13.11 · Fix glitches in SERIALIZABLE READ ONLY optimization
- Same changePostgreSQL 12.15 · Fix glitches in SERIALIZABLE READ ONLY optimization
- Same changePostgreSQL 11.20 · Fix glitches in SERIALIZABLE READ ONLY optimization
Bug fixesAvoid leaking cache callback slots in the pgoutput logical decoding plugin
Changes
Avoid leaking cache callback slots in the pgoutput logical decoding plugin (Shi Yu) §
Multiple cycles of starting up and shutting down the plugin within a single session would eventually lead to an “out of relcache_callback_list slots” error.
Related records (4)
- Same changePostgreSQL 14.8 · Avoid leaking cache callback slots in the pgoutput logical decoding plugin
- Same changePostgreSQL 13.11 · Avoid leaking cache callback slots in the pgoutput logical decoding plugin
- Same changePostgreSQL 12.15 · Avoid leaking cache callback slots in the pgoutput logical decoding plugin
- Same changePostgreSQL 11.20 · Avoid leaking cache callback slots in the pgoutput logical decoding plugin
ImprovementsAvoid unnecessary calls to custom validators for index operator class options
Changes
Avoid unnecessary calls to custom validators for index operator class options (Alexander Korotkov) §
This change fixes some cases where an unexpected error was thrown.
ImprovementsAvoid useless work while scanning a multi-column BRIN index with multiple scan keys
Changes
Avoid useless work while scanning a multi-column BRIN index with multiple scan keys (Tomas Vondra) §
The existing code effectively considered only the last scan key while deciding whether a range matched, thus usually scanning more of the index than it needed to.
Related records (1)
Bug fixesFix netmask handling in BRIN inet_minmax_multi_ops opclass
Changes
Fix netmask handling in BRIN inet_minmax_multi_ops opclass (Tomas Vondra) §
This error triggered an assertion failure in assert-enabled builds, but is mostly harmless in production builds.
Related records (1)
Bug fixesFix dereference of dangling pointer during buffering build of a GiST index
Changes
Fix dereference of dangling pointer during buffering build of a GiST index (Alexander Lakhin) §
This error seems to usually be harmless in production builds, as the fetched value is noncritical; but in principle it could cause a server crash.
Related records (4)
- Same changePostgreSQL 14.8 · Fix dereference of dangling pointer during buffering build of a GiST index
- Same changePostgreSQL 13.11 · Fix dereference of dangling pointer during buffering build of a GiST index
- Same changePostgreSQL 12.15 · Fix dereference of dangling pointer during buffering build of a GiST index
- Same changePostgreSQL 11.20 · Fix dereference of dangling pointer during buffering build of a GiST index
ImprovementsIgnore dropped columns and generated columns during logical replication of an update or delete action
Changes
Ignore dropped columns and generated columns during logical replication of an update or delete action (Onder Kalaci, Shi Yu) § §
Replication with the REPLICA IDENTITY FULL option failed if the table contained such columns.
Related records (4)
- Same changePostgreSQL 14.8 · Ignore dropped columns and generated columns during logical replication of an update or delete action
- Same changePostgreSQL 13.11 · Ignore dropped columns and generated columns during logical replication of an update or delete action
- Same changePostgreSQL 12.15 · Ignore dropped columns and generated columns during logical replication of an update or delete action
- Related commitsPostgreSQL 11.20 · Ignore dropped columns during logical replication of an update or delete action
Bug fixesCorrect the name of the wait event for SLRU buffer I/O for commit timestamps
Changes
Correct the name of the wait event for SLRU buffer I/O for commit timestamps (Alexander Lakhin) §
This wait event is named CommitTsBuffer according to the documentation, but the code had it as CommitTSBuffer. Change the code to match the documentation, as that way is more consistent with the naming of related wait events.
ImprovementsRe-activate reporting of wait event SLRUFlushSync
Changes
Re-activate reporting of wait event SLRUFlushSync (Thomas Munro) §
Reporting of this type of wait was accidentally removed in code refactoring.
Related records (1)
ImprovementsAvoid possible underflow when calculating how many WAL segments to keep
Changes
Avoid possible underflow when calculating how many WAL segments to keep (Kyotaro Horiguchi) §
This could result in not honoring wal_keep_size accurately.
ImprovementsDisable startup progress reporting overhead in standby mode
Changes
Disable startup progress reporting overhead in standby mode (Bharath Rupireddy) §
In standby mode, we don't actually report progress of recovery, but we were doing work to track it anyway.
ImprovementsSupport RSA-PSS certificates with SCRAM-SHA-256 channel binding
Changes
Support RSA-PSS certificates with SCRAM-SHA-256 channel binding (Jacob Champion, Heikki Linnakangas) §
This feature requires building with OpenSSL 1.1.1 or newer. Both the server and libpq are affected.
Related records (4)
- Same changePostgreSQL 14.8 · Support RSA-PSS certificates with SCRAM-SHA-256 channel binding
- Same changePostgreSQL 13.11 · Support RSA-PSS certificates with SCRAM-SHA-256 channel binding
- Same changePostgreSQL 12.15 · Support RSA-PSS certificates with SCRAM-SHA-256 channel binding
- Same changePostgreSQL 11.20 · Support RSA-PSS certificates with SCRAM-SHA-256 channel binding
ImprovementsAvoid race condition with process ID tracking on Windows
Changes
Avoid race condition with process ID tracking on Windows (Thomas Munro) § § §
The operating system could recycle a PID before the postmaster observed that that child process was gone. This could lead to tracking more than one child with the same PID, resulting in confusion.
Related records (4)
- Same changePostgreSQL 14.8 · Avoid race condition with process ID tracking on Windows
- Same changePostgreSQL 13.11 · Avoid race condition with process ID tracking on Windows
- Same changePostgreSQL 12.15 · Avoid race condition with process ID tracking on Windows
- Same changePostgreSQL 11.20 · Avoid race condition with process ID tracking on Windows
Bug fixesFix list_copy_head() to work correctly on an empty List
Changes
Fix list_copy_head() to work correctly on an empty List (David Rowley) §
This case is not known to be reached by any core PostgreSQL code, but extensions might rely on it working.
ImprovementsAdd missing cases to SPI_result_code_string()
Bug fixesFix erroneous Valgrind markings in AllocSetRealloc()
Changes
Fix erroneous Valgrind markings in AllocSetRealloc() (Karina Litskevich) §
In the unusual case where the size of a large (>8kB) palloc chunk is decreased, a Valgrind-aware build would mismark the defined-ness state of the memory released from the chunk, possibly causing incorrect results during Valgrind testing.
Related records (4)
- Same changePostgreSQL 14.8 · Fix erroneous Valgrind markings in AllocSetRealloc()
- Same changePostgreSQL 13.11 · Fix erroneous Valgrind markings in AllocSetRealloc()
- Same changePostgreSQL 12.15 · Fix erroneous Valgrind markings in AllocSetRealloc()
- Same changePostgreSQL 11.20 · Fix erroneous Valgrind markings in AllocSetRealloc()
Bug fixesFix assertion failure for MERGE into a partitioned table with row-level security enabled
Changes
Fix assertion failure for MERGE into a partitioned table with row-level security enabled (Dean Rasheed) §
ImprovementsAvoid assertion failure when decoding a transactional logical replication message
Changes
Avoid assertion failure when decoding a transactional logical replication message (Tomas Vondra) §
Related records (4)
- Same changePostgreSQL 14.8 · Avoid assertion failure when decoding a transactional logical replication message
- Same changePostgreSQL 13.11 · Avoid assertion failure when decoding a transactional logical replication message
- Same changePostgreSQL 12.15 · Avoid assertion failure when decoding a transactional logical replication message
- Same changePostgreSQL 11.20 · Avoid assertion failure when decoding a transactional logical replication message
ImprovementsAvoid locale sensitivity when processing regular expression escapes
Changes
Avoid locale sensitivity when processing regular expression escapes (Jeff Davis) §
A backslash followed by a non-ASCII character could sometimes cause an assertion failure, depending on the prevailing locale.
Related records (4)
- Same changePostgreSQL 14.8 · Avoid locale sensitivity when processing regular expression escapes
- Same changePostgreSQL 13.11 · Avoid locale sensitivity when processing regular expression escapes
- Same changePostgreSQL 12.15 · Avoid locale sensitivity when processing regular expression escapes
- Same changePostgreSQL 11.20 · Avoid locale sensitivity when processing regular expression escapes
ImprovementsAvoid trying to write an empty WAL record in log_newpage_range() when the last few pages in the specified range are empty
Changes
Avoid trying to write an empty WAL record in log_newpage_range() when the last few pages in the specified range are empty (Matthias van de Meent) §
It is not entirely clear whether this case is reachable in released branches, but if it is then an assertion failure could occur.
Related records (4)
- Same changePostgreSQL 14.8 · Avoid trying to write an empty WAL record in log_newpage_range() when the last few pages in the specified range are empty
- Same changePostgreSQL 13.11 · Avoid trying to write an empty WAL record in log_newpage_range() when the last few pages in the specified range are empty
- Same changePostgreSQL 12.15 · Avoid trying to write an empty WAL record in log_newpage_range() when the last few pages in the specified range are empty
- Same changePostgreSQL 11.20 · Avoid trying to write an empty WAL record in log_newpage_range() when the last few pages in the specified range are empty
Bug fixesFix session-lifespan memory leakage in plpgsql DO blocks that use cast expressions
Changes
Fix session-lifespan memory leakage in plpgsql DO blocks that use cast expressions (Ajit Awekar, Tom Lane) §
Related records (3)
- Same changePostgreSQL 14.8 · Fix session-lifespan memory leakage in plpgsql DO blocks that use cast expressions
- Same changePostgreSQL 13.11 · Fix session-lifespan memory leakage in plpgsql DO blocks that use cast expressions
- Same changePostgreSQL 12.15 · Fix session-lifespan memory leakage in plpgsql DO blocks that use cast expressions
ImprovementsTighten array dimensionality checks when converting Perl list structures to multi-dimensional SQL arrays
Changes
Tighten array dimensionality checks when converting Perl list structures to multi-dimensional SQL arrays (Tom Lane) §
plperl could misbehave when the nesting of sub-lists is inconsistent so that the data does not represent a rectangular array of values. Such cases now produce errors, but previously they could result in a crash or garbage output.
Related records (4)
- Same changePostgreSQL 14.8 · Tighten array dimensionality checks when converting Perl list structures to multi-dimensional SQL arrays
- Same changePostgreSQL 13.11 · Tighten array dimensionality checks when converting Perl list structures to multi-dimensional SQL arrays
- Same changePostgreSQL 12.15 · Tighten array dimensionality checks when converting Perl list structures to multi-dimensional SQL arrays
- Same changePostgreSQL 11.20 · Tighten array dimensionality checks when converting Perl list structures to multi-dimensional SQL arrays
ImprovementsTighten array dimensionality checks when converting Python list structures to multi-dimensional SQL arrays
Changes
Tighten array dimensionality checks when converting Python list structures to multi-dimensional SQL arrays (Tom Lane) § §
plpython could misbehave when dealing with empty sub-lists, or when the nesting of sub-lists is inconsistent so that the data does not represent a rectangular array of values. The former should result in an empty output array, and the latter in an error. But some cases resulted in a crash, and others in unexpected output.
Related records (4)
- Same changePostgreSQL 14.8 · Tighten array dimensionality checks when converting Python list structures to multi-dimensional SQL arrays
- Same changePostgreSQL 13.11 · Tighten array dimensionality checks when converting Python list structures to multi-dimensional SQL arrays
- Same changePostgreSQL 12.15 · Tighten array dimensionality checks when converting Python list structures to multi-dimensional SQL arrays
- Same changePostgreSQL 11.20 · Tighten array dimensionality checks when converting Python list structures to multi-dimensional SQL arrays
Bug fixesFix unwinding of exception stack in plpython
Changes
Fix unwinding of exception stack in plpython (Xing Guo) §
Some rare failure cases could return without cleaning up the PG_TRY exception stack, risking a crash if another error was raised before the next stack level was unwound.
Related records (4)
Bug fixesFix inconsistent GSS-encryption error handling in libpq's PQconnectPoll()
Changes
Fix inconsistent GSS-encryption error handling in libpq's PQconnectPoll() (Michael Paquier) §
With gssencmode set to require, the connection was not marked dead after a GSS initialization failure. Make it fail immediately, as the equivalent case for TLS encryption has long done.
Related records (3)
- Same changePostgreSQL 14.8 · Fix inconsistent GSS-encryption error handling in libpq's PQconnectPoll()
- Same changePostgreSQL 13.11 · Fix inconsistent GSS-encryption error handling in libpq's PQconnectPoll()
- Same changePostgreSQL 12.15 · Fix inconsistent GSS-encryption error handling in libpq's PQconnectPoll()
Bug fixesFix possible data corruption in ecpg programs built with the -C ORACLE option
Changes
Fix possible data corruption in ecpg programs built with the -C ORACLE option (Kyotaro Horiguchi) §
When ecpg_get_data() is called with varcharsize set to zero, it could write a terminating zero character into the last byte of the preceding field, truncating the data in that field.
Related records (4)
- Same changePostgreSQL 14.8 · Fix possible data corruption in ecpg programs built with the -C ORACLE option
- Same changePostgreSQL 13.11 · Fix possible data corruption in ecpg programs built with the -C ORACLE option
- Same changePostgreSQL 12.15 · Fix possible data corruption in ecpg programs built with the -C ORACLE option
- Same changePostgreSQL 11.20 · Fix possible data corruption in ecpg programs built with the -C ORACLE option
Bug fixesFix pg_dump so that partitioned tables that are hash-partitioned on an enum-type column can be restored successfully
Changes
Fix pg_dump so that partitioned tables that are hash-partitioned on an enum-type column can be restored successfully (Tom Lane) §
Since the hash codes for enum values depend on the OIDs assigned to the enum, they are typically different after a dump and restore, meaning that rows often need to go into a different partition than they were in originally. Users can work around that by specifying the --load-via-partition-root option; but since there is very little chance of success without that, teach pg_dump to apply it automatically to such tables.
Also, fix pg_restore to not try to TRUNCATE target tables before restoring into them when --load-via-partition-root mode is used. This avoids a hazard of deadlocks and lost data.
Related records (4)
- Same changePostgreSQL 14.8 · Fix pg_dump so that partitioned tables that are hash-partitioned on an enum-type column can be restored successfully
- Same changePostgreSQL 13.11 · Fix pg_dump so that partitioned tables that are hash-partitioned on an enum-type column can be restored successfully
- Same changePostgreSQL 12.15 · Fix pg_dump so that partitioned tables that are hash-partitioned on an enum-type column can be restored successfully
- Same changePostgreSQL 11.20 · Fix pg_dump so that partitioned tables that are hash-partitioned on an enum-type column can be restored successfully
ImprovementsCorrectly detect non-seekable files on Windows
ImprovementsIn pgbench's “prepared” mode, prepare all the commands in a pipeline before starting the pipeline
Changes
In pgbench's “prepared” mode, prepare all the commands in a pipeline before starting the pipeline (Álvaro Herrera) §
This avoids a failure when a pgbench script tries to start a serializable transaction inside a pipeline.
Related records (1)
ImprovementsIn contrib/amcheck's heap checking code, deal correctly with tuples having zero xmin or xmax
ImprovementsIn contrib/amcheck, deal sanely with xids that appear to be before epoch zero
Changes
In contrib/amcheck, deal sanely with xids that appear to be before epoch zero (Andres Freund) §
In cases of corruption we might see a wrapped-around 32-bit xid that appears to be before the first xid epoch. Promoting such a value to 64-bit form produced a value far in the future, resulting in wrong reports. Return FirstNormalFullTransactionId in such cases so that things work reasonably sanely.
Related records (1)
ImprovementsIn contrib/basebackup_to_shell, properly detect failure to open a pipe
Changes
In contrib/basebackup_to_shell, properly detect failure to open a pipe (Robert Haas) §
Bug fixesIn contrib/hstore_plpython, avoid crashing if the Python value to be transformed isn't a mapping
Changes
In contrib/hstore_plpython, avoid crashing if the Python value to be transformed isn't a mapping (Dmitry Dolgov, Tom Lane) §
This should give an error, but Python 3 changed some APIs in a way that caused the check to misbehave, allowing a crash to ensue.
Related records (4)
- Same changePostgreSQL 14.8 · In contrib/hstore_plpython, avoid crashing if the Python value to be transformed isn't a mapping
- Same changePostgreSQL 13.11 · In contrib/hstore_plpython, avoid crashing if the Python value to be transformed isn't a mapping
- Same changePostgreSQL 12.15 · In contrib/hstore_plpython, avoid crashing if the Python value to be transformed isn't a mapping
- Same changePostgreSQL 11.20 · In contrib/hstore_plpython, avoid crashing if the Python value to be transformed isn't a mapping
ImprovementsRequire the siglen option of a GiST index on an ltree column, if specified, to be a multiple of 4
Changes
Require the siglen option of a GiST index on an ltree column, if specified, to be a multiple of 4 (Alexander Korotkov) §
Other values result in misaligned accesses to index content, which is harmless on Intel-compatible hardware but can cause a crash on some other architectures.
ImprovementsIn contrib/pageinspect, add defenses against incorrect input for the gist_page_items() function
Changes
In contrib/pageinspect, add defenses against incorrect input for the gist_page_items() function (Dmitry Koval) §
Related records (1)
Bug fixesFix misbehavior in contrib/pg_trgm with an unsatisfiable regular expression
Changes
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regular expression (Tom Lane) §
A regex such as $foo is legal but unsatisfiable; the regex compiler recognizes that and produces an empty NFA graph. Attempting to optimize such a graph into a pg_trgm GIN or GiST index qualification resulted in accessing off the end of a work array, possibly leading to crashes.
Related records (4)
- Same changePostgreSQL 14.8 · Fix misbehavior in contrib/pg_trgm with an unsatisfiable regular expression
- Same changePostgreSQL 13.11 · Fix misbehavior in contrib/pg_trgm with an unsatisfiable regular expression
- Same changePostgreSQL 12.15 · Fix misbehavior in contrib/pg_trgm with an unsatisfiable regular expression
- Same changePostgreSQL 11.20 · Fix misbehavior in contrib/pg_trgm with an unsatisfiable regular expression
Bug fixesFix handling of escape sequences in contrib/postgres_fdw's application_name parameter
Changes
Fix handling of escape sequences in contrib/postgres_fdw's application_name parameter (Kyotaro Horiguchi, Michael Paquier) §
The code to expand these could fail if executed in a background process, as for example during auto-analyze of a foreign table.
ImprovementsIn contrib/pg_walinspect, limit memory usage of pg_get_wal_records_info()
Changes
In contrib/pg_walinspect, limit memory usage of pg_get_wal_records_info() (Bharath Rupireddy) §
ImprovementsUse the --strip-unneeded option when stripping static libraries with GNU-compatible strip
Changes
Use the --strip-unneeded option when stripping static libraries with GNU-compatible strip (Tom Lane) §
Previously, make install-strip used the -x option in this case. This change avoids misbehavior of llvm-strip, and gives slightly smaller output as well.
Related records (4)
- Same changePostgreSQL 14.8 · Use the --strip-unneeded option when stripping static libraries with GNU-compatible strip
- Same changePostgreSQL 13.11 · Use the --strip-unneeded option when stripping static libraries with GNU-compatible strip
- Same changePostgreSQL 12.15 · Use the --strip-unneeded option when stripping static libraries with GNU-compatible strip
- Same changePostgreSQL 11.20 · Use the --strip-unneeded option when stripping static libraries with GNU-compatible strip
ImprovementsStop recommending auto-download of DTD files for building the documentation, and indeed disable it
Changes
Stop recommending auto-download of DTD files for building the documentation, and indeed disable it (Aleksander Alekseev, Peter Eisentraut, Tom Lane) §
It appears no longer possible to build the SGML documentation without a local installation of the DocBook DTD files. Formerly xsltproc could download those files on-the-fly from sourceforge.net; but sourceforge.net now permits only HTTPS access, and no common version of xsltproc supports that. Hence, remove the bits of our documentation suggesting that that's possible or useful, and instead add xsltproc's --nonet option to the build recipes.
Related records (4)
- Same changePostgreSQL 14.8 · Stop recommending auto-download of DTD files for building the documentation, and indeed disable it
- Same changePostgreSQL 13.11 · Stop recommending auto-download of DTD files for building the documentation, and indeed disable it
- Same changePostgreSQL 12.15 · Stop recommending auto-download of DTD files for building the documentation, and indeed disable it
- Same changePostgreSQL 11.20 · Stop recommending auto-download of DTD files for building the documentation, and indeed disable it
ImprovementsWhen running TAP tests in PGXS builds, use a saner location for the temporary portlock directory
Changes
When running TAP tests in PGXS builds, use a saner location for the temporary portlock directory (Peter Eisentraut) §
Place it under tmp_check in the build directory. With the previous coding, a PGXS build would try to place it in the installation directory, which is not necessarily writable.
Related records (4)
- Same changePostgreSQL 14.8 · When running TAP tests in PGXS builds, use a saner location for the temporary portlock directory
- Same changePostgreSQL 13.11 · When running TAP tests in PGXS builds, use a saner location for the temporary portlock directory
- Same changePostgreSQL 12.15 · When running TAP tests in PGXS builds, use a saner location for the temporary portlock directory
- Same changePostgreSQL 11.20 · When running TAP tests in PGXS builds, use a saner location for the temporary portlock directory
ImprovementsUpdate time zone data files to tzdata release 2023c for DST law changes in Egypt, Greenland, Morocco, and Palestine.
Changes
Update time zone data files to tzdata release 2023c for DST law changes in Egypt, Greenland, Morocco, and Palestine. (Tom Lane) §
When observing Moscow time, Europe/Kirov and Europe/Volgograd now use the abbreviations MSK/MSD instead of numeric abbreviations, for consistency with other timezones observing Moscow time. Also, America/Yellowknife is no longer distinct from America/Edmonton; this affects some pre-1948 timestamps in that area.
Related records (4)
- Same changePostgreSQL 14.8 · Update time zone data files to tzdata release 2023c for DST law changes in Egypt, Greenland, Morocco, and Palestine.
- Same changePostgreSQL 13.11 · Update time zone data files to tzdata release 2023c for DST law changes in Egypt, Greenland, Morocco, and Palestine.
- Same changePostgreSQL 12.15 · Update time zone data files to tzdata release 2023c for DST law changes in Egypt, Greenland, Morocco, and Palestine.
- Same changePostgreSQL 11.20 · Update time zone data files to tzdata release 2023c for DST law changes in Egypt, Greenland, Morocco, and Palestine.
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.