DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 9.5.22 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.22
2020-05-14
9.5.22stableSupport ends 2021-02-11
PostgreSQL 9.5.22
Migration and compatibility
A dump/restore is not required for those running 9.5.X.
However, if you are upgrading from a version earlier than 9.5.20, see Section E.6.
ImprovementsPreserve the indisclustered setting of indexes rewritten by ALTER TABLE
Changes
Preserve the indisclustered setting of indexes rewritten by ALTER TABLE (Amit Langote, Justin Pryzby)
Previously, ALTER TABLE lost track of which index had been used for CLUSTER.
Related records (4)
- Same changePostgreSQL 12.3 · Preserve the indisclustered setting of indexes rewritten by ALTER TABLE
- Same changePostgreSQL 11.8 · Preserve the indisclustered setting of indexes rewritten by ALTER TABLE
- Same changePostgreSQL 10.13 · Preserve the indisclustered setting of indexes rewritten by ALTER TABLE
- Same changePostgreSQL 9.6.18 · Preserve the indisclustered setting of indexes rewritten by ALTER TABLE
ImprovementsPreserve the replica identity properties of indexes rewritten by ALTER TABLE
Changes
Preserve the replica identity properties of indexes rewritten by ALTER TABLE (Quan Zongliang, Peter Eisentraut)
Related records (4)
- Same changePostgreSQL 12.3 · Preserve the replica identity properties of indexes rewritten by ALTER TABLE
- Same changePostgreSQL 11.8 · Preserve the replica identity properties of indexes rewritten by ALTER TABLE
- Same changePostgreSQL 10.13 · Preserve the replica identity properties of indexes rewritten by ALTER TABLE
- Same changePostgreSQL 9.6.18 · Preserve the replica identity properties of indexes rewritten by ALTER TABLE
ImprovementsLock objects sooner during DROP OWNED BY
Changes
Lock objects sooner during DROP OWNED BY (Álvaro Herrera)
This avoids failures in race-condition cases where another session is deleting some of the same objects.
Related records (4)
Bug fixesFix error-case processing for CREATE ROLE ... IN ROLE
Changes
Fix error-case processing for CREATE ROLE ... IN ROLE (Andrew Gierth)
Some error cases would be reported as "unexpected node type" or the like, instead of the intended message.
Related records (4)
- Same changePostgreSQL 12.3 · Fix error-case processing for CREATE ROLE ... IN ROLE
- Same changePostgreSQL 11.8 · Fix error-case processing for CREATE ROLE ... IN ROLE
- Same changePostgreSQL 10.13 · Fix error-case processing for CREATE ROLE ... IN ROLE
- Same changePostgreSQL 9.6.18 · Fix error-case processing for CREATE ROLE ... IN ROLE
Bug fixesFix bugs in gin_fuzzy_search_limit processing
Changes
Fix bugs in gin_fuzzy_search_limit processing (Adé Heyward, Tom Lane)
A small value of gin_fuzzy_search_limit could result in unexpected slowness due to unintentionally rescanning the same index page many times. Another code path failed to apply the intended filtering at all, possibly returning too many values.
Related records (4)
ImprovementsAllow input of type circle to accept the format "(x,y),r" as the documentation says it does
Changes
Allow input of type circle to accept the format "(x,y),r" as the documentation says it does (David Zhang)
Related records (4)
- Same changePostgreSQL 12.3 · Allow input of type circle to accept the format “(x,y),r” as the documentation says it does
- Same changePostgreSQL 11.8 · Allow input of type circle to accept the format “(x,y),r” as the documentation says it does
- Same changePostgreSQL 10.13 · Allow input of type circle to accept the format “(x,y),r” as the documentation says it does
- Same changePostgreSQL 9.6.18 · Allow input of type circle to accept the format "(x,y),r" as the documentation says it does
ImprovementsMake the get_bit() and set_bit() functions cope with bytea strings longer than 256MB
Changes
Make the get_bit() and set_bit() functions cope with bytea strings longer than 256MB (Movead Li)
Since the bit number argument is only int4, it's impossible to use these functions to access bits beyond the first 256MB of a long bytea. We'll widen the argument to int8 in v13, but in the meantime, allow these functions to work on the initial substring of a long bytea.
Related records (5)
- Related commitsPostgreSQL 13.0 · Allow get_bit() and set_bit() to set bits beyond the first 256MB of a bytea value
- Same changePostgreSQL 12.3 · Make the get_bit() and set_bit() functions cope with bytea strings longer than 256MB
- Same changePostgreSQL 11.8 · Make the get_bit() and set_bit() functions cope with bytea strings longer than 256MB
- Same changePostgreSQL 10.13 · Make the get_bit() and set_bit() functions cope with bytea strings longer than 256MB
- Same changePostgreSQL 9.6.18 · Make the get_bit() and set_bit() functions cope with bytea strings longer than 256MB
Bug fixesAvoid possibly leaking an open-file descriptor for a directory in pg_ls_dir(), pg_timezone_names(), pg_tablespace_databases(), and allied functions
Changes
Avoid possibly leaking an open-file descriptor for a directory in pg_ls_dir(), pg_timezone_names(), pg_tablespace_databases(), and allied functions (Justin Pryzby)
Related records (4)
- Same changePostgreSQL 12.3 · Avoid possibly leaking an open-file descriptor for a directory in pg_ls_dir(), pg_timezone_names(), pg_tablespace_databases(), and allied functions
- Same changePostgreSQL 11.8 · Avoid possibly leaking an open-file descriptor for a directory in pg_ls_dir(), pg_timezone_names(), pg_tablespace_databases(), and allied functions
- Same changePostgreSQL 10.13 · Avoid possibly leaking an open-file descriptor for a directory in pg_ls_dir(), pg_timezone_names(), pg_tablespace_databases(), and allied functions
- Same changePostgreSQL 9.6.18 · Avoid possibly leaking an open-file descriptor for a directory in pg_ls_dir(), pg_timezone_names(), pg_tablespace_databases(), and allied functions
Bug fixesFix polymorphic-function type resolution to correctly infer the actual type of an anyarray output when given only an anyrange input
Changes
Fix polymorphic-function type resolution to correctly infer the actual type of an anyarray output when given only an anyrange input (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.3 · Fix polymorphic-function type resolution to correctly infer the actual type of an anyarray output when given only an anyrange input
- Same changePostgreSQL 11.8 · Fix polymorphic-function type resolution to correctly infer the actual type of an anyarray output when given only an anyrange input
- Same changePostgreSQL 10.13 · Fix polymorphic-function type resolution to correctly infer the actual type of an anyarray output when given only an anyrange input
- Same changePostgreSQL 9.6.18 · Fix polymorphic-function type resolution to correctly infer the actual type of an anyarray output when given only an anyrange input
Bug fixesAvoid unlikely crash when REINDEX is terminated by a session-shutdown signal
Changes
Avoid unlikely crash when REINDEX is terminated by a session-shutdown signal (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.3 · Avoid unlikely crash when REINDEX is terminated by a session-shutdown signal
- Same changePostgreSQL 11.8 · Avoid unlikely crash when REINDEX is terminated by a session-shutdown signal
- Same changePostgreSQL 10.13 · Avoid unlikely crash when REINDEX is terminated by a session-shutdown signal
- Same changePostgreSQL 9.6.18 · Avoid unlikely crash when REINDEX is terminated by a session-shutdown signal
ImprovementsPrevent printout of possibly-incorrect hash join table statistics in EXPLAIN
Changes
Prevent printout of possibly-incorrect hash join table statistics in EXPLAIN (Konstantin Knizhnik, Tom Lane, Thomas Munro)
Related records (4)
- Same changePostgreSQL 12.3 · Prevent printout of possibly-incorrect hash join table statistics in EXPLAIN
- Same changePostgreSQL 11.8 · Prevent printout of possibly-incorrect hash join table statistics in EXPLAIN
- Same changePostgreSQL 10.13 · Prevent printout of possibly-incorrect hash join table statistics in EXPLAIN
- Same changePostgreSQL 9.6.18 · Prevent printout of possibly-incorrect hash join table statistics in EXPLAIN
Bug fixesFix reporting of elapsed time for heap truncation steps in VACUUM VERBOSE
Changes
Fix reporting of elapsed time for heap truncation steps in VACUUM VERBOSE (Tatsuhito Kasahara)
Related records (4)
- Same changePostgreSQL 12.3 · Fix reporting of elapsed time for heap truncation steps in VACUUM VERBOSE
- Same changePostgreSQL 11.8 · Fix reporting of elapsed time for heap truncation steps in VACUUM VERBOSE
- Same changePostgreSQL 10.13 · Fix reporting of elapsed time for heap truncation steps in VACUUM VERBOSE
- Same changePostgreSQL 9.6.18 · Fix reporting of elapsed time for heap truncation steps in VACUUM VERBOSE
ImprovementsAvoid possibly showing "waiting" twice in a process's PS status
Changes
Avoid possibly showing "waiting" twice in a process's PS status (Masahiko Sawada)
Related records (4)
- Same changePostgreSQL 12.3 · Avoid possibly showing “waiting” twice in a process's PS status
- Same changePostgreSQL 11.8 · Avoid possibly showing “waiting” twice in a process's PS status
- Same changePostgreSQL 10.13 · Avoid possibly showing “waiting” twice in a process's PS status
- Same changePostgreSQL 9.6.18 · Avoid possibly showing "waiting" twice in a process's PS status
Bug fixesAvoid premature recycling of WAL segments during crash recovery
Changes
Avoid premature recycling of WAL segments during crash recovery (Jehan-Guillaume de Rorthais)
WAL segments that become ready to be archived during crash recovery were potentially recycled without being archived.
Related records (4)
- Same changePostgreSQL 12.3 · Avoid premature recycling of WAL segments during crash recovery
- Same changePostgreSQL 11.8 · Avoid premature recycling of WAL segments during crash recovery
- Same changePostgreSQL 10.13 · Avoid premature recycling of WAL segments during crash recovery
- Same changePostgreSQL 9.6.18 · Avoid premature recycling of WAL segments during crash recovery
ImprovementsAvoid scanning irrelevant timelines during archive recovery
Changes
Avoid scanning irrelevant timelines during archive recovery (Kyotaro Horiguchi)
This can eliminate many attempts to fetch non-existent WAL files from archive storage, which is helpful if archive access is slow.
Related records (4)
- Same changePostgreSQL 12.3 · Avoid scanning irrelevant timelines during archive recovery
- Same changePostgreSQL 11.8 · Avoid scanning irrelevant timelines during archive recovery
- Same changePostgreSQL 10.13 · Avoid scanning irrelevant timelines during archive recovery
- Same changePostgreSQL 9.6.18 · Avoid scanning irrelevant timelines during archive recovery
ImprovementsRemove bogus "subtransaction logged without previous top-level txn record" error check in logical decoding
Changes
Remove bogus "subtransaction logged without previous top-level txn record" error check in logical decoding (Arseny Sher, Amit Kapila)
This condition is legitimately reachable in various scenarios, so remove the check.
Related records (4)
- Same changePostgreSQL 12.3 · Remove bogus “subtransaction logged without previous top-level txn record” error check in logical decoding
- Same changePostgreSQL 11.8 · Remove bogus “subtransaction logged without previous top-level txn record” error check in logical decoding
- Same changePostgreSQL 10.13 · Remove bogus “subtransaction logged without previous top-level txn record” error check in logical decoding
- Same changePostgreSQL 9.6.18 · Remove bogus "subtransaction logged without previous top-level txn record" error check in logical decoding
ImprovementsEnsure that a replication slot's io_in_progress_lock is released in failure code paths
Changes
Ensure that a replication slot's io_in_progress_lock is released in failure code paths (Pavan Deolasee)
This could result in a walsender later becoming stuck waiting for the lock.
Related records (4)
- Same changePostgreSQL 12.3 · Ensure that a replication slot's io_in_progress_lock is released in failure code paths
- Same changePostgreSQL 11.8 · Ensure that a replication slot's io_in_progress_lock is released in failure code paths
- Same changePostgreSQL 10.13 · Ensure that a replication slot's io_in_progress_lock is released in failure code paths
- Same changePostgreSQL 9.6.18 · Ensure that a replication slot's io_in_progress_lock is released in failure code paths
ImprovementsEnsure nextXid can't go backwards on a standby server
Changes
Ensure nextXid can't go backwards on a standby server (Eka Palamadai)
This race condition could allow incorrect hot standby feedback messages to be sent back to the primary server, potentially allowing VACUUM to run too soon on the primary.
ImprovementsAdd missing SQLSTATE values to a few error reports
Changes
Add missing SQLSTATE values to a few error reports (Sawada Masahiko)
Related records (4)
- Same changePostgreSQL 12.3 · Add missing SQLSTATE values to a few error reports
- Same changePostgreSQL 11.8 · Add missing SQLSTATE values to a few error reports
- Same changePostgreSQL 10.13 · Add missing SQLSTATE values to a few error reports
- Same changePostgreSQL 9.6.18 · Add missing SQLSTATE values to a few error reports
Bug fixesFix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function
Changes
Fix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.3 · Fix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function
- Same changePostgreSQL 11.8 · Fix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function
- Same changePostgreSQL 10.13 · Fix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function
- Same changePostgreSQL 9.6.18 · Fix PL/pgSQL to reliably refuse to execute an event trigger function as a plain function
Bug fixesFix memory leak in libpq when using sslmode=verify-full
Changes
Fix memory leak in libpq when using sslmode=verify-full (Roman Peshkurov)
Certificate verification during connection startup could leak some memory. This would become an issue if a client process opened many database connections during its lifetime.
Related records (4)
- Same changePostgreSQL 12.3 · Fix memory leak in libpq when using sslmode=verify-full
- Same changePostgreSQL 11.8 · Fix memory leak in libpq when using sslmode=verify-full
- Same changePostgreSQL 10.13 · Fix memory leak in libpq when using sslmode=verify-full
- Same changePostgreSQL 9.6.18 · Fix memory leak in libpq when using sslmode=verify-full
Bug fixesFix ecpg to treat an argument of just "-" as meaning "read from stdin" on all platforms
Changes
Fix ecpg to treat an argument of just "-" as meaning "read from stdin" on all platforms (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.3 · Fix ecpg to treat an argument of just “-” as meaning “read from stdin” on all platforms
- Same changePostgreSQL 11.8 · Fix ecpg to treat an argument of just “-” as meaning “read from stdin” on all platforms
- Same changePostgreSQL 10.13 · Fix ecpg to treat an argument of just “-” as meaning “read from stdin” on all platforms
- Same changePostgreSQL 9.6.18 · Fix ecpg to treat an argument of just "-" as meaning "read from stdin" on all platforms
Bug fixesFix pg_dump to dump comments on RLS policy objects
Changes
Fix pg_dump to dump comments on RLS policy objects (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.3 · Fix pg_dump to dump comments on RLS policy objects
- Same changePostgreSQL 11.8 · Fix pg_dump to dump comments on RLS policy objects
- Same changePostgreSQL 10.13 · Fix pg_dump to dump comments on RLS policy objects
- Same changePostgreSQL 9.6.18 · Fix pg_dump to dump comments on RLS policy objects
ImprovementsIn pg_dump, postpone restore of event triggers till the end
Changes
In pg_dump, postpone restore of event triggers till the end (Fabrízio de Royes Mello, Hamid Akhtar, Tom Lane)
This minimizes the risk that an event trigger could interfere with the restoration of other objects.
Related records (4)
- Same changePostgreSQL 12.3 · In pg_dump, postpone restore of event triggers till the end
- Same changePostgreSQL 11.8 · In pg_dump, postpone restore of event triggers till the end
- Same changePostgreSQL 10.13 · In pg_dump, postpone restore of event triggers till the end
- Same changePostgreSQL 9.6.18 · In pg_dump, postpone restore of event triggers till the end
Bug fixesFix quoting of --encoding, --lc-ctype and --lc-collate values in createdb utility
Changes
Fix quoting of --encoding, --lc-ctype and --lc-collate values in createdb utility (Michael Paquier)
Related records (4)
- Same changePostgreSQL 12.3 · Fix quoting of --encoding, --lc-ctype and --lc-collate values in createdb utility
- Same changePostgreSQL 11.8 · Fix quoting of --encoding, --lc-ctype and --lc-collate values in createdb utility
- Same changePostgreSQL 10.13 · Fix quoting of --encoding, --lc-ctype and --lc-collate values in createdb utility
- Same changePostgreSQL 9.6.18 · Fix quoting of --encoding, --lc-ctype and --lc-collate values in createdb utility
Improvementscontrib/lo's lo_manage() function crashed if called directly rather than as a trigger
Changes
contrib/lo's lo_manage() function crashed if called directly rather than as a trigger (Tom Lane)
Related records (4)
- Same changePostgreSQL 12.3 · contrib/lo's lo_manage() function crashed if called directly rather than as a trigger
- Same changePostgreSQL 11.8 · contrib/lo's lo_manage() function crashed if called directly rather than as a trigger
- Same changePostgreSQL 10.13 · contrib/lo's lo_manage() function crashed if called directly rather than as a trigger
- Same changePostgreSQL 9.6.18 · contrib/lo's lo_manage() function crashed if called directly rather than as a trigger
ImprovementsIn contrib/ltree, protect against overflow of ltree and lquery length fields
Changes
In contrib/ltree, protect against overflow of ltree and lquery length fields (Nikita Glukhov)
Related records (4)
- Same changePostgreSQL 12.3 · In contrib/ltree, protect against overflow of ltree and lquery length fields
- Same changePostgreSQL 11.8 · In contrib/ltree, protect against overflow of ltree and lquery length fields
- Same changePostgreSQL 10.13 · In contrib/ltree, protect against overflow of ltree and lquery length fields
- Same changePostgreSQL 9.6.18 · In contrib/ltree, protect against overflow of ltree and lquery length fields
Bug fixesFix cache reference leak in contrib/sepgsql
Changes
Fix cache reference leak in contrib/sepgsql (Michael Luo)
Related records (4)
ImprovementsAvoid failures when dealing with Unix-style locale names on Windows
Changes
Avoid failures when dealing with Unix-style locale names on Windows (Juan José Santamaría Flecha)
Related records (4)
- Same changePostgreSQL 12.3 · Avoid failures when dealing with Unix-style locale names on Windows
- Same changePostgreSQL 11.8 · Avoid failures when dealing with Unix-style locale names on Windows
- Same changePostgreSQL 10.13 · Avoid failures when dealing with Unix-style locale names on Windows
- Same changePostgreSQL 9.6.18 · Avoid failures when dealing with Unix-style locale names on Windows
ImprovementsIn MSVC builds, cope with spaces in the path name for Python
Changes
In MSVC builds, cope with spaces in the path name for Python (Victor Wagner)
Related records (4)
- Same changePostgreSQL 12.3 · In MSVC builds, cope with spaces in the path name for Python
- Same changePostgreSQL 11.8 · In MSVC builds, cope with spaces in the path name for Python
- Same changePostgreSQL 10.13 · In MSVC builds, cope with spaces in the path name for Python
- Same changePostgreSQL 9.6.18 · In MSVC builds, cope with spaces in the path name for Python
Bug fixesIn MSVC builds, fix detection of Visual Studio version to work with more language settings
Changes
In MSVC builds, fix detection of Visual Studio version to work with more language settings (Andrew Dunstan)
Related records (4)
- Same changePostgreSQL 12.3 · In MSVC builds, fix detection of Visual Studio version to work with more language settings
- Same changePostgreSQL 11.8 · In MSVC builds, fix detection of Visual Studio version to work with more language settings
- Same changePostgreSQL 10.13 · In MSVC builds, fix detection of Visual Studio version to work with more language settings
- Same changePostgreSQL 9.6.18 · In MSVC builds, fix detection of Visual Studio version to work with more language settings
ImprovementsIn MSVC builds, use -Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do
Changes
In MSVC builds, use -Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do (Andrew Dunstan)
Related records (4)
- Same changePostgreSQL 12.3 · In MSVC builds, use -Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do
- Same changePostgreSQL 11.8 · In MSVC builds, use -Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do
- Same changePostgreSQL 10.13 · In MSVC builds, use -Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do
- Same changePostgreSQL 9.6.18 · In MSVC builds, use -Wno-deprecated with bison versions newer than 3.0, as non-Windows builds already do
ImprovementsUpdate time zone data files to tzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai.
Changes
Update time zone data files to tzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai.
The America/Godthab zone has been renamed to America/Nuuk to reflect current English usage; however, the old name remains available as a compatibility link.
Also, update initdb's list of known Windows time zone names to include recent additions, improving the odds that it will correctly translate the system time zone setting on that platform.
Related records (4)
- Same changePostgreSQL 12.3 · Update time zone data files to tzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai.
- Same changePostgreSQL 11.8 · Update time zone data files to tzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai.
- Same changePostgreSQL 10.13 · Update time zone data files to tzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai.
- Same changePostgreSQL 9.6.18 · Update time zone data files to tzdata release 2020a for DST law changes in Morocco and the Canadian Yukon, plus historical corrections for Shanghai.
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.