↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

DocumentationVersion comparison

POSTGRESQL · VERSION COMPARE

PostgreSQL 9.3 release changes

All features, fixes, and compatibility notes in this release, with related records from other versions.

All changes in this release
All changes in this release

Includes changes after the source version through the target. A major version name means its initial release.

From PostgreSQL 9.0 onward: 17 major branches and 352 release notes. Updated 2026-09-26.

Complete release changes

9.3

2013-09-09

Export JSON
177changesFeatures, fixes, improvements
1releaseGrouped by release
0CVEsVulnerability IDs mentioned in these notes

9.3.0 HistoricalSupport ends 2018-11-08

PostgreSQL 9.3

Migration and compatibility

A dump/restore using pg_dumpall, or use of pg_upgrade, is required for those wishing to migrate data from any previous release.

Version 9.3 contains a number of changes that may affect compatibility with previous releases. Observe the following incompatibilities:

CompatibilityRename replication_timeout to wal_sender_timeout

Server Settings

Rename replication_timeout to wal_sender_timeout (Amit Kapila)

This setting controls the WAL sender timeout.

CompatibilityRequire superuser privileges to set commit_delay because it can now potentially delay other sessions

Server Settings

Require superuser privileges to set commit_delay because it can now potentially delay other sessions (Simon Riggs)

CompatibilityAllow in-memory sorts to use their full memory allocation

Server Settings

Allow in-memory sorts to use their full memory allocation (Jeff Janes)

Users who have set work_mem based on the previous behavior may need to revisit that setting.

CompatibilityThrow an error if a tuple to be updated or deleted has already been updated or deleted by a BEFORE trigger

Other

Throw an error if a tuple to be updated or deleted has already been updated or deleted by a BEFORE trigger (Kevin Grittner)

Formerly, the originally-intended update was silently skipped, resulting in logical inconsistency since the trigger might have propagated data to other places based on the intended update. Now an error is thrown to prevent the inconsistent results from being committed. If this change affects your application, the best solution is usually to move the data-propagation actions to an AFTER trigger.

This error will also be thrown if a query invokes a volatile function that modifies rows that are later modified by the query itself. Such cases likewise previously resulted in silently skipping updates.

CompatibilityChange multicolumn ON UPDATE SET NULL/SET DEFAULT foreign key actions to affect all columns of the constraint, not just those changed in the UPDATE

Other

Change multicolumn ON UPDATE SET NULL/SET DEFAULT foreign key actions to affect all columns of the constraint, not just those changed in the UPDATE (Tom Lane)

Previously, we would set only those referencing columns that correspond to referenced columns that were changed by the UPDATE. This was what was required by SQL-92, but more recent editions of the SQL standard specify the new behavior.

CompatibilityForce cached plans to be replanned if the search_path changes

Other

Force cached plans to be replanned if the search_path changes (Tom Lane)

Previously, cached plans already generated in the current session were not redone if the query was re-executed with a new search_path setting, resulting in surprising behavior.

CompatibilityFix to_number() to properly handle a period used as a thousands separator

Other

Fix to_number() to properly handle a period used as a thousands separator (Tom Lane)

Previously, a period was considered to be a decimal point even when the locale says it isn't and the D format code is used to specify use of the locale-specific decimal point. This resulted in wrong answers if FM format was also used.

CompatibilityFix STRICT non-set-returning functions that have set-returning functions in their arguments to properly return null rows

Other

Fix STRICT non-set-returning functions that have set-returning functions in their arguments to properly return null rows (Tom Lane)

A null value passed to the strict function should result in a null output, but instead, that output row was suppressed entirely.

CompatibilityStore WAL in a continuous stream, rather than skipping the last 16MB segment every 4GB

Other

Store WAL in a continuous stream, rather than skipping the last 16MB segment every 4GB (Heikki Linnakangas)

Previously, WAL files with names ending in FF were not used because of this skipping. If you have WAL backup or restore scripts that took this behavior into account, they will need to be adjusted.

CompatibilityIn pg_constraint.confmatchtype, store the default foreign key match type (non-FULL, non-PARTIAL) as s for "simple"

Other

In pg_constraint.confmatchtype, store the default foreign key match type (non-FULL, non-PARTIAL) as s for "simple" (Tom Lane)

Previously this case was represented by u for "unspecified".

FeaturesPrevent non-key-field row updates from blocking foreign key checks

Server / Locking

Prevent non-key-field row updates from blocking foreign key checks (Álvaro Herrera, Noah Misch, Andres Freund, Alexander Shulgin, Marti Raudsepp, Alexander Shulgin)

This change improves concurrency and reduces the probability of deadlocks when updating tables involved in a foreign-key constraint. UPDATEs that do not change any columns referenced in a foreign key now take the new NO KEY UPDATE lock mode on the row, while foreign key checks use the new KEY SHARE lock mode, which does not conflict with NO KEY UPDATE. So there is no blocking unless a foreign-key column is changed.

FeaturesAdd configuration variable lock_timeout to allow limiting how long a session will wait to acquire any one lock

Server / Locking

Add configuration variable lock_timeout to allow limiting how long a session will wait to acquire any one lock (Zoltán Böszörményi)

FeaturesAdd SP-GiST support for range data types

Server / Indexes

Add SP-GiST support for range data types (Alexander Korotkov)

FeaturesAllow GiST indexes to be unlogged

