↑↓ 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 10.13 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

10.13

2020-05-14

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

10.13 HistoricalSupport ends 2022-11-10

PostgreSQL 10.13

Migration and compatibility

A dump/restore is not required for those running 10.X.

However, if you are upgrading from a version earlier than 10.11, see Section E.13.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsEnsure that members of the pg_read_all_stats role can read all statistics views, as expected

Changes

Ensure that members of the pg_read_all_stats role can read all statistics views, as expected (Magnus Hagander)

The functions underlying the pg_stat_progress_* views had not gotten this memo.

Related records (2)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

Bug fixesFix full text search to handle NOT above a phrase search correctly

Changes

Fix full text search to handle NOT above a phrase search correctly (Tom Lane)

Queries such as !(foo<->bar) failed to find matching rows when implemented as a GiST or GIN index search.

Related records (3)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

Bug fixesFix full text search for cases where a phrase search includes an item with both prefix matching and a weight restriction

Changes

Fix full text search for cases where a phrase search includes an item with both prefix matching and a weight restriction (Tom Lane)

Related records (3)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

Bug fixesFix ts_headline() to make better headline selections when working with phrase queries

Changes

Fix ts_headline() to make better headline selections when working with phrase queries (Tom Lane)

Related records (3)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsIgnore file-not-found errors in pg_ls_waldir() and allied functions

Changes

Ignore file-not-found errors in pg_ls_waldir() and allied functions (Tom Lane)

This prevents a race condition failure if a file is removed between when we see its directory entry and when we attempt to stat() it.

Related records (2)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

Bug fixesFix low-probability crash after constraint violation errors in partitioned tables

Changes

Fix low-probability crash after constraint violation errors in partitioned tables (Andres Freund)

Related records (1)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsEnsure that TimelineHistoryRead and TimelineHistoryWrite wait states are reported in all code paths that read or write timeline history files

Changes

Ensure that TimelineHistoryRead and TimelineHistoryWrite wait states are reported in all code paths that read or write timeline history files (Masahiro Ikeda)

Related records (2)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

Bug fixesFix race conditions in synchronous standby management

Changes

Fix race conditions in synchronous standby management (Tom Lane)

During a change in the synchronous_standby_names setting, there was a window in which wrong decisions could be made about whether it is OK to release transactions that are waiting for synchronous commit. Another hazard for similarly wrong decisions existed if a walsender process exited and was immediately replaced by another.

Related records (3)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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.

Related records (3)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsAllow tab-completion of the filename argument to psql's \gx command

Changes

Allow tab-completion of the filename argument to psql's \gx command (Vik Fearing)

Related records (2)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsAdd pg_dump support for ALTER ... DEPENDS ON EXTENSION

Changes

Add pg_dump support for ALTER ... DEPENDS ON EXTENSION (Álvaro Herrera)

pg_dump previously ignored dependencies added this way, causing them to be forgotten during dump/restore or pg_upgrade.

Related records (3)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

Bug fixesFix cache reference leak in contrib/sepgsql

Changes

Fix cache reference leak in contrib/sepgsql (Michael Luo)

Related records (4)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsUse pkg-config, if available, to locate libxml2 during configure

Changes

Use pkg-config, if available, to locate libxml2 during configure (Hugh McMaster, Tom Lane, Peter Eisentraut)

If pkg-config is not present or lacks knowledge of libxml2, we still query xml2-config as before.

This change could break build processes that try to make PostgreSQL use a non-default version of libxml2 by putting that version's xml2-config into the PATH. Instead, set XML2_CONFIG to point to the non-default xml2-config. That method will work with either older or newer PostgreSQL releases.

Related records (2)

“Same change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

ImprovementsInclude CFLAGS_SL in CXXFLAGS when building a shared library

Changes

Include CFLAGS_SL in CXXFLAGS when building a shared library (Oleksii Kliukin)

This ensures that C++ source files are compiled correctly, for example by adding -fPIC when needed.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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 change” requires complete matching evidence. “Related commits” can cover independent changes, a partial backport, or a follow-up correction; each release keeps its own explanation.

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.