DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 9.5.18 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.18
2019-06-20
9.5.18stableSupport ends 2021-02-11
PostgreSQL 9.5.18
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.13, see Section E.13.
Bug fixesFix failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial exclusion constraint
Changes
Fix failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial exclusion constraint (Tom Lane)
Related records (4)
- Same changePostgreSQL 11.4 · Fix failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial exclusion constraint
- Same changePostgreSQL 10.9 · Fix failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial exclusion constraint
- Same changePostgreSQL 9.6.14 · Fix failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial exclusion constraint
- Same changePostgreSQL 9.4.23 · Fix failure of ALTER TABLE ... ALTER COLUMN TYPE when the table has a partial exclusion constraint
Bug fixesFix failure of COMMENT command for comments on domain constraints
Changes
Fix failure of COMMENT command for comments on domain constraints (Daniel Gustafsson, Michael Paquier)
Related records (3)
Bug fixesFix incorrect printing of queries with duplicate join names
Changes
Fix incorrect printing of queries with duplicate join names (Philip Dubé)
This oversight caused a dump/restore failure for views containing such queries.
Related records (4)
- Same changePostgreSQL 11.4 · Fix incorrect printing of queries with duplicate join names
- Same changePostgreSQL 10.9 · Fix incorrect printing of queries with duplicate join names
- Same changePostgreSQL 9.6.14 · Fix incorrect printing of queries with duplicate join names
- Same changePostgreSQL 9.4.23 · Fix incorrect printing of queries with duplicate join names
Bug fixesFix misoptimization of {1,1} quantifiers in regular expressions
Changes
Fix misoptimization of {1,1} quantifiers in regular expressions (Tom Lane)
Such quantifiers were treated as no-ops and optimized away; but the documentation specifies that they impose greediness, or non-greediness in the case of the non-greedy variant {1,1}?, on the subexpression they're attached to, and this did not happen. The misbehavior occurred only if the subexpression contained capturing parentheses or a back-reference.
Related records (4)
- Same changePostgreSQL 11.4 · Fix misoptimization of {1,1} quantifiers in regular expressions
- Same changePostgreSQL 10.9 · Fix misoptimization of {1,1} quantifiers in regular expressions
- Same changePostgreSQL 9.6.14 · Fix misoptimization of {1,1} quantifiers in regular expressions
- Same changePostgreSQL 9.4.23 · Fix misoptimization of {1,1} quantifiers in regular expressions
ImprovementsAvoid possible failures while initializing a new process's pg_stat_activity data
Changes
Avoid possible failures while initializing a new process's pg_stat_activity data (Tom Lane)
Certain operations that could fail, such as converting strings extracted from an SSL certificate into the database encoding, were being performed inside a critical section. Failure there would result in database-wide lockup due to violating the access protocol for shared pg_stat_activity data.
Related records (3)
- Same changePostgreSQL 11.4 · Avoid possible failures while initializing a new process's pg_stat_activity data
- Same changePostgreSQL 10.9 · Avoid possible failures while initializing a new process's pg_stat_activity data
- Same changePostgreSQL 9.6.14 · Avoid possible failures while initializing a new process's pg_stat_activity data
Bug fixesFix race condition in check to see whether a pre-existing shared memory segment is still in use by a conflicting postmaster
Changes
Fix race condition in check to see whether a pre-existing shared memory segment is still in use by a conflicting postmaster (Tom Lane)
Related records (4)
- Same changePostgreSQL 11.4 · Fix race condition in check to see whether a pre-existing shared memory segment is still in use by a conflicting postmaster
- Same changePostgreSQL 10.9 · Fix race condition in check to see whether a pre-existing shared memory segment is still in use by a conflicting postmaster
- Same changePostgreSQL 9.6.14 · Fix race condition in check to see whether a pre-existing shared memory segment is still in use by a conflicting postmaster
- Same changePostgreSQL 9.4.23 · Fix race condition in check to see whether a pre-existing shared memory segment is still in use by a conflicting postmaster
ImprovementsAvoid attempting to do database accesses for parameter checking in processes that are not connected to a specific database
Changes
Avoid attempting to do database accesses for parameter checking in processes that are not connected to a specific database (Vignesh C, Andres Freund)
This error could result in failures like "cannot read pg_class without having selected a database".
Related records (4)
- Same changePostgreSQL 11.4 · Avoid attempting to do database accesses for parameter checking in processes that are not connected to a specific database
- Same changePostgreSQL 10.9 · Avoid attempting to do database accesses for parameter checking in processes that are not connected to a specific database
- Same changePostgreSQL 9.6.14 · Avoid attempting to do database accesses for parameter checking in processes that are not connected to a specific database
- Same changePostgreSQL 9.4.23 · Avoid attempting to do database accesses for parameter checking in processes that are not connected to a specific database
Bug fixesAvoid possible hang in libpq if using SSL and OpenSSL's pending-data buffer contains an exact multiple of 256 bytes
Changes
Avoid possible hang in libpq if using SSL and OpenSSL's pending-data buffer contains an exact multiple of 256 bytes (David Binderman)
Related records (3)
- Same changePostgreSQL 11.4 · Avoid possible hang in libpq if using SSL and OpenSSL's pending-data buffer contains an exact multiple of 256 bytes
- Same changePostgreSQL 10.9 · Avoid possible hang in libpq if using SSL and OpenSSL's pending-data buffer contains an exact multiple of 256 bytes
- Same changePostgreSQL 9.6.14 · Avoid possible hang in libpq if using SSL and OpenSSL's pending-data buffer contains an exact multiple of 256 bytes
ImprovementsImprove initdb's handling of multiple equivalent names for the system time zone
Changes
Improve initdb's handling of multiple equivalent names for the system time zone (Tom Lane, Andrew Gierth)
Make initdb examine the /etc/localtime symbolic link, if that exists, to break ties between equivalent names for the system time zone. This makes initdb more likely to select the time zone name that the user would expect when multiple identical time zones exist. It will not change the behavior if /etc/localtime is not a symlink to a zone data file, nor if the time zone is determined from the TZ environment variable.
Separately, prefer UTC over other spellings of that time zone, when neither TZ nor /etc/localtime provide a hint. This fixes an annoyance introduced by tzdata 2019a's change to make the UCT and UTC zone names equivalent: initdb was then preferring UCT, which almost nobody wants.
Related records (4)
- Same changePostgreSQL 11.4 · Improve initdb's handling of multiple equivalent names for the system time zone
- Same changePostgreSQL 10.9 · Improve initdb's handling of multiple equivalent names for the system time zone
- Same changePostgreSQL 9.6.14 · Improve initdb's handling of multiple equivalent names for the system time zone
- Same changePostgreSQL 9.4.23 · Improve initdb's handling of multiple equivalent names for the system time zone
Bug fixesFix misleading error reports from reindexdb
Changes
Fix misleading error reports from reindexdb (Julien Rouhaud)
Related records (4)
Bug fixesEnsure that vacuumdb returns correct status if an error occurs while using parallel jobs
Changes
Ensure that vacuumdb returns correct status if an error occurs while using parallel jobs (Julien Rouhaud)
Related records (3)
- Same changePostgreSQL 11.4 · Ensure that vacuumdb returns correct status if an error occurs while using parallel jobs
- Same changePostgreSQL 10.9 · Ensure that vacuumdb returns correct status if an error occurs while using parallel jobs
- Same changePostgreSQL 9.6.14 · Ensure that vacuumdb returns correct status if an error occurs while using parallel jobs
ImprovementsIn contrib/postgres_fdw, account for possible data modifications by local BEFORE ROW UPDATE triggers
Changes
In contrib/postgres_fdw, account for possible data modifications by local BEFORE ROW UPDATE triggers (Shohei Mochizuki)
If a trigger modified a column that was otherwise not changed by the UPDATE, the new value was not transmitted to the remote server.
Related records (4)
- Same changePostgreSQL 11.4 · In contrib/postgres_fdw, account for possible data modifications by local BEFORE ROW UPDATE triggers
- Same changePostgreSQL 10.9 · In contrib/postgres_fdw, account for possible data modifications by local BEFORE ROW UPDATE triggers
- Same changePostgreSQL 9.6.14 · In contrib/postgres_fdw, account for possible data modifications by local BEFORE ROW UPDATE triggers
- Same changePostgreSQL 9.4.23 · In contrib/postgres_fdw, account for possible data modifications by local BEFORE ROW UPDATE triggers
ImprovementsOn Windows, avoid failure when the database encoding is set to SQL_ASCII and we attempt to log a non-ASCII string
Changes
On Windows, avoid failure when the database encoding is set to SQL_ASCII and we attempt to log a non-ASCII string (Noah Misch)
The code had been assuming that such strings must be in UTF-8, and would throw an error if they didn't appear to be validly encoded. Now, just transmit the untranslated bytes to the log.
Related records (4)
- Same changePostgreSQL 11.4 · On Windows, avoid failure when the database encoding is set to SQL_ASCII and we attempt to log a non-ASCII string
- Same changePostgreSQL 10.9 · On Windows, avoid failure when the database encoding is set to SQL_ASCII and we attempt to log a non-ASCII string
- Same changePostgreSQL 9.6.14 · On Windows, avoid failure when the database encoding is set to SQL_ASCII and we attempt to log a non-ASCII string
- Same changePostgreSQL 9.4.23 · On Windows, avoid failure when the database encoding is set to SQL_ASCII and we attempt to log a non-ASCII string
ImprovementsMake PL/pgSQL's header files C++-safe
Changes
Make PL/pgSQL's header files C++-safe (George Tarasov)
Related records (4)
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.