DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 9.5.20 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
9.5.20
2019-11-14
9.5.20stableSupport ends 2021-02-11
PostgreSQL 9.5.20
Migration and compatibility
A dump/restore is not required for those running 9.5.X.
However, if you use the contrib/intarray extension with a GiST index, and you rely on indexed searches for the <@ operator, see the entry below about that.
Also, if you are upgrading from a version earlier than 9.5.13, see Section E.13.
ImprovementsDisallow changing a multiply-inherited column's type if not all parent tables were changed
Changes
Disallow changing a multiply-inherited column's type if not all parent tables were changed (Tom Lane)
Previously, this was allowed, whereupon queries on the now-out-of-sync parent would fail.
Related records (3)
- Same changePostgreSQL 11.6 · Disallow changing a multiply-inherited column's type if not all parent tables were changed
- Same changePostgreSQL 10.11 · Disallow changing a multiply-inherited column's type if not all parent tables were changed
- Same changePostgreSQL 9.6.16 · Disallow changing a multiply-inherited column's type if not all parent tables were changed
ImprovementsPrevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction
Changes
Prevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction (Nathan Bossart, Jeremy Schneider)
This case would lead to VACUUM failing until the old transaction terminates.
Related records (5)
- Same changePostgreSQL 12.1 · Prevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction
- Same changePostgreSQL 11.6 · Prevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction
- Same changePostgreSQL 10.11 · Prevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction
- Same changePostgreSQL 9.6.16 · Prevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction
- Same changePostgreSQL 9.4.25 · Prevent VACUUM from trying to freeze an old multixact ID involving a still-running transaction
ImprovementsEnsure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated
Changes
Ensure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated (Andrew Gierth)
This oversight could result in assorted failures when the offsets are nontrivial expressions. One example is that a function parameter reference in such an expression would fail if the function was inlined.
Related records (5)
- Same changePostgreSQL 12.1 · Ensure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated
- Same changePostgreSQL 11.6 · Ensure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated
- Same changePostgreSQL 10.11 · Ensure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated
- Same changePostgreSQL 9.6.16 · Ensure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated
- Same changePostgreSQL 9.4.25 · Ensure that offset expressions in WINDOW clauses are processed when a query's expressions are manipulated
Bug fixesFix handling of whole-row variables in WITH CHECK OPTION expressions and row-level-security policy expressions
Changes
Fix handling of whole-row variables in WITH CHECK OPTION expressions and row-level-security policy expressions (Andres Freund)
Previously, such usage might result in bogus errors about row type mismatches.
Related records (4)
- Same changePostgreSQL 11.6 · Fix handling of whole-row variables in WITH CHECK OPTION expressions and row-level-security policy expressions
- Same changePostgreSQL 10.11 · Fix handling of whole-row variables in WITH CHECK OPTION expressions and row-level-security policy expressions
- Same changePostgreSQL 9.6.16 · Fix handling of whole-row variables in WITH CHECK OPTION expressions and row-level-security policy expressions
- Same changePostgreSQL 9.4.25 · Fix handling of whole-row variables in WITH CHECK OPTION expressions and row-level-security policy expressions
ImprovementsAvoid postmaster failure if a parallel query requests a background worker when no postmaster child process array slots remain free
Changes
Avoid postmaster failure if a parallel query requests a background worker when no postmaster child process array slots remain free (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.1 · Avoid postmaster failure if a parallel query requests a background worker when no postmaster child process array slots remain free
- Same changePostgreSQL 11.6 · Avoid postmaster failure if a parallel query requests a background worker when no postmaster child process array slots remain free
- Same changePostgreSQL 10.11 · Avoid postmaster failure if a parallel query requests a background worker when no postmaster child process array slots remain free
- Same changePostgreSQL 9.6.16 · Avoid postmaster failure if a parallel query requests a background worker when no postmaster child process array slots remain free
ImprovementsPrevent possible double-free if a BEFORE UPDATE trigger returns the old tuple as-is, and it is not the last such trigger
Changes
Prevent possible double-free if a BEFORE UPDATE trigger returns the old tuple as-is, and it is not the last such trigger (Thomas Munro)
Related records (4)
- Same changePostgreSQL 11.6 · Prevent possible double-free if a BEFORE UPDATE trigger returns the old tuple as-is, and it is not the last such trigger
- Same changePostgreSQL 10.11 · Prevent possible double-free if a BEFORE UPDATE trigger returns the old tuple as-is, and it is not the last such trigger
- Same changePostgreSQL 9.6.16 · Prevent possible double-free if a BEFORE UPDATE trigger returns the old tuple as-is, and it is not the last such trigger
- Same changePostgreSQL 9.4.25 · Prevent possible double-free if a BEFORE UPDATE trigger returns the old tuple as-is, and it is not the last such trigger
ImprovementsProvide a relevant error context line when an error occurs while setting GUC parameters during parallel worker startup
Changes
Provide a relevant error context line when an error occurs while setting GUC parameters during parallel worker startup (Thomas Munro)
Related records (4)
- Same changePostgreSQL 12.1 · Provide a relevant error context line when an error occurs while setting GUC parameters during parallel worker startup
- Same changePostgreSQL 11.6 · Provide a relevant error context line when an error occurs while setting GUC parameters during parallel worker startup
- Same changePostgreSQL 10.11 · Provide a relevant error context line when an error occurs while setting GUC parameters during parallel worker startup
- Same changePostgreSQL 9.6.16 · Provide a relevant error context line when an error occurs while setting GUC parameters during parallel worker startup
Bug fixesIn serializable mode, ensure that row-level predicate locks are acquired on the correct version of the row
Changes
In serializable mode, ensure that row-level predicate locks are acquired on the correct version of the row (Thomas Munro, Heikki Linnakangas)
If the visible version of the row is HOT-updated, the lock might be taken on its now-dead predecessor, resulting in subtle failures to guarantee serialization.
Related records (4)
- Same changePostgreSQL 11.6 · In serializable mode, ensure that row-level predicate locks are acquired on the correct version of the row
- Same changePostgreSQL 10.11 · In serializable mode, ensure that row-level predicate locks are acquired on the correct version of the row
- Same changePostgreSQL 9.6.16 · In serializable mode, ensure that row-level predicate locks are acquired on the correct version of the row
- Same changePostgreSQL 9.4.25 · In serializable mode, ensure that row-level predicate locks are acquired on the correct version of the row
ImprovementsEnsure that fsync() is applied only to files that are opened read/write
Changes
Ensure that fsync() is applied only to files that are opened read/write (Andres Freund, Michael Paquier)
Some code paths tried to do this after opening a file read-only, but on some platforms that causes "bad file descriptor" or similar errors.
Related records (5)
- Same changePostgreSQL 12.1 · Ensure that fsync() is applied only to files that are opened read/write
- Same changePostgreSQL 11.6 · Ensure that fsync() is applied only to files that are opened read/write
- Same changePostgreSQL 10.11 · Ensure that fsync() is applied only to files that are opened read/write
- Same changePostgreSQL 9.6.16 · Ensure that fsync() is applied only to files that are opened read/write
- Same changePostgreSQL 9.4.25 · Ensure that fsync() is applied only to files that are opened read/write
ImprovementsAllow encoding conversion to succeed on longer strings than before
Changes
Allow encoding conversion to succeed on longer strings than before (Álvaro Herrera, Tom Lane)
Previously, there was a hard limit of 0.25GB on the input string, but now it will work as long as the converted output is not over 1GB.
Related records (5)
- Same changePostgreSQL 12.1 · Allow encoding conversion to succeed on longer strings than before
- Same changePostgreSQL 11.6 · Allow encoding conversion to succeed on longer strings than before
- Same changePostgreSQL 10.11 · Allow encoding conversion to succeed on longer strings than before
- Same changePostgreSQL 9.6.16 · Allow encoding conversion to succeed on longer strings than before
- Same changePostgreSQL 9.4.25 · Allow encoding conversion to succeed on longer strings than before
ImprovementsAllow repalloc() to give back space when a large chunk is reduced in size
Changes
Allow repalloc() to give back space when a large chunk is reduced in size (Tom Lane)
Related records (5)
- Same changePostgreSQL 12.1 · Allow repalloc() to give back space when a large chunk is reduced in size
- Same changePostgreSQL 11.6 · Allow repalloc() to give back space when a large chunk is reduced in size
- Same changePostgreSQL 10.11 · Allow repalloc() to give back space when a large chunk is reduced in size
- Same changePostgreSQL 9.6.16 · Allow repalloc() to give back space when a large chunk is reduced in size
- Same changePostgreSQL 9.4.25 · Allow repalloc() to give back space when a large chunk is reduced in size
ImprovementsEnsure that temporary WAL and history files are removed at the end of archive recovery
Changes
Ensure that temporary WAL and history files are removed at the end of archive recovery (Sawada Masahiko)
Related records (4)
- Same changePostgreSQL 12.1 · Ensure that temporary WAL and history files are removed at the end of archive recovery
- Same changePostgreSQL 11.6 · Ensure that temporary WAL and history files are removed at the end of archive recovery
- Same changePostgreSQL 10.11 · Ensure that temporary WAL and history files are removed at the end of archive recovery
- Same changePostgreSQL 9.6.16 · Ensure that temporary WAL and history files are removed at the end of archive recovery
ImprovementsAvoid failure in archive recovery if recovery_min_apply_delay is enabled
Changes
Avoid failure in archive recovery if recovery_min_apply_delay is enabled (Fujii Masao)
recovery_min_apply_delay is not typically used in this configuration, but it should work.
Related records (5)
- Same changePostgreSQL 12.1 · Avoid failure in archive recovery if recovery_min_apply_delay is enabled
- Same changePostgreSQL 11.6 · Avoid failure in archive recovery if recovery_min_apply_delay is enabled
- Same changePostgreSQL 10.11 · Avoid failure in archive recovery if recovery_min_apply_delay is enabled
- Same changePostgreSQL 9.6.16 · Avoid failure in archive recovery if recovery_min_apply_delay is enabled
- Same changePostgreSQL 9.4.25 · Avoid failure in archive recovery if recovery_min_apply_delay is enabled
ImprovementsAvoid unwanted delay during shutdown of a logical replication walsender
Changes
Avoid unwanted delay during shutdown of a logical replication walsender (Craig Ringer, Álvaro Herrera)
Related records (5)
- Same changePostgreSQL 12.1 · Avoid unwanted delay during shutdown of a logical replication walsender
- Same changePostgreSQL 11.6 · Avoid unwanted delay during shutdown of a logical replication walsender
- Same changePostgreSQL 10.11 · Avoid unwanted delay during shutdown of a logical replication walsender
- Same changePostgreSQL 9.6.16 · Avoid unwanted delay during shutdown of a logical replication walsender
- Same changePostgreSQL 9.4.25 · Avoid unwanted delay during shutdown of a logical replication walsender
ImprovementsCorrectly time-stamp replication messages for logical decoding
Changes
Correctly time-stamp replication messages for logical decoding (Jeff Janes)
This oversight resulted, for example, in pg_stat_subscription.last_msg_send_time usually reading as NULL.
Related records (5)
- Same changePostgreSQL 12.1 · Correctly time-stamp replication messages for logical decoding
- Same changePostgreSQL 11.6 · Correctly time-stamp replication messages for logical decoding
- Same changePostgreSQL 10.11 · Correctly time-stamp replication messages for logical decoding
- Same changePostgreSQL 9.6.16 · Correctly time-stamp replication messages for logical decoding
- Same changePostgreSQL 9.4.25 · Correctly time-stamp replication messages for logical decoding
ImprovementsIn logical decoding, ensure that sub-transactions are correctly accounted for when reconstructing a snapshot
Changes
In logical decoding, ensure that sub-transactions are correctly accounted for when reconstructing a snapshot (Masahiko Sawada)
This error leads to assertion failures; it's unclear whether any bad effects exist in production builds.
Related records (4)
- Same changePostgreSQL 11.6 · In logical decoding, ensure that sub-transactions are correctly accounted for when reconstructing a snapshot
- Same changePostgreSQL 10.11 · In logical decoding, ensure that sub-transactions are correctly accounted for when reconstructing a snapshot
- Same changePostgreSQL 9.6.16 · In logical decoding, ensure that sub-transactions are correctly accounted for when reconstructing a snapshot
- Same changePostgreSQL 9.4.25 · In logical decoding, ensure that sub-transactions are correctly accounted for when reconstructing a snapshot
Bug fixesFix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur
Changes
Fix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur (Dongming Liu)
Related records (5)
- Same changePostgreSQL 12.1 · Fix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur
- Same changePostgreSQL 11.6 · Fix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur
- Same changePostgreSQL 10.11 · Fix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur
- Same changePostgreSQL 9.6.16 · Fix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur
- Same changePostgreSQL 9.4.25 · Fix race condition during backend exit, when the backend process has previously waited for synchronous replication to occur
Bug fixesFix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf
Changes
Fix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf (Ian Barwick)
ALTER SYSTEM itself will not generate such a state, but external tools that modify postgresql.auto.conf could do so. Duplicate entries for the target variable will now be removed, and then the new setting (if any) will be appended at the end.
Related records (4)
- Same changePostgreSQL 11.6 · Fix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf
- Same changePostgreSQL 10.11 · Fix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf
- Same changePostgreSQL 9.6.16 · Fix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf
- Same changePostgreSQL 9.4.25 · Fix ALTER SYSTEM to cope with duplicate entries in postgresql.auto.conf
ImprovementsReject include directives with empty file names in configuration files, and report include-file recursion more clearly
Changes
Reject include directives with empty file names in configuration files, and report include-file recursion more clearly (Ian Barwick, Tom Lane)
Related records (3)
- Same changePostgreSQL 11.6 · Reject include directives with empty file names in configuration files, and report include-file recursion more clearly
- Same changePostgreSQL 10.11 · Reject include directives with empty file names in configuration files, and report include-file recursion more clearly
- Same changePostgreSQL 9.6.16 · Reject include directives with empty file names in configuration files, and report include-file recursion more clearly
ImprovementsAvoid logging complaints about abandoned connections when using PAM authentication
Changes
Avoid logging complaints about abandoned connections when using PAM authentication (Tom Lane)
libpq-based clients will typically make two connection attempts when a password is required, since they don't prompt their user for a password until their first connection attempt fails. Therefore the server is coded not to generate useless log spam when a client closes the connection upon being asked for a password. However, the PAM authentication code hadn't gotten that memo, and would generate several messages about a phantom authentication failure.
Related records (5)
- Same changePostgreSQL 12.1 · Avoid logging complaints about abandoned connections when using PAM authentication
- Same changePostgreSQL 11.6 · Avoid logging complaints about abandoned connections when using PAM authentication
- Same changePostgreSQL 10.11 · Avoid logging complaints about abandoned connections when using PAM authentication
- Same changePostgreSQL 9.6.16 · Avoid logging complaints about abandoned connections when using PAM authentication
- Same changePostgreSQL 9.4.25 · Avoid logging complaints about abandoned connections when using PAM authentication
Bug fixesFix some cases where an incomplete date specification is not detected in time with time zone input
Changes
Fix some cases where an incomplete date specification is not detected in time with time zone input (Alexander Lakhin)
If a time zone with a time-varying UTC offset is specified, then a date must be as well, so that the offset can be resolved. Depending on the syntax used, this check was not enforced in some cases, allowing bogus output to be produced.
Related records (4)
- Same changePostgreSQL 11.6 · Fix some cases where an incomplete date specification is not detected in time with time zone input
- Same changePostgreSQL 10.11 · Fix some cases where an incomplete date specification is not detected in time with time zone input
- Same changePostgreSQL 9.6.16 · Fix some cases where an incomplete date specification is not detected in time with time zone input
- Same changePostgreSQL 9.4.25 · Fix some cases where an incomplete date specification is not detected in time with time zone input
Bug fixesFix misbehavior of bitshiftright()
Changes
Fix misbehavior of bitshiftright() (Tom Lane)
The bitstring right shift operator failed to zero out padding space that exists in the last byte of the result when the bitstring length is not a multiple of 8. While invisible to most operations, any nonzero bits there would result in unexpected comparison behavior, since bitstring comparisons don't bother to ignore the extra bits, expecting them to always be zero.
If you have inconsistent data as a result of saving the output of bitshiftright() in a table, it's possible to fix it with something like
UPDATE mytab SET bitcol = ~(~bitcol) WHERE bitcol != ~(~bitcol);
Related records (5)
- Same changePostgreSQL 12.1 · Fix misbehavior of bitshiftright()
- Same changePostgreSQL 11.6 · Fix misbehavior of bitshiftright()
- Same changePostgreSQL 10.11 · Fix misbehavior of bitshiftright()
- Same changePostgreSQL 9.6.16 · Fix misbehavior of bitshiftright()
- Same changePostgreSQL 9.4.25 · Fix misbehavior of bitshiftright()
Bug fixesFix detection of edge-case integer overflow in interval multiplication
Changes
Fix detection of edge-case integer overflow in interval multiplication (Yuya Watari)
Related records (5)
- Same changePostgreSQL 12.1 · Fix detection of edge-case integer overflow in interval multiplication
- Same changePostgreSQL 11.6 · Fix detection of edge-case integer overflow in interval multiplication
- Same changePostgreSQL 10.11 · Fix detection of edge-case integer overflow in interval multiplication
- Same changePostgreSQL 9.6.16 · Fix detection of edge-case integer overflow in interval multiplication
- Same changePostgreSQL 9.4.25 · Fix detection of edge-case integer overflow in interval multiplication
Bug fixesFix incorrect compression logic for GIN posting lists
Changes
Fix incorrect compression logic for GIN posting lists (Heikki Linnakangas)
A GIN posting list item can require 7 bytes if the distance between adjacent indexed TIDs exceeds 16TB. One step in the logic was out of sync with that, and might try to write the value into a 6-byte buffer. In principle this could cause a stack overrun, but on most architectures it's likely that the next byte would be unused alignment padding, making the bug harmless. In any case the bug would be very difficult to hit.
Related records (4)
- Same changePostgreSQL 11.6 · Fix incorrect compression logic for GIN posting lists
- Same changePostgreSQL 10.11 · Fix incorrect compression logic for GIN posting lists
- Same changePostgreSQL 9.6.16 · Fix incorrect compression logic for GIN posting lists
- Same changePostgreSQL 9.4.25 · Fix incorrect compression logic for GIN posting lists
Bug fixesFix handling of infinity, NaN, and NULL values in KNN-GiST
Changes
Fix handling of infinity, NaN, and NULL values in KNN-GiST (Alexander Korotkov)
The query's output order could be wrong (different from a plain sort's result) if some distances computed for non-null column values are infinity or NaN.
Related records (4)
- Same changePostgreSQL 11.6 · Fix handling of infinity, NaN, and NULL values in KNN-GiST
- Same changePostgreSQL 10.11 · Fix handling of infinity, NaN, and NULL values in KNN-GiST
- Same changePostgreSQL 9.6.16 · Fix handling of infinity, NaN, and NULL values in KNN-GiST
- Same changePostgreSQL 9.4.25 · Fix handling of infinity, NaN, and NULL values in KNN-GiST
Bug fixesFix handling of searches for NULL in KNN-SP-GiST
Changes
Fix handling of searches for NULL in KNN-SP-GiST (Nikita Glukhov)
Related records (4)
- Same changePostgreSQL 11.6 · Fix handling of searches for NULL in KNN-SP-GiST
- Same changePostgreSQL 10.11 · Fix handling of searches for NULL in KNN-SP-GiST
- Same changePostgreSQL 9.6.16 · Fix handling of searches for NULL in KNN-SP-GiST
- Same changePostgreSQL 9.4.25 · Fix handling of searches for NULL in KNN-SP-GiST
ImprovementsOn Windows, recognize additional spellings of the "Norwegian (Bokmål)" locale name
Changes
On Windows, recognize additional spellings of the "Norwegian (Bokmål)" locale name (Tom Lane)
Related records (5)
- Same changePostgreSQL 12.1 · On Windows, recognize additional spellings of the “Norwegian (Bokmål)” locale name
- Same changePostgreSQL 11.6 · On Windows, recognize additional spellings of the “Norwegian (Bokmål)” locale name
- Same changePostgreSQL 10.11 · On Windows, recognize additional spellings of the “Norwegian (Bokmål)” locale name
- Same changePostgreSQL 9.6.16 · On Windows, recognize additional spellings of the "Norwegian (Bokmål)" locale name
- Same changePostgreSQL 9.4.25 · On Windows, recognize additional spellings of the "Norwegian (Bokmål)" locale name
ImprovementsAvoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined
Changes
Avoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined (Tom Lane)
This risk was created by a misplaced declaration: ecpg_gettext() should not be visible to client code.
Related records (5)
- Same changePostgreSQL 12.1 · Avoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined
- Same changePostgreSQL 11.6 · Avoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined
- Same changePostgreSQL 10.11 · Avoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined
- Same changePostgreSQL 9.6.16 · Avoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined
- Same changePostgreSQL 9.4.25 · Avoid compile failure if an ECPG client includes ecpglib.h while having ENABLE_NLS defined
ImprovementsIn psql, resynchronize internal state about the server after an unexpected connection loss and successful reconnection
Changes
In psql, resynchronize internal state about the server after an unexpected connection loss and successful reconnection (Peter Billen, Tom Lane)
Ordinarily this is unnecessary since the state would be the same anyway. But it can matter in corner cases, such as where the connection might lead to one of several servers. This change causes psql to re-issue any interactive messages that it would have issued at startup, for example about whether SSL is in use.
Related records (4)
- Same changePostgreSQL 11.6 · In psql, resynchronize internal state about the server after an unexpected connection loss and successful reconnection
- Same changePostgreSQL 10.11 · In psql, resynchronize internal state about the server after an unexpected connection loss and successful reconnection
- Same changePostgreSQL 9.6.16 · In psql, resynchronize internal state about the server after an unexpected connection loss and successful reconnection
- Same changePostgreSQL 9.4.25 · In psql, resynchronize internal state about the server after an unexpected connection loss and successful reconnection
ImprovementsAvoid platform-specific null pointer dereference in psql
Changes
Avoid platform-specific null pointer dereference in psql (Quentin Rameau)
Related records (4)
- Same changePostgreSQL 11.6 · Avoid platform-specific null pointer dereference in psql
- Same changePostgreSQL 10.11 · Avoid platform-specific null pointer dereference in psql
- Same changePostgreSQL 9.6.16 · Avoid platform-specific null pointer dereference in psql
- Same changePostgreSQL 9.4.25 · Avoid platform-specific null pointer dereference in psql
Bug fixesFix pg_dump's handling of circular dependencies in views
Changes
Fix pg_dump's handling of circular dependencies in views (Tom Lane)
In some cases a view may depend on an object that pg_dump needs to dump later than the view; the most common example is that a query using GROUP BY on a primary-key column may be semantically invalid without the primary key. This is now handled by emitting a dummy CREATE VIEW command that just establishes the view's column names and types, and then later emitting CREATE OR REPLACE VIEW with the full view definition. Previously, the dummy definition was actually a CREATE TABLE command, and this was automagically converted to a view by a later CREATE RULE command. The new approach has been used successfully in PostgreSQL version 10 and later. We are back-patching it into older releases now because of reports that the previous method causes bogus error messages about the view's replica identity status. This change also avoids problems when trying to use the --clean option during a restore involving such a view.
Related records (2)
ImprovementsIn pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects
Changes
In pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects (Benjie Gillam)
Previously, if two triggers on different tables had the same names, they would be sorted in OID-based order, which is less desirable than sorting them by table name. Likewise for RLS policies.
Related records (5)
- Same changePostgreSQL 12.1 · In pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects
- Same changePostgreSQL 11.6 · In pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects
- Same changePostgreSQL 10.11 · In pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects
- Same changePostgreSQL 9.6.16 · In pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects
- Same changePostgreSQL 9.4.25 · In pg_dump, ensure stable output order for similarly-named triggers and row-level-security policy objects
Bug fixesFix pg_dump to work again with pre-8.3 source servers
Changes
Fix pg_dump to work again with pre-8.3 source servers (Tom Lane)
A previous fix caused pg_dump to always try to query pg_opfamily, but that catalog doesn't exist before version 8.3.
Related records (4)
- Same changePostgreSQL 11.6 · Fix pg_dump to work again with pre-8.3 source servers
- Same changePostgreSQL 10.11 · Fix pg_dump to work again with pre-8.3 source servers
- Same changePostgreSQL 9.6.16 · Fix pg_dump to work again with pre-8.3 source servers
- Same changePostgreSQL 9.4.25 · Fix pg_dump to work again with pre-8.3 source servers
ImprovementsIn pg_restore, treat -f - as meaning "output to stdout"
Changes
In pg_restore, treat -f - as meaning "output to stdout" (Álvaro Herrera)
This synchronizes pg_restore's behavior with some other applications, and in particular makes pre-v12 branches act similarly to version 12's pg_restore, simplifying creation of dump/restore scripts that work across multiple PostgreSQL versions. Before this change, pg_restore interpreted such a switch as meaning "output to a file named -", but few people would want that.
Related records (4)
- Same changePostgreSQL 11.6 · In pg_restore, treat -f - as meaning “output to stdout”
- Same changePostgreSQL 10.11 · In pg_restore, treat -f - as meaning “output to stdout”
- Same changePostgreSQL 9.6.16 · In pg_restore, treat -f - as meaning "output to stdout"
- Same changePostgreSQL 9.4.25 · In pg_restore, treat -f - as meaning "output to stdout"
ImprovementsImprove pg_upgrade's checks for the use of a data type that has changed representation, such as line
Changes
Improve pg_upgrade's checks for the use of a data type that has changed representation, such as line (Tomas Vondra)
The previous coding could be fooled by cases where the data type of interest underlies a stored column of a domain or composite type.
Related records (5)
- Same changePostgreSQL 12.1 · Improve pg_upgrade's checks for the use of a data type that has changed representation, such as line
- Same changePostgreSQL 11.6 · Improve pg_upgrade's checks for the use of a data type that has changed representation, such as line
- Same changePostgreSQL 10.11 · Improve pg_upgrade's checks for the use of a data type that has changed representation, such as line
- Same changePostgreSQL 9.6.16 · Improve pg_upgrade's checks for the use of a data type that has changed representation, such as line
- Same changePostgreSQL 9.4.25 · Improve pg_upgrade's checks for the use of a data type that has changed representation, such as line
ImprovementsDetect file read errors during pg_basebackup
Changes
Detect file read errors during pg_basebackup (Jeevan Chalke)
Related records (4)
ImprovementsIn pg_rewind with an online source cluster, disable timeouts, much as pg_dump does
Changes
In pg_rewind with an online source cluster, disable timeouts, much as pg_dump does (Alexander Kukushkin)
Related records (3)
- Same changePostgreSQL 11.6 · In pg_rewind with an online source cluster, disable timeouts, much as pg_dump does
- Same changePostgreSQL 10.11 · In pg_rewind with an online source cluster, disable timeouts, much as pg_dump does
- Same changePostgreSQL 9.6.16 · In pg_rewind with an online source cluster, disable timeouts, much as pg_dump does
Bug fixesFix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary
Changes
Fix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary (Andrey Lepikhov)
Related records (5)
- Same changePostgreSQL 12.1 · Fix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary
- Same changePostgreSQL 11.6 · Fix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary
- Same changePostgreSQL 10.11 · Fix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary
- Same changePostgreSQL 9.6.16 · Fix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary
- Same changePostgreSQL 9.4.25 · Fix failure in pg_waldump with the -s option, when a continuation WAL record ends exactly at a page boundary
ImprovementsIn pg_waldump, include the newitemoff field in btree page split records
Changes
In pg_waldump, include the newitemoff field in btree page split records (Peter Geoghegan)
Related records (3)
- Same changePostgreSQL 11.6 · In pg_waldump, include the newitemoff field in btree page split records
- Same changePostgreSQL 10.11 · In pg_waldump, include the newitemoff field in btree page split records
- Same changePostgreSQL 9.6.16 · In pg_waldump, include the newitemoff field in btree page split records
ImprovementsIn pg_waldump with the --bkp-details option, avoid emitting extra newlines for WAL records involving full-page writes
Changes
In pg_waldump with the --bkp-details option, avoid emitting extra newlines for WAL records involving full-page writes (Andres Freund)
Related records (4)
- Same changePostgreSQL 12.1 · In pg_waldump with the --bkp-details option, avoid emitting extra newlines for WAL records involving full-page writes
- Same changePostgreSQL 11.6 · In pg_waldump with the --bkp-details option, avoid emitting extra newlines for WAL records involving full-page writes
- Same changePostgreSQL 10.11 · In pg_waldump with the --bkp-details option, avoid emitting extra newlines for WAL records involving full-page writes
- Same changePostgreSQL 9.6.16 · In pg_waldump with the --bkp-details option, avoid emitting extra newlines for WAL records involving full-page writes
Bug fixesFix small memory leak in pg_waldump
Changes
Fix small memory leak in pg_waldump (Andres Freund)
Related records (4)
Bug fixesFix vacuumdb with a high --jobs option to handle running out of file descriptors better
Changes
Fix vacuumdb with a high --jobs option to handle running out of file descriptors better (Michael Paquier)
Related records (3)
- Same changePostgreSQL 11.6 · Fix vacuumdb with a high --jobs option to handle running out of file descriptors better
- Same changePostgreSQL 10.11 · Fix vacuumdb with a high --jobs option to handle running out of file descriptors better
- Same changePostgreSQL 9.6.16 · Fix vacuumdb with a high --jobs option to handle running out of file descriptors better
Bug fixesFix contrib/intarray's GiST opclasses to not fail for empty arrays with <@
Changes
Fix contrib/intarray's GiST opclasses to not fail for empty arrays with <@ (Tom Lane)
A clause like array_column <@ constant_array is considered indexable, but the index search may not find empty array values; of course, such entries should trivially match the search.
The only practical back-patchable fix for this requires making <@ index searches scan the whole index, which is what this patch does. This is unfortunate: it means that the query performance is likely worse than a plain sequential scan would be.
Applications whose performance is adversely impacted by this change have a couple of options. They could switch to a GIN index, which doesn't have this bug, or they could replace array_column <@ constant_array with array_column <@ constant_array AND array_column && constant_array. That will provide about the same performance as before, and it will find all non-empty subsets of the given constant array, which is all that could reliably be expected of the query before.
Related records (4)
- Same changePostgreSQL 11.6 · Fix contrib/intarray's GiST opclasses to not fail for empty arrays with <@
- Same changePostgreSQL 10.11 · Fix contrib/intarray's GiST opclasses to not fail for empty arrays with <@
- Same changePostgreSQL 9.6.16 · Fix contrib/intarray's GiST opclasses to not fail for empty arrays with <@
- Same changePostgreSQL 9.4.25 · Fix contrib/intarray's GiST opclasses to not fail for empty arrays with <@
ImprovementsAllow configure --with-python to succeed when only python3 or only python2 can be found
Changes
Allow configure --with-python to succeed when only python3 or only python2 can be found (Peter Eisentraut, Tom Lane)
Search for python, then python3, then python2, so that configure can succeed in the increasingly-more-common situation where there is no executable named simply python. It's still possible to override this choice by setting the PYTHON environment variable.
Bug fixesFix configure's test for presence of libperl so that it works on recent Red Hat releases
Changes
Fix configure's test for presence of libperl so that it works on recent Red Hat releases (Tom Lane)
Previously, it could fail if the user sets CFLAGS to -O0.
Related records (5)
- Same changePostgreSQL 12.1 · Fix configure's test for presence of libperl so that it works on recent Red Hat releases
- Same changePostgreSQL 11.6 · Fix configure's test for presence of libperl so that it works on recent Red Hat releases
- Same changePostgreSQL 10.11 · Fix configure's test for presence of libperl so that it works on recent Red Hat releases
- Same changePostgreSQL 9.6.16 · Fix configure's test for presence of libperl so that it works on recent Red Hat releases
- Same changePostgreSQL 9.4.25 · Fix configure's test for presence of libperl so that it works on recent Red Hat releases
Bug fixesEnsure correct code generation for spinlocks on PowerPC
Changes
Ensure correct code generation for spinlocks on PowerPC (Noah Misch)
The previous spinlock coding allowed the compiler to select register zero for use with an assembly instruction that does not accept that register, causing a build failure. We have seen only one long-ago report that matches this bug, but it could cause problems for people trying to build modified PostgreSQL code or use atypical compiler options.
Related records (5)
- Same changePostgreSQL 12.1 · Ensure correct code generation for spinlocks on PowerPC
- Same changePostgreSQL 11.6 · Ensure correct code generation for spinlocks on PowerPC
- Same changePostgreSQL 10.11 · Ensure correct code generation for spinlocks on PowerPC
- Same changePostgreSQL 9.6.16 · Ensure correct code generation for spinlocks on PowerPC
- Same changePostgreSQL 9.4.25 · Ensure correct code generation for spinlocks on PowerPC
ImprovementsOn PowerPC, avoid depending on the xlc compiler's __fetch_and_add() function
Changes
On PowerPC, avoid depending on the xlc compiler's __fetch_and_add() function (Noah Misch)
xlc 13 and newer interpret this function in a way incompatible with our usage, resulting in an unusable build of PostgreSQL. Fix by using custom assembly code instead.
Related records (3)
- Same changePostgreSQL 11.6 · On PowerPC, avoid depending on the xlc compiler's __fetch_and_add() function
- Same changePostgreSQL 10.11 · On PowerPC, avoid depending on the xlc compiler's __fetch_and_add() function
- Same changePostgreSQL 9.6.16 · On PowerPC, avoid depending on the xlc compiler's __fetch_and_add() function
ImprovementsOn AIX, don't use the compiler option -qsrcmsg
Changes
On AIX, don't use the compiler option -qsrcmsg (Noah Misch)
This avoids an internal compiler error with xlc v16.1.0, with little consequence other than changing the format of compiler error messages.
Related records (5)
- Same changePostgreSQL 12.1 · On AIX, don't use the compiler option -qsrcmsg
- Same changePostgreSQL 11.6 · On AIX, don't use the compiler option -qsrcmsg
- Same changePostgreSQL 10.11 · On AIX, don't use the compiler option -qsrcmsg
- Same changePostgreSQL 9.6.16 · On AIX, don't use the compiler option -qsrcmsg
- Same changePostgreSQL 9.4.25 · On AIX, don't use the compiler option -qsrcmsg
Bug fixesFix MSVC build process to cope with spaces in the file path of OpenSSL
Changes
Fix MSVC build process to cope with spaces in the file path of OpenSSL (Andrew Dunstan)
Related records (5)
- Same changePostgreSQL 12.1 · Fix MSVC build process to cope with spaces in the file path of OpenSSL
- Same changePostgreSQL 11.6 · Fix MSVC build process to cope with spaces in the file path of OpenSSL
- Same changePostgreSQL 10.11 · Fix MSVC build process to cope with spaces in the file path of OpenSSL
- Same changePostgreSQL 9.6.16 · Fix MSVC build process to cope with spaces in the file path of OpenSSL
- Same changePostgreSQL 9.4.25 · Fix MSVC build process to cope with spaces in the file path of OpenSSL
ImprovementsUpdate time zone data files to tzdata release 2019c for DST law changes in Fiji and Norfolk Island, plus historical corrections for Alberta, Austria, Belgium, British Columbia, Cambodia, Hong Kong, Indiana (Perry County), Kaliningrad, Kentucky, Michigan, Norfolk Island, South Korea, and Turkey.
Changes
Update time zone data files to tzdata release 2019c for DST law changes in Fiji and Norfolk Island, plus historical corrections for Alberta, Austria, Belgium, British Columbia, Cambodia, Hong Kong, Indiana (Perry County), Kaliningrad, Kentucky, Michigan, Norfolk Island, South Korea, and Turkey.
Related records (4)
- Same changePostgreSQL 11.6 · Update time zone data files to tzdata release 2019c for DST law changes in Fiji and Norfolk Island, plus historical corrections for Alberta, Austria, Belgium, British Columbia, Cambodia, Hong Kong, Indiana (Perry County), Kaliningrad, Kentucky, Michigan, Norfolk Island, South Korea, and Turkey.
- Same changePostgreSQL 10.11 · Update time zone data files to tzdata release 2019c for DST law changes in Fiji and Norfolk Island, plus historical corrections for Alberta, Austria, Belgium, British Columbia, Cambodia, Hong Kong, Indiana (Perry County), Kaliningrad, Kentucky, Michigan, Norfolk Island, South Korea, and Turkey.
- Same changePostgreSQL 9.6.16 · Update time zone data files to tzdata release 2019c for DST law changes in Fiji and Norfolk Island, plus historical corrections for Alberta, Austria, Belgium, British Columbia, Cambodia, Hong Kong, Indiana (Perry County), Kaliningrad, Kentucky, Michigan, Norfolk Island, South Korea, and Turkey.
- Same changePostgreSQL 9.4.25 · Update time zone data files to tzdata release 2019c for DST law changes in Fiji and Norfolk Island, plus historical corrections for Alberta, Austria, Belgium, British Columbia, Cambodia, Hong Kong, Indiana (Perry County), Kaliningrad, Kentucky, Michigan, Norfolk Island, South Korea, and Turkey.
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.