DocumentationVersion comparison
POSTGRESQL · VERSION COMPARE
PostgreSQL 9.2.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.2.18
2016-08-11
9.2.18stableSupport ends 2017-11-09
Security changes
| CVE / issue | Severity | Fixed version | Selection status |
|---|---|---|---|
| CVE-2016-5424 Fix client programs' handling of special characters in database and role names | 9.2.18 | Recorded fix | |
| CVE-2016-5423 Fix possible mis-evaluation of nested CASE-WHEN expressions | 9.2.18 | Recorded fix |
PostgreSQL 9.2.18
Migration and compatibility
A dump/restore is not required for those running 9.2.X.
However, if you are upgrading from a version earlier than 9.2.11, see Section E.14.
SecurityFix possible mis-evaluation of nested CASE-WHEN expressions
Changes
Fix possible mis-evaluation of nested CASE-WHEN expressions (Heikki Linnakangas, Michael Paquier, Tom Lane)
A CASE expression appearing within the test value subexpression of another CASE could become confused about whether its own test value was null or not. Also, inlining of a SQL function implementing the equality operator used by a CASE expression could result in passing the wrong test value to functions called within a CASE expression in the SQL function's body. If the test values were of different data types, a crash might result; moreover such situations could be abused to allow disclosure of portions of server memory. (CVE-2016-5423)
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix possible mis-evaluation of nested CASE-WHEN expressions
- Same changePostgreSQL 9.4.9 · Fix possible mis-evaluation of nested CASE-WHEN expressions
- Same changePostgreSQL 9.3.14 · Fix possible mis-evaluation of nested CASE-WHEN expressions
- Same changePostgreSQL 9.1.23 · Fix possible mis-evaluation of nested CASE-WHEN expressions
SecurityFix client programs' handling of special characters in database and role names
Changes
Fix client programs' handling of special characters in database and role names (Noah Misch, Nathan Bossart, Michael Paquier)
Numerous places in vacuumdb and other client programs could become confused by database and role names containing double quotes or backslashes. Tighten up quoting rules to make that safe. Also, ensure that when a conninfo string is used as a database name parameter to these programs, it is correctly treated as such throughout.
Fix handling of paired double quotes in psql's \connect and \password commands to match the documentation.
Introduce a new -reuse-previous option in psql's \connect command to allow explicit control of whether to re-use connection parameters from a previous connection. (Without this, the choice is based on whether the database name looks like a conninfo string, as before.) This allows secure handling of database names containing special characters in pg_dumpall scripts.
pg_dumpall now refuses to deal with database and role names containing carriage returns or newlines, as it seems impractical to quote those characters safely on Windows. In future we may reject such names on the server side, but that step has not been taken yet.
These are considered security fixes because crafted object names containing special characters could have been used to execute commands with superuser privileges the next time a superuser executes pg_dumpall or other routine maintenance operations. (CVE-2016-5424)
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix client programs' handling of special characters in database and role names
- Same changePostgreSQL 9.4.9 · Fix client programs' handling of special characters in database and role names
- Same changePostgreSQL 9.3.14 · Fix client programs' handling of special characters in database and role names
- Same changePostgreSQL 9.1.23 · Fix client programs' handling of special characters in database and role names
Bug fixesFix corner-case misbehaviors for IS NULL/IS NOT NULL applied to nested composite values
Changes
Fix corner-case misbehaviors for IS NULL/IS NOT NULL applied to nested composite values (Andrew Gierth, Tom Lane)
The SQL standard specifies that IS NULL should return TRUE for a row of all null values (thus ROW(NULL,NULL) IS NULL yields TRUE), but this is not meant to apply recursively (thus ROW(NULL, ROW(NULL,NULL)) IS NULL yields FALSE). The core executor got this right, but certain planner optimizations treated the test as recursive (thus producing TRUE in both cases), and contrib/postgres_fdw could produce remote queries that misbehaved similarly.
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix corner-case misbehaviors for IS NULL/IS NOT NULL applied to nested composite values
- Same changePostgreSQL 9.4.9 · Fix corner-case misbehaviors for IS NULL/IS NOT NULL applied to nested composite values
- Same changePostgreSQL 9.3.14 · Fix corner-case misbehaviors for IS NULL/IS NOT NULL applied to nested composite values
- Same changePostgreSQL 9.1.23 · Fix corner-case misbehaviors for IS NULL/IS NOT NULL applied to nested composite values
ImprovementsMake the inet and cidr data types properly reject IPv6 addresses with too many colon-separated fields
Changes
Make the inet and cidr data types properly reject IPv6 addresses with too many colon-separated fields (Tom Lane)
Related records (4)
- Same changePostgreSQL 9.5.4 · Make the inet and cidr data types properly reject IPv6 addresses with too many colon-separated fields
- Same changePostgreSQL 9.4.9 · Make the inet and cidr data types properly reject IPv6 addresses with too many colon-separated fields
- Same changePostgreSQL 9.3.14 · Make the inet and cidr data types properly reject IPv6 addresses with too many colon-separated fields
- Same changePostgreSQL 9.1.23 · Make the inet and cidr data types properly reject IPv6 addresses with too many colon-separated fields
Bug fixesPrevent crash in close_ps() (the point ## lseg operator) for NaN input coordinates
Changes
Prevent crash in close_ps() (the point ## lseg operator) for NaN input coordinates (Tom Lane)
Make it return NULL instead of crashing.
Related records (4)
- Same changePostgreSQL 9.5.4 · Prevent crash in close_ps() (the point ## lseg operator) for NaN input coordinates
- Same changePostgreSQL 9.4.9 · Prevent crash in close_ps() (the point ## lseg operator) for NaN input coordinates
- Same changePostgreSQL 9.3.14 · Prevent crash in close_ps() (the point ## lseg operator) for NaN input coordinates
- Same changePostgreSQL 9.1.23 · Prevent crash in close_ps() (the point ## lseg operator) for NaN input coordinates
Bug fixesFix several one-byte buffer over-reads in to_number()
Changes
Fix several one-byte buffer over-reads in to_number() (Peter Eisentraut)
In several cases the to_number() function would read one more character than it should from the input string. There is a small chance of a crash, if the input happens to be adjacent to the end of memory.
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix several one-byte buffer over-reads in to_number()
- Same changePostgreSQL 9.4.9 · Fix several one-byte buffer over-reads in to_number()
- Same changePostgreSQL 9.3.14 · Fix several one-byte buffer over-reads in to_number()
- Same changePostgreSQL 9.1.23 · Fix several one-byte buffer over-reads in to_number()
ImprovementsAvoid unsafe intermediate state during expensive paths through heap_update()
Changes
Avoid unsafe intermediate state during expensive paths through heap_update() (Masahiko Sawada, Andres Freund)
Previously, these cases locked the target tuple (by setting its XMAX) but did not WAL-log that action, thus risking data integrity problems if the page were spilled to disk and then a database crash occurred before the tuple update could be completed.
Related records (4)
- Same changePostgreSQL 9.5.4 · Avoid unsafe intermediate state during expensive paths through heap_update()
- Same changePostgreSQL 9.4.9 · Avoid unsafe intermediate state during expensive paths through heap_update()
- Same changePostgreSQL 9.3.14 · Avoid unsafe intermediate state during expensive paths through heap_update()
- Same changePostgreSQL 9.1.23 · Avoid unsafe intermediate state during expensive paths through heap_update()
Bug fixesAvoid crash in postgres -C when the specified variable has a null string value
Changes
Avoid crash in postgres -C when the specified variable has a null string value (Michael Paquier)
Related records (3)
- Same changePostgreSQL 9.5.4 · Avoid crash in postgres -C when the specified variable has a null string value
- Same changePostgreSQL 9.4.9 · Avoid crash in postgres -C when the specified variable has a null string value
- Same changePostgreSQL 9.3.14 · Avoid crash in postgres -C when the specified variable has a null string value
ImprovementsAvoid consuming a transaction ID during VACUUM
Changes
Avoid consuming a transaction ID during VACUUM (Alexander Korotkov)
Some cases in VACUUM unnecessarily caused an XID to be assigned to the current transaction. Normally this is negligible, but if one is up against the XID wraparound limit, consuming more XIDs during anti-wraparound vacuums is a very bad thing.
Related records (4)
- Same changePostgreSQL 9.5.4 · Avoid consuming a transaction ID during VACUUM
- Same changePostgreSQL 9.4.9 · Avoid consuming a transaction ID during VACUUM
- Same changePostgreSQL 9.3.14 · Avoid consuming a transaction ID during VACUUM
- Same changePostgreSQL 9.1.23 · Avoid consuming a transaction ID during VACUUM
ImprovementsAvoid canceling hot-standby queries during VACUUM FREEZE
Changes
Avoid canceling hot-standby queries during VACUUM FREEZE (Simon Riggs, Álvaro Herrera)
VACUUM FREEZE on an otherwise-idle master server could result in unnecessary cancellations of queries on its standby servers.
ImprovementsWhen a manual ANALYZE specifies a column list, don't reset the table's changes_since_analyze counter
Changes
When a manual ANALYZE specifies a column list, don't reset the table's changes_since_analyze counter (Tom Lane)
If we're only analyzing some columns, we should not prevent routine auto-analyze from happening for the other columns.
Related records (4)
- Same changePostgreSQL 9.5.4 · When a manual ANALYZE specifies a column list, don't reset the table's changes_since_analyze counter
- Same changePostgreSQL 9.4.9 · When a manual ANALYZE specifies a column list, don't reset the table's changes_since_analyze counter
- Same changePostgreSQL 9.3.14 · When a manual ANALYZE specifies a column list, don't reset the table's changes_since_analyze counter
- Same changePostgreSQL 9.1.23 · When a manual ANALYZE specifies a column list, don't reset the table's changes_since_analyze counter
Bug fixesFix ANALYZE's overestimation of n_distinct for a unique or nearly-unique column with many null entries
Changes
Fix ANALYZE's overestimation of n_distinct for a unique or nearly-unique column with many null entries (Tom Lane)
The nulls could get counted as though they were themselves distinct values, leading to serious planner misestimates in some types of queries.
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix ANALYZE's overestimation of n_distinct for a unique or nearly-unique column with many null entries
- Same changePostgreSQL 9.4.9 · Fix ANALYZE's overestimation of n_distinct for a unique or nearly-unique column with many null entries
- Same changePostgreSQL 9.3.14 · Fix ANALYZE's overestimation of n_distinct for a unique or nearly-unique column with many null entries
- Same changePostgreSQL 9.1.23 · Fix ANALYZE's overestimation of n_distinct for a unique or nearly-unique column with many null entries
ImprovementsPrevent autovacuum from starting multiple workers for the same shared catalog
Changes
Prevent autovacuum from starting multiple workers for the same shared catalog (Álvaro Herrera)
Normally this isn't much of a problem because the vacuum doesn't take long anyway; but in the case of a severely bloated catalog, it could result in all but one worker uselessly waiting instead of doing useful work on other tables.
Related records (4)
- Same changePostgreSQL 9.5.4 · Prevent autovacuum from starting multiple workers for the same shared catalog
- Same changePostgreSQL 9.4.9 · Prevent autovacuum from starting multiple workers for the same shared catalog
- Same changePostgreSQL 9.3.14 · Prevent autovacuum from starting multiple workers for the same shared catalog
- Same changePostgreSQL 9.1.23 · Prevent autovacuum from starting multiple workers for the same shared catalog
ImprovementsPrevent infinite loop in GiST index build for geometric columns containing NaN component values
Changes
Prevent infinite loop in GiST index build for geometric columns containing NaN component values (Tom Lane)
Related records (3)
- Same changePostgreSQL 9.5.4 · Prevent infinite loop in GiST index build for geometric columns containing NaN component values
- Same changePostgreSQL 9.4.9 · Prevent infinite loop in GiST index build for geometric columns containing NaN component values
- Same changePostgreSQL 9.3.14 · Prevent infinite loop in GiST index build for geometric columns containing NaN component values
Bug fixesFix contrib/btree_gin to handle the smallest possible bigint value correctly
Changes
Fix contrib/btree_gin to handle the smallest possible bigint value correctly (Peter Eisentraut)
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix contrib/btree_gin to handle the smallest possible bigint value correctly
- Same changePostgreSQL 9.4.9 · Fix contrib/btree_gin to handle the smallest possible bigint value correctly
- Same changePostgreSQL 9.3.14 · Fix contrib/btree_gin to handle the smallest possible bigint value correctly
- Same changePostgreSQL 9.1.23 · Fix contrib/btree_gin to handle the smallest possible bigint value correctly
ImprovementsTeach libpq to correctly decode server version from future servers
Changes
Teach libpq to correctly decode server version from future servers (Peter Eisentraut)
It's planned to switch to two-part instead of three-part server version numbers for releases after 9.6. Make sure that PQserverVersion() returns the correct value for such cases.
Related records (4)
- Same changePostgreSQL 9.5.4 · Teach libpq to correctly decode server version from future servers
- Same changePostgreSQL 9.4.9 · Teach libpq to correctly decode server version from future servers
- Same changePostgreSQL 9.3.14 · Teach libpq to correctly decode server version from future servers
- Same changePostgreSQL 9.1.23 · Teach libpq to correctly decode server version from future servers
Bug fixesFix ecpg's code for unsigned long long array elements
Changes
Fix ecpg's code for unsigned long long array elements (Michael Meskes)
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix ecpg's code for unsigned long long array elements
- Same changePostgreSQL 9.4.9 · Fix ecpg's code for unsigned long long array elements
- Same changePostgreSQL 9.3.14 · Fix ecpg's code for unsigned long long array elements
- Same changePostgreSQL 9.1.23 · Fix ecpg's code for unsigned long long array elements
ImprovementsIn pg_dump with both -c and -C options, avoid emitting an unwanted CREATE SCHEMA public command
Changes
In pg_dump with both -c and -C options, avoid emitting an unwanted CREATE SCHEMA public command (David Johnston, Tom Lane)
Related records (3)
- Same changePostgreSQL 9.5.4 · In pg_dump with both -c and -C options, avoid emitting an unwanted CREATE SCHEMA public command
- Same changePostgreSQL 9.4.9 · In pg_dump with both -c and -C options, avoid emitting an unwanted CREATE SCHEMA public command
- Same changePostgreSQL 9.3.14 · In pg_dump with both -c and -C options, avoid emitting an unwanted CREATE SCHEMA public command
ImprovementsMake pg_basebackup accept -Z 0 as specifying no compression
Changes
Make pg_basebackup accept -Z 0 as specifying no compression (Fujii Masao)
Related records (4)
- Same changePostgreSQL 9.5.4 · Make pg_basebackup accept -Z 0 as specifying no compression
- Same changePostgreSQL 9.4.9 · Make pg_basebackup accept -Z 0 as specifying no compression
- Same changePostgreSQL 9.3.14 · Make pg_basebackup accept -Z 0 as specifying no compression
- Same changePostgreSQL 9.1.23 · Make pg_basebackup accept -Z 0 as specifying no compression
Bug fixesFix makefiles' rule for building AIX shared libraries to be safe for parallel make
Changes
Fix makefiles' rule for building AIX shared libraries to be safe for parallel make (Noah Misch)
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix makefiles' rule for building AIX shared libraries to be safe for parallel make
- Same changePostgreSQL 9.4.9 · Fix makefiles' rule for building AIX shared libraries to be safe for parallel make
- Same changePostgreSQL 9.3.14 · Fix makefiles' rule for building AIX shared libraries to be safe for parallel make
- Same changePostgreSQL 9.1.23 · Fix makefiles' rule for building AIX shared libraries to be safe for parallel make
Bug fixesFix TAP tests and MSVC scripts to work when build directory's path name contains spaces
Changes
Fix TAP tests and MSVC scripts to work when build directory's path name contains spaces (Michael Paquier, Kyotaro Horiguchi)
Related records (4)
- Same changePostgreSQL 9.5.4 · Fix TAP tests and MSVC scripts to work when build directory's path name contains spaces
- Same changePostgreSQL 9.4.9 · Fix TAP tests and MSVC scripts to work when build directory's path name contains spaces
- Same changePostgreSQL 9.3.14 · Fix TAP tests and MSVC scripts to work when build directory's path name contains spaces
- Same changePostgreSQL 9.1.23 · Fix TAP tests and MSVC scripts to work when build directory's path name contains spaces
ImprovementsMake regression tests safe for Danish and Welsh locales
Changes
Make regression tests safe for Danish and Welsh locales (Jeff Janes, Tom Lane)
Change some test data that triggered the unusual sorting rules of these locales.
Related records (4)
- Same changePostgreSQL 9.5.4 · Make regression tests safe for Danish and Welsh locales
- Same changePostgreSQL 9.4.9 · Make regression tests safe for Danish and Welsh locales
- Same changePostgreSQL 9.3.14 · Make regression tests safe for Danish and Welsh locales
- Same changePostgreSQL 9.1.23 · Make regression tests safe for Danish and Welsh locales
ImprovementsUpdate our copy of the timezone code to match IANA's tzcode release 2016c
Changes
Update our copy of the timezone code to match IANA's tzcode release 2016c (Tom Lane)
This is needed to cope with anticipated future changes in the time zone data files. It also fixes some corner-case bugs in coping with unusual time zones.
Related records (4)
- Same changePostgreSQL 9.5.4 · Update our copy of the timezone code to match IANA's tzcode release 2016c
- Same changePostgreSQL 9.4.9 · Update our copy of the timezone code to match IANA's tzcode release 2016c
- Same changePostgreSQL 9.3.14 · Update our copy of the timezone code to match IANA's tzcode release 2016c
- Same changePostgreSQL 9.1.23 · Update our copy of the timezone code to match IANA's tzcode release 2016c
ImprovementsUpdate time zone data files to tzdata release 2016f for DST law changes in Kemerovo and Novosibirsk, plus historical corrections for Azerbaijan, Belarus, and Morocco.
Changes
Update time zone data files to tzdata release 2016f for DST law changes in Kemerovo and Novosibirsk, plus historical corrections for Azerbaijan, Belarus, and Morocco.
Related records (4)
- Same changePostgreSQL 9.5.4 · Update time zone data files to tzdata release 2016f for DST law changes in Kemerovo and Novosibirsk, plus historical corrections for Azerbaijan, Belarus, and Morocco.
- Same changePostgreSQL 9.4.9 · Update time zone data files to tzdata release 2016f for DST law changes in Kemerovo and Novosibirsk, plus historical corrections for Azerbaijan, Belarus, and Morocco.
- Same changePostgreSQL 9.3.14 · Update time zone data files to tzdata release 2016f for DST law changes in Kemerovo and Novosibirsk, plus historical corrections for Azerbaijan, Belarus, and Morocco.
- Same changePostgreSQL 9.1.23 · Update time zone data files to tzdata release 2016f for DST law changes in Kemerovo and Novosibirsk, plus historical corrections for Azerbaijan, Belarus, and Morocco.
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.