Server / Indexes

Allow GiST indexes to be unlogged (Jeevan Chalke)

PerformanceImprove performance of GiST index insertion by randomizing the choice of which page to descend to when there are multiple equally good alternatives

Server / Indexes

Improve performance of GiST index insertion by randomizing the choice of which page to descend to when there are multiple equally good alternatives (Heikki Linnakangas)

FeaturesImprove concurrency of hash index operations

Server / Indexes

Improve concurrency of hash index operations (Robert Haas)

FeaturesCollect and use histograms of upper and lower bounds, as well as range lengths, for range types

Server / Optimizer

Collect and use histograms of upper and lower bounds, as well as range lengths, for range types (Alexander Korotkov)

FeaturesImprove optimizer's cost estimation for index access

Server / Optimizer

Improve optimizer's cost estimation for index access (Tom Lane)

FeaturesImprove optimizer's hash table size estimate for doing DISTINCT via hash aggregation

Server / Optimizer

Improve optimizer's hash table size estimate for doing DISTINCT via hash aggregation (Tom Lane)

FeaturesSuppress no-op Result and Limit plan nodes

Server / Optimizer

Suppress no-op Result and Limit plan nodes (Kyotaro Horiguchi, Amit Kapila, Tom Lane)

PerformanceReduce optimizer overhead by not keeping plans on the basis of cheap startup cost when the optimizer only cares about total cost overall

Server / Optimizer

Reduce optimizer overhead by not keeping plans on the basis of cheap startup cost when the optimizer only cares about total cost overall (Tom Lane)

PerformanceAdd COPY FREEZE option to avoid the overhead of marking tuples as frozen later

Server / General Performance

Add COPY FREEZE option to avoid the overhead of marking tuples as frozen later (Simon Riggs, Jeff Davis)

PerformanceImprove performance of NUMERIC calculations

Server / General Performance

Improve performance of NUMERIC calculations (Kyotaro Horiguchi)

PerformanceImprove synchronization of sessions waiting for commit_delay

Server / General Performance

Improve synchronization of sessions waiting for commit_delay (Peter Geoghegan)

This greatly improves the usefulness of commit_delay.

PerformanceImprove performance of the CREATE TEMPORARY TABLE ... ON COMMIT DELETE ROWS option by not truncating such temporary tables in transactions that haven't touched any temporary tables

Server / General Performance

Improve performance of the CREATE TEMPORARY TABLE ... ON COMMIT DELETE ROWS option by not truncating such temporary tables in transactions that haven't touched any temporary tables (Heikki Linnakangas)

PerformanceMake vacuum recheck visibility after it has removed expired tuples

Server / General Performance

Make vacuum recheck visibility after it has removed expired tuples (Pavan Deolasee)

This increases the chance of a page being marked as all-visible.

PerformanceAdd per-resource-owner lock caches

Server / General Performance

Add per-resource-owner lock caches (Jeff Janes)

This speeds up lock bookkeeping at statement completion in multi-statement transactions that hold many locks; it is particularly useful for pg_dump.

PerformanceAvoid scanning the entire relation cache at commit of a transaction that creates a new relation

Server / General Performance

Avoid scanning the entire relation cache at commit of a transaction that creates a new relation (Jeff Janes)

This speeds up sessions that create many tables in successive small transactions, such as a pg_restore run.

PerformanceImprove performance of transactions that drop many relations

Server / General Performance

Improve performance of transactions that drop many relations (Tomas Vondra)

FeaturesAdd optional ability to checksum data pages and report corruption

Server / Monitoring

Add optional ability to checksum data pages and report corruption (Simon Riggs, Jeff Davis, Greg Smith, Ants Aasma)

The checksum option can be set during initdb.

FeaturesSplit the statistics collector's data file into separate global and per-database files

Server / Monitoring

Split the statistics collector's data file into separate global and per-database files (Tomas Vondra)

This reduces the I/O required for statistics tracking.

Bug fixesFix the statistics collector to operate properly in cases where the system clock goes backwards

Server / Monitoring

Fix the statistics collector to operate properly in cases where the system clock goes backwards (Tom Lane)

Previously, statistics collection would stop until the time again reached the latest time previously recorded.

FeaturesEmit an informative message to postmaster standard error when we are about to stop logging there

Server / Monitoring

Emit an informative message to postmaster standard error when we are about to stop logging there (Tom Lane)

This should help reduce user confusion about where to look for log output in common configurations that log to standard error only during postmaster startup.

FeaturesWhen an authentication failure occurs, log the relevant pg_hba.conf line, to ease debugging of unintended failures

Server / Authentication

When an authentication failure occurs, log the relevant pg_hba.conf line, to ease debugging of unintended failures (Magnus Hagander)

FeaturesImprove LDAP error reporting and documentation

Server / Authentication

Improve LDAP error reporting and documentation (Peter Eisentraut)

FeaturesAdd support for specifying LDAP authentication parameters in URL format, per RFC 4516

Server / Authentication

Add support for specifying LDAP authentication parameters in URL format, per RFC 4516 (Peter Eisentraut)

FeaturesChange the ssl_ciphers parameter to start with DEFAULT, rather than ALL, then remove insecure ciphers

Server / Authentication

Change the ssl_ciphers parameter to start with DEFAULT, rather than ALL, then remove insecure ciphers (Magnus Hagander)

This should yield a more appropriate SSL cipher set.

FeaturesParse and load pg_ident.conf once, not during each connection

Server / Authentication

Parse and load pg_ident.conf once, not during each connection (Amit Kapila)

This is similar to how pg_hba.conf is processed.

FeaturesGreatly reduce System V shared memory requirements

Server / Server Settings

Greatly reduce System V shared memory requirements (Robert Haas)

On Unix-like systems, mmap() is now used for most of PostgreSQL's shared memory. For most users, this will eliminate any need to adjust kernel parameters for shared memory.

FeaturesAllow the postmaster to listen on multiple Unix-domain sockets

Server / Server Settings

Allow the postmaster to listen on multiple Unix-domain sockets (Honza Horák)

The configuration parameter unix_socket_directory is replaced by unix_socket_directories, which accepts a list of directories.

FeaturesAllow a directory of configuration files to be processed

Server / Server Settings

Allow a directory of configuration files to be processed (Magnus Hagander, Greg Smith, Selena Deckelmann)

Such a directory is specified with include_dir in the server configuration file.

FeaturesIncrease the maximum initdb-configured value for shared_buffers to 128MB

Server / Server Settings

Increase the maximum initdb-configured value for shared_buffers to 128MB (Robert Haas)

This is the maximum value that initdb will attempt to set in postgresql.conf; the previous maximum was 32MB.

FeaturesRemove the external PID file, if any, on postmaster exit

Server / Server Settings

Remove the external PID file, if any, on postmaster exit (Peter Eisentraut)

FeaturesAllow a streaming replication standby to follow a timeline switch

Replication and Recovery

Allow a streaming replication standby to follow a timeline switch (Heikki Linnakangas)

This allows streaming standby servers to receive WAL data from a slave newly promoted to master status. Previously, other standbys would require a resync to begin following the new master.

FeaturesAdd SQL functions pg_is_in_backup() and pg_backup_start_time()

Replication and Recovery

Add SQL functions pg_is_in_backup() and pg_backup_start_time() (Gilles Darold)

These functions report the status of base backups.

PerformanceImprove performance of streaming log shipping with synchronous_commit disabled

Replication and Recovery

Improve performance of streaming log shipping with synchronous_commit disabled (Andres Freund)

PerformanceAllow much faster promotion of a streaming standby to primary

Replication and Recovery

Allow much faster promotion of a streaming standby to primary (Simon Riggs, Kyotaro Horiguchi)

FeaturesAdd the last checkpoint's redo location to pg_controldata's output

Replication and Recovery

Add the last checkpoint's redo location to pg_controldata's output (Fujii Masao)

This information is useful for determining which WAL files are needed for restore.

FeaturesAllow tools like pg_receivexlog to run on computers with different architectures

Replication and Recovery

Allow tools like pg_receivexlog to run on computers with different architectures (Heikki Linnakangas)

WAL files can still only be replayed on servers with the same architecture as the primary; but they can now be transmitted to and stored on machines of any architecture, since the streaming replication protocol is now machine-independent.

FeaturesMake pg_basebackup --write-recovery-conf output a minimal recovery.conf file

Replication and Recovery

Make pg_basebackup --write-recovery-conf output a minimal recovery.conf file (Zoltán Böszörményi, Magnus Hagander)

This simplifies setting up a standby server.

FeaturesAllow pg_receivexlog and pg_basebackup --xlog-method to handle streaming timeline switches

Replication and Recovery

Allow pg_receivexlog and pg_basebackup --xlog-method to handle streaming timeline switches (Heikki Linnakangas)

FeaturesAdd wal_receiver_timeout parameter to control the WAL receiver's timeout

Replication and Recovery

Add wal_receiver_timeout parameter to control the WAL receiver's timeout (Amit Kapila)

This allows more rapid detection of connection failure.

FeaturesChange the WAL record format to allow splitting the record header across pages

Replication and Recovery

Change the WAL record format to allow splitting the record header across pages (Heikki Linnakangas)

The new format is slightly more compact, and is more efficient to write.

FeaturesImplement SQL-standard LATERAL option for FROM-clause subqueries and function calls

Queries

Implement SQL-standard LATERAL option for FROM-clause subqueries and function calls (Tom Lane)

This feature allows subqueries and functions in FROM to reference columns from other tables in the FROM clause. The LATERAL keyword is optional for functions.

FeaturesAdd support for piping COPY and psql \copy data to/from an external program

Queries

Add support for piping COPY and psql \copy data to/from an external program (Etsuro Fujita)

FeaturesAllow a multirow VALUES clause in a rule to reference OLD/NEW

Queries

Allow a multirow VALUES clause in a rule to reference OLD/NEW (Tom Lane)

FeaturesAdd support for event triggers

Object Manipulation

Add support for event triggers (Dimitri Fontaine, Robert Haas, Álvaro Herrera)

This allows server-side functions written in event-enabled languages to be called when DDL commands are run.

FeaturesAllow foreign data wrappers to support writes (inserts/updates/deletes) on foreign tables

Object Manipulation

Allow foreign data wrappers to support writes (inserts/updates/deletes) on foreign tables (KaiGai Kohei)

FeaturesAdd CREATE SCHEMA ... IF NOT EXISTS clause

Object Manipulation

Add CREATE SCHEMA ... IF NOT EXISTS clause (Fabrízio de Royes Mello)

FeaturesMake REASSIGN OWNED also change ownership of shared objects

Object Manipulation

Make REASSIGN OWNED also change ownership of shared objects (Álvaro Herrera)

FeaturesMake CREATE AGGREGATE complain if the given initial value string is not valid input for the transition datatype

Object Manipulation

Make CREATE AGGREGATE complain if the given initial value string is not valid input for the transition datatype (Tom Lane)

FeaturesSuppress CREATE TABLE's messages about implicit index and sequence creation

Object Manipulation

Suppress CREATE TABLE's messages about implicit index and sequence creation (Robert Haas)

These messages now appear at DEBUG1 verbosity, so that they will not be shown by default.

FeaturesAllow DROP TABLE IF EXISTS to succeed when a non-existent schema is specified in the table name

Object Manipulation

Allow DROP TABLE IF EXISTS to succeed when a non-existent schema is specified in the table name (Bruce Momjian)

Previously, it threw an error if the schema did not exist.

FeaturesProvide clients with constraint violation details as separate fields

Object Manipulation

Provide clients with constraint violation details as separate fields (Pavel Stehule)

This allows clients to retrieve table, column, data type, or constraint name error details. Previously such information had to be extracted from error strings. Client library support is required to access these fields.

FeaturesSupport IF NOT EXISTS option in ALTER TYPE ... ADD VALUE

Object Manipulation / ALTER

Support IF NOT EXISTS option in ALTER TYPE ... ADD VALUE (Andrew Dunstan)

This is useful for conditionally adding values to enumerated types.

FeaturesAdd ALTER ROLE ALL SET to establish settings for all users

Object Manipulation / ALTER

Add ALTER ROLE ALL SET to establish settings for all users (Peter Eisentraut)

This allows settings to apply to all users in all databases. ALTER DATABASE SET already allowed addition of settings for all users in a single database. postgresql.conf has a similar effect.

FeaturesAdd support for ALTER RULE ... RENAME

Object Manipulation / ALTER

Add support for ALTER RULE ... RENAME (Ali Dar)

FeaturesAdd materialized views

Object Manipulation / VIEWs

Add materialized views (Kevin Grittner)

Unlike ordinary views, where the base tables are read on every access, materialized views create physical tables at creation or refresh time. Access to the materialized view then reads from its physical table. There is not yet any facility for incrementally refreshing materialized views or auto-accessing them via base table access.

FeaturesMake simple views auto-updatable

Object Manipulation / VIEWs

Make simple views auto-updatable (Dean Rasheed)

Simple views that reference some or all columns from a single base table are now updatable by default. More complex views can be made updatable using INSTEAD OF triggers or INSTEAD rules.

FeaturesAdd CREATE RECURSIVE VIEW syntax

Object Manipulation / VIEWs

Add CREATE RECURSIVE VIEW syntax (Peter Eisentraut)

Internally this is translated into CREATE VIEW ... WITH RECURSIVE ....

FeaturesImprove view/rule printing code to handle cases where referenced tables are renamed, or columns are renamed, added, or dropped

Object Manipulation / VIEWs

Improve view/rule printing code to handle cases where referenced tables are renamed, or columns are renamed, added, or dropped (Tom Lane)

Table and column renamings can produce cases where, if we merely substitute the new name into the original text of a rule or view, the result is ambiguous. This change fixes the rule-dumping code to insert manufactured table and column aliases when needed to preserve the original semantics.

FeaturesIncrease the maximum size of large objects from 2GB to 4TB

Data Types

Increase the maximum size of large objects from 2GB to 4TB (Nozomi Anzai, Yugo Nagata)

This change includes adding 64-bit-capable large object access functions, both in the server and in libpq.

FeaturesAllow text timezone designations, e.g. "America/Chicago", in the "T" field of ISO-format timestamptz input

Data Types

Allow text timezone designations, e.g. "America/Chicago", in the "T" field of ISO-format timestamptz input (Bruce Momjian)

FeaturesAdd operators and functions to extract elements from JSON values

Data Types / JSON

Add operators and functions to extract elements from JSON values (Andrew Dunstan)

FeaturesAllow JSON values to be converted into records

Data Types / JSON

Allow JSON values to be converted into records (Andrew Dunstan)

FeaturesAdd functions to convert scalars, records, and hstore values to JSON

Data Types / JSON

Add functions to convert scalars, records, and hstore values to JSON (Andrew Dunstan)

FeaturesAdd array_remove() and array_replace() functions

Functions

Add array_remove() and array_replace() functions (Marco Nenciarini, Gabriele Bartolini)

FeaturesAllow concat() and format() to properly expand VARIADIC-labeled arguments

Functions

Allow concat() and format() to properly expand VARIADIC-labeled arguments (Pavel Stehule)

FeaturesImprove format() to provide field width and left/right alignment options

Functions

Improve format() to provide field width and left/right alignment options (Pavel Stehule)

FeaturesMake to_char(), to_date(), and to_timestamp() handle negative (BC) century values properly

Functions

Make to_char(), to_date(), and to_timestamp() handle negative (BC) century values properly (Bruce Momjian)

Previously the behavior was either wrong or inconsistent with positive/AD handling, e.g. with the format mask "IYYY-IW-DY".

FeaturesMake to_date() and to_timestamp() return proper results when mixing ISO and Gregorian week/day designations

Functions

Make to_date() and to_timestamp() return proper results when mixing ISO and Gregorian week/day designations (Bruce Momjian)

FeaturesCause pg_get_viewdef() to start a new line by default after each SELECT target list entry and FROM entry

Functions

Cause pg_get_viewdef() to start a new line by default after each SELECT target list entry and FROM entry (Marko Tiikkaja)

This reduces line length in view printing, for instance in pg_dump output.

Bug fixesFix map_sql_value_to_xml_value() to print values of domain types the same way their base type would be printed

Functions

Fix map_sql_value_to_xml_value() to print values of domain types the same way their base type would be printed (Pavel Stehule)

There are special formatting rules for certain built-in types such as boolean; these rules now also apply to domains over these types.

FeaturesAllow PL/pgSQL to use RETURN with a composite-type expression

Server-Side Languages / PL/pgSQL Server-Side Language

Allow PL/pgSQL to use RETURN with a composite-type expression (Asif Rehman)

Previously, in a function returning a composite type, RETURN could only reference a variable of that type.

FeaturesAllow PL/pgSQL to access constraint violation details as separate fields

Server-Side Languages / PL/pgSQL Server-Side Language

Allow PL/pgSQL to access constraint violation details as separate fields (Pavel Stehule)

FeaturesAllow PL/pgSQL to access the number of rows processed by COPY

Server-Side Languages / PL/pgSQL Server-Side Language

Allow PL/pgSQL to access the number of rows processed by COPY (Pavel Stehule)

A COPY executed in a PL/pgSQL function now updates the value retrieved by GET DIAGNOSTICS x = ROW_COUNT.

FeaturesAllow unreserved keywords to be used as identifiers everywhere in PL/pgSQL

Server-Side Languages / PL/pgSQL Server-Side Language

Allow unreserved keywords to be used as identifiers everywhere in PL/pgSQL (Tom Lane)

In certain places in the PL/pgSQL grammar, keywords had to be quoted to be used as identifiers, even if they were nominally unreserved.

FeaturesAdd PL/Python result object string handler

Server-Side Languages / PL/Python Server-Side Language

Add PL/Python result object string handler (Peter Eisentraut)

This allows plpy.debug(rv) to output something reasonable.

FeaturesMake PL/Python convert OID values to a proper Python numeric type

Server-Side Languages / PL/Python Server-Side Language

Make PL/Python convert OID values to a proper Python numeric type (Peter Eisentraut)

FeaturesHandle SPI errors raised explicitly (with PL/Python's RAISE) the same as internal SPI errors

Server-Side Languages / PL/Python Server-Side Language

Handle SPI errors raised explicitly (with PL/Python's RAISE) the same as internal SPI errors (Oskari Saarenmaa and Jan Urbanski)

Bug fixesPrevent leakage of SPI tuple tables during subtransaction abort

Server Programming Interface (SPI)

Prevent leakage of SPI tuple tables during subtransaction abort (Tom Lane)

At the end of any failed subtransaction, the core SPI code now releases any SPI tuple tables that were created during that subtransaction. This avoids the need for SPI-using code to keep track of such tuple tables and release them manually in error-recovery code. Failure to do so caused a number of transaction-lifespan memory leakage issues in PL/pgSQL and perhaps other SPI clients. SPI_freetuptable() now protects itself against multiple freeing requests, so any existing code that did take care to clean up shouldn't be broken by this change.

FeaturesAllow SPI functions to access the number of rows processed by COPY

Server Programming Interface (SPI)

Allow SPI functions to access the number of rows processed by COPY (Pavel Stehule)

FeaturesAdd command-line utility pg_isready to check if the server is ready to accept connections

Client Applications

Add command-line utility pg_isready to check if the server is ready to accept connections (Phil Sorber)

FeaturesSupport multiple --table arguments for pg_restore, clusterdb, reindexdb, and vacuumdb

Client Applications

Support multiple --table arguments for pg_restore, clusterdb, reindexdb, and vacuumdb (Josh Kupershmidt)

This is similar to the way pg_dump's --table option works.

FeaturesAdd --dbname option to pg_dumpall, pg_basebackup, and pg_receivexlog to allow specifying a connection string

Client Applications

Add --dbname option to pg_dumpall, pg_basebackup, and pg_receivexlog to allow specifying a connection string (Amit Kapila)

FeaturesAdd libpq function PQconninfo() to return connection information

Client Applications

Add libpq function PQconninfo() to return connection information (Zoltán Böszörményi, Magnus Hagander)

FeaturesAdjust function cost settings so psql tab completion and pattern searching are more efficient

Client Applications / psql

Adjust function cost settings so psql tab completion and pattern searching are more efficient (Tom Lane)

FeaturesImprove psql's tab completion coverage

Client Applications / psql

Improve psql's tab completion coverage (Jeff Janes, Dean Rasheed, Peter Eisentraut, Magnus Hagander)

FeaturesAllow the psql --single-transaction mode to work when reading from standard input

Client Applications / psql

Allow the psql --single-transaction mode to work when reading from standard input (Fabien Coelho, Robert Haas)

Previously this option only worked when reading from a file.

FeaturesRemove psql warning when connecting to an older server

Client Applications / psql

Remove psql warning when connecting to an older server (Peter Eisentraut)

A warning is still issued when connecting to a server of a newer major version than psql's.

FeaturesAdd psql command \watch to repeatedly execute a SQL command

Client Applications / psql / Backslash Commands

Add psql command \watch to repeatedly execute a SQL command (Will Leinweber)

FeaturesAdd psql command \gset to store query results in psql variables

Client Applications / psql / Backslash Commands

Add psql command \gset to store query results in psql variables (Pavel Stehule)

FeaturesAdd SSL information to psql's \conninfo command

Client Applications / psql / Backslash Commands

Add SSL information to psql's \conninfo command (Alastair Turner)

FeaturesAdd "Security" column to psql's \df+ output

Client Applications / psql / Backslash Commands

Add "Security" column to psql's \df+ output (Jon Erdman)

FeaturesAllow psql command \l to accept a database name pattern

Client Applications / psql / Backslash Commands

Allow psql command \l to accept a database name pattern (Peter Eisentraut)

FeaturesIn psql, do not allow \connect to use defaults if there is no active connection

Client Applications / psql / Backslash Commands

In psql, do not allow \connect to use defaults if there is no active connection (Bruce Momjian)

This might be the case if the server had crashed.

FeaturesProperly reset state after failure of a SQL command executed with psql's \g file

Client Applications / psql / Backslash Commands

Properly reset state after failure of a SQL command executed with psql's \g file (Tom Lane)

Previously, the output from subsequent SQL commands would unexpectedly continue to go to the same file.

FeaturesAdd a latex-longtable output format to psql

Client Applications / psql / Output

Add a latex-longtable output format to psql (Bruce Momjian)

This format allows tables to span multiple pages.

FeaturesAdd a border=3 output mode to the psql latex format

Client Applications / psql / Output

Add a border=3 output mode to the psql latex format (Bruce Momjian)

FeaturesIn psql's tuples-only and expanded output modes, no longer emit "(No rows)" for zero rows

Client Applications / psql / Output

In psql's tuples-only and expanded output modes, no longer emit "(No rows)" for zero rows (Peter Eisentraut)

FeaturesIn psql's unaligned, expanded output mode, no longer print an empty line for zero rows

Client Applications / psql / Output

In psql's unaligned, expanded output mode, no longer print an empty line for zero rows (Peter Eisentraut)

FeaturesAdd pg_dump --jobs option to dump tables in parallel

Client Applications / pg_dump

Add pg_dump --jobs option to dump tables in parallel (Joachim Wieland)

FeaturesMake pg_dump output functions in a more predictable order

Client Applications / pg_dump

Make pg_dump output functions in a more predictable order (Joel Jacobson)

Bug fixesFix tar files emitted by pg_dump to be POSIX conformant

Client Applications / pg_dump

Fix tar files emitted by pg_dump to be POSIX conformant (Brian Weaver, Tom Lane)

FeaturesAdd --dbname option to pg_dump, for consistency with other client commands

Client Applications / pg_dump

Add --dbname option to pg_dump, for consistency with other client commands (Heikki Linnakangas)

The database name could already be supplied last without a flag.

FeaturesMake initdb fsync the newly created data directory

Client Applications / initdb

Make initdb fsync the newly created data directory (Jeff Davis)

This insures data integrity in event of a system crash shortly after initdb. This can be disabled by using --nosync.

FeaturesAdd initdb --sync-only option to sync the data directory to durable storage

Client Applications / initdb

Add initdb --sync-only option to sync the data directory to durable storage (Bruce Momjian)

This is used by pg_upgrade.

FeaturesMake initdb issue a warning about placing the data directory at the top of a file system mount point

Client Applications / initdb

Make initdb issue a warning about placing the data directory at the top of a file system mount point (Bruce Momjian)

FeaturesAdd infrastructure to allow plug-in background worker processes

Source Code

Add infrastructure to allow plug-in background worker processes (Álvaro Herrera)

FeaturesCreate a centralized timeout API

Source Code

Create a centralized timeout API (Zoltán Böszörményi)

FeaturesCreate libpgcommon and move pg_malloc() and other functions there

Source Code

Create libpgcommon and move pg_malloc() and other functions there (Álvaro Herrera, Andres Freund)

This allows libpgport to be used solely for portability-related code.

FeaturesAdd support for list links embedded in larger structs

Source Code

Add support for list links embedded in larger structs (Andres Freund)

FeaturesUse SA_RESTART for all signals, including SIGALRM

Source Code

Use SA_RESTART for all signals, including SIGALRM (Tom Lane)

Bug fixesEnsure that the correct text domain is used when translating errcontext() messages

Source Code

Ensure that the correct text domain is used when translating errcontext() messages (Heikki Linnakangas)

FeaturesStandardize naming of client-side memory allocation functions

Source Code

Standardize naming of client-side memory allocation functions (Tom Lane)

FeaturesProvide support for "static assertions" that will fail at compile time if some compile-time-constant condition is not met

Source Code

Provide support for "static assertions" that will fail at compile time if some compile-time-constant condition is not met (Andres Freund, Tom Lane)

FeaturesSupport Assert() in client-side code

Source Code

Support Assert() in client-side code (Andrew Dunstan)

FeaturesAdd decoration to inform the C compiler that some ereport() and elog() calls do not return

Source Code

Add decoration to inform the C compiler that some ereport() and elog() calls do not return (Peter Eisentraut, Andres Freund, Tom Lane, Heikki Linnakangas)

FeaturesAllow options to be passed to the regression test output comparison utility via PG_REGRESS_DIFF_OPTS

Source Code

Allow options to be passed to the regression test output comparison utility via PG_REGRESS_DIFF_OPTS (Peter Eisentraut)

FeaturesAdd isolation tests for CREATE INDEX CONCURRENTLY

Source Code

Add isolation tests for CREATE INDEX CONCURRENTLY (Abhijit Menon-Sen)

FeaturesRemove typedefs for int2/int4 as they are better represented as int16/int32

Source Code

Remove typedefs for int2/int4 as they are better represented as int16/int32 (Peter Eisentraut)

Bug fixesFix install-strip on Mac OS X

Source Code

Fix install-strip on Mac OS X (Peter Eisentraut)

FeaturesRemove configure flag --disable-shared, as it is no longer supported

Source Code

Remove configure flag --disable-shared, as it is no longer supported (Bruce Momjian)

FeaturesRewrite pgindent in Perl

Source Code

Rewrite pgindent in Perl (Andrew Dunstan)

FeaturesProvide Emacs macro to set Perl formatting to match PostgreSQL's perltidy settings

Source Code

Provide Emacs macro to set Perl formatting to match PostgreSQL's perltidy settings (Peter Eisentraut)

FeaturesRun tool to check the keyword list whenever the backend grammar is changed

Source Code

Run tool to check the keyword list whenever the backend grammar is changed (Tom Lane)

FeaturesChange the way UESCAPE is lexed, to significantly reduce the size of the lexer tables

Source Code

Change the way UESCAPE is lexed, to significantly reduce the size of the lexer tables (Heikki Linnakangas)

FeaturesCentralize flex and bison make rules

Source Code

Centralize flex and bison make rules (Peter Eisentraut)

This is useful for pgxs authors.

FeaturesChange many internal backend functions to return object OIDs rather than void

Source Code

Change many internal backend functions to return object OIDs rather than void (Dimitri Fontaine)

This is useful for event triggers.

FeaturesInvent pre-commit/pre-prepare/pre-subcommit events for transaction callbacks

Source Code

Invent pre-commit/pre-prepare/pre-subcommit events for transaction callbacks (Tom Lane)

Loadable modules that use transaction callbacks might need modification to handle these new event types.

FeaturesAdd function pg_identify_object() to produce a machine-readable description of a database object

Source Code

Add function pg_identify_object() to produce a machine-readable description of a database object (Álvaro Herrera)

FeaturesAdd post-ALTER-object server hooks

Source Code

Add post-ALTER-object server hooks (KaiGai Kohei)

FeaturesImplement a generic binary heap and use it for Merge-Append operations

Source Code

Implement a generic binary heap and use it for Merge-Append operations (Abhijit Menon-Sen)

FeaturesProvide a tool to help detect timezone abbreviation changes when updating the src/timezone/data files

Source Code

Provide a tool to help detect timezone abbreviation changes when updating the src/timezone/data files (Tom Lane)

FeaturesAdd pkg-config support for libpq and ecpg libraries

Source Code

Add pkg-config support for libpq and ecpg libraries (Peter Eisentraut)

FeaturesRemove src/tools/backend, now that the content is on the PostgreSQL wiki

Source Code

Remove src/tools/backend, now that the content is on the PostgreSQL wiki (Bruce Momjian)

FeaturesSplit out WAL reading as an independent facility

Source Code

Split out WAL reading as an independent facility (Heikki Linnakangas, Andres Freund)

FeaturesUse a 64-bit integer to represent WAL positions (XLogRecPtr) instead of two 32-bit integers

Source Code

Use a 64-bit integer to represent WAL positions (XLogRecPtr) instead of two 32-bit integers (Heikki Linnakangas)

Generally, tools that need to read the WAL format will need to be adjusted.

FeaturesAllow PL/Python to support platform-specific include directories

Source Code

Allow PL/Python to support platform-specific include directories (Peter Eisentraut)

FeaturesAllow PL/Python on OS X to build against custom versions of Python

Source Code

Allow PL/Python on OS X to build against custom versions of Python (Peter Eisentraut)

FeaturesAdd a Postgres foreign data wrapper contrib module to allow access to other Postgres servers

Additional Modules

Add a Postgres foreign data wrapper contrib module to allow access to other Postgres servers (Shigeru Hanada)

This foreign data wrapper supports writes.

FeaturesAdd pg_xlogdump contrib program

Additional Modules

Add pg_xlogdump contrib program (Andres Freund)

FeaturesAdd support for indexing of regular-expression searches in pg_trgm

Additional Modules

Add support for indexing of regular-expression searches in pg_trgm (Alexander Korotkov)

FeaturesImprove pg_trgm's handling of multibyte characters

Additional Modules

Improve pg_trgm's handling of multibyte characters (Tom Lane)

On a platform that does not have the wcstombs() or towlower() library functions, this could result in an incompatible change in the contents of pg_trgm indexes for non-ASCII data. In such cases, REINDEX those indexes to ensure correct search results.

FeaturesAdd a pgstattuple function to report the size of the pending-insertions list of a GIN index

Additional Modules

Add a pgstattuple function to report the size of the pending-insertions list of a GIN index (Fujii Masao)

FeaturesMake oid2name, pgbench, and vacuumlo set fallback_application_name

Additional Modules

Make oid2name, pgbench, and vacuumlo set fallback_application_name (Amit Kapila)

FeaturesImprove output of pg_test_timing

Additional Modules

Improve output of pg_test_timing (Bruce Momjian)

FeaturesImprove output of pg_test_fsync

Additional Modules

Improve output of pg_test_fsync (Peter Geoghegan)

FeaturesCreate a dedicated foreign data wrapper, with its own option validator function, for dblink

Additional Modules

Create a dedicated foreign data wrapper, with its own option validator function, for dblink (Shigeru Hanada)

When using this FDW to define the target of a dblink connection, instead of using a hard-wired list of connection options, the underlying libpq library is consulted to see what connection options it supports.

FeaturesAllow pg_upgrade to do dumps and restores in parallel

Additional Modules / pg_upgrade

Allow pg_upgrade to do dumps and restores in parallel (Bruce Momjian, Andrew Dunstan)

This allows parallel schema dump/restore of databases, as well as parallel copy/link of data files per tablespace. Use the --jobs option to specify the level of parallelism.

FeaturesMake pg_upgrade create Unix-domain sockets in the current directory

Additional Modules / pg_upgrade

Make pg_upgrade create Unix-domain sockets in the current directory (Bruce Momjian, Tom Lane)

This reduces the possibility that someone will accidentally connect during the upgrade.

FeaturesMake pg_upgrade --check mode properly detect the location of non-default socket directories

Additional Modules / pg_upgrade

Make pg_upgrade --check mode properly detect the location of non-default socket directories (Bruce Momjian, Tom Lane)

PerformanceImprove performance of pg_upgrade for databases with many tables

Additional Modules / pg_upgrade

Improve performance of pg_upgrade for databases with many tables (Bruce Momjian)

FeaturesImprove pg_upgrade's logs by showing executed commands

Additional Modules / pg_upgrade

Improve pg_upgrade's logs by showing executed commands (Álvaro Herrera)

FeaturesImprove pg_upgrade's status display during copy/link

Additional Modules / pg_upgrade

Improve pg_upgrade's status display during copy/link (Bruce Momjian)

FeaturesAdd --foreign-keys option to pgbench

Additional Modules / pgbench

Add --foreign-keys option to pgbench (Jeff Janes)

This adds foreign key constraints to the standard tables created by pgbench, for use in foreign key performance testing.

FeaturesAllow pgbench to aggregate performance statistics and produce output every --aggregate-interval seconds

Additional Modules / pgbench

Allow pgbench to aggregate performance statistics and produce output every --aggregate-interval seconds (Tomas Vondra)

FeaturesAdd pgbench --sampling-rate option to control the percentage of transactions logged

Additional Modules / pgbench

Add pgbench --sampling-rate option to control the percentage of transactions logged (Tomas Vondra)

FeaturesReduce and improve the status message output of pgbench's initialization mode

Additional Modules / pgbench

Reduce and improve the status message output of pgbench's initialization mode (Robert Haas, Peter Eisentraut)

FeaturesAdd pgbench -q mode to print one output line every five seconds

Additional Modules / pgbench

Add pgbench -q mode to print one output line every five seconds (Tomas Vondra)

FeaturesOutput pgbench elapsed and estimated remaining time during initialization

Additional Modules / pgbench

Output pgbench elapsed and estimated remaining time during initialization (Tomas Vondra)

FeaturesAllow pgbench to use much larger scale factors, by changing relevant columns from integer to bigint when the requested scale factor exceeds 20000

Additional Modules / pgbench

Allow pgbench to use much larger scale factors, by changing relevant columns from integer to bigint when the requested scale factor exceeds 20000 (Greg Smith)

FeaturesAllow EPUB-format documentation to be created

Documentation

Allow EPUB-format documentation to be created (Peter Eisentraut)

FeaturesUpdate FreeBSD kernel configuration documentation

Documentation

Update FreeBSD kernel configuration documentation (Brad Davis)

FeaturesImprove WINDOW function documentation

Documentation

Improve WINDOW function documentation (Bruce Momjian, Florian Pflug)

FeaturesAdd instructions for setting up the documentation tool chain on macOS

Documentation

Add instructions for setting up the documentation tool chain on macOS (Peter Eisentraut)

FeaturesImprove commit_delay documentation

Documentation

Improve commit_delay documentation (Peter Geoghegan)

How is this comparison generated?

The comparison follows PostgreSQL release notes from just after the source through the target version. For a major upgrade, maintenance releases from each older branch are included only up to the next major release date, and never after the target date. A major version such as 18 means its initial release, 18.0. Previews and development snapshots are labeled separately.

Entries come from the original English manuals. Release coverage and commit evidence are verified against upstream sources. Every entry retains its complete explanation and source link. Categories aid browsing; read the full notes for impact, conditions, and migration steps.

Fixes can be backported to several branches. Confirmed duplicates are merged conservatively, with every branch explanation retained. A note describing several independent fixes is excluded only when all are already present in the source. Major-release features remain distinct from related maintenance patches unless their complete original descriptions match. Uncertain matches are retained. This is a release-note history, not an exhaustive comparison of compiled binaries.

CVE results are calculated independently from the PostgreSQL security registry and vulnerability records. A CVE counts as gained protection only when the source is affected and the target is fixed or unaffected. Remaining vulnerabilities are listed separately. Security entries and distinct CVEs are counted separately.

Interaction inspired by pgversions.com and pgversionreport. Content comes from PostgreSQL release notes. See the release notes archive.