News: 0000832408

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

PostgreSQL 13 released

([Development] Sep 24, 2020 13:48 UTC (Thu) (corbet))


Version 13 of the PostgreSQL database management system is out. " PostgreSQL 13 includes significant improvements to its indexing and lookup system that benefit large databases, including space savings and performance gains for indexes, faster response times for queries that use aggregates or partitions, better query planning when using enhanced statistics, and more. Along with highly requested features like parallelized vacuuming and incremental sorting, PostgreSQL 13 provides a better data management experience for workloads big and small, with optimizations for daily administration, more conveniences for application developers, and security enhancements. "

From :

PostgreSQL Global Development Group <announce-noreply-AT-postgresql.org>

To :

PostgreSQL Announce <pgsql-announce-AT-lists.postgresql.org>

Subject :

PostgreSQL 13 Released!

Date :

Thu, 24 Sep 2020 12:59:18 +0000

Message-ID :

<160095235826.19857.4360702861511807761@wrigleys.postgresql.org>

Archive-link :

[1]Article

The PostgreSQL Global Development Group today announced the release of

[PostgreSQL 13](https://www.postgresql.org/docs/13/release-13.html), the latest

version of the world’s [most advanced open source database](https://www.postgresql.org/).

PostgreSQL 13 includes significant improvements to its indexing and lookup

system that benefit large databases, including space savings and performance

gains for indexes, faster response times for queries that use aggregates or

partitions, better query planning when using enhanced statistics, and more.

Along with highly requested features like [parallelized

vacuuming](https://www.postgresql.org/docs/13/sql-vacuum.html)

and [incremental

sorting](https://www.postgresql.org/docs/13/runtime-config-query.h...),

PostgreSQL 13 provides a better data management experience for workloads big and

small, with optimizations for daily administration, more conveniences for

application developers, and security enhancements.

"PostgreSQL 13 showcases the collaboration and dedication of our global

community in furthering the abilities of the world's most advanced open source

relational database," said Peter Eisentraut, a PostgreSQL Core Team member. "The

innovations that each release brings along with its reputation for reliability

and stability is the reason why more people choose to use PostgreSQL for their

applications."

[PostgreSQL](https://www.postgresql.org), an innovative data management system

known for its reliability and robustness, benefits from over 25 years of open

source development from a [global developer community](https://www.postgresql.org/community/)

and has become the preferred open source relational database for organizations

of all sizes.

### Continued Performance Gains

Building on work from the previous PostgreSQL release, PostgreSQL 13 can

efficiently handle [duplicate data in B-tree

indexes](https://www.postgresql.org/docs/13/btree-implementation.h...),

the standard database index. This lowers the overall space usage that B-tree

indexes require while improving overall query performance.

PostgreSQL 13 introduces incremental sorting, where sorted data from an earlier

step in a query can accelerate sorting at a later step. Additionally, PostgreSQL

can now use the [extended

statistics](https://www.postgresql.org/docs/13/planner-stats.html#PLA...)

system (accessed via [`CREATE

STATISTICS`](https://www.postgresql.org/docs/13/sql-createstatistics.html))

to create improved plans for queries with `OR` clauses and `IN`/`ANY` lookups

over lists.

In PostgreSQL 13, more types of

[aggregate](https://www.postgresql.org/docs/13/functions-aggregate.html)

and [grouping

set](https://www.postgresql.org/docs/13/queries-table-expressi...)

queries can leverage PostgreSQL’s efficient hash aggregation functionality, as

queries with large aggregates do not have to fit entirely into memory. Queries

with [partitioned tables](https://www.postgresql.org/docs/13/ddl-partitioning.html)

have received a performance boost, as there are now more cases where partitions

can be pruned and where partitions can be directly joined.

### Administration Optimizations

[Vacuuming](https://www.postgresql.org/docs/13/routine-vacuuming.html) is an

essential part of PostgreSQL administration, enabling the database to reclaim

storage space after rows are updated and deleted. This process can also present

administrative challenges, though prior PostgreSQL releases have done work to

ease the overhead of vacuuming.

PostgreSQL 13 continues to improve the vacuuming system with the introduction of

[parallelized vacuum for indexes](https://www.postgresql.org/docs/13/sql-vacuum.html).

In addition to the vacuuming performance benefits it offers, the use of this new

feature can be tuned to specific workloads as administrators can select the

number of parallel workers to run. In addition to these performance benefits,

data inserts can now trigger the autovacuum process.

[Replication

slots](https://www.postgresql.org/docs/13/warm-standby.html#STRE...),

which are used to prevent write-ahead logs (WAL) from being removed before they

are received by a replica, can be tuned in PostgreSQL 13 to specify the

[max number of WAL files to

retain](https://www.postgresql.org/docs/13/runtime-config-replica...)

and help avoid out-of-disk errors.

PostgreSQL 13 also adds more ways an administrator can monitor database

activity, including referencing WAL usage statistics from `EXPLAIN`, the

progress of streaming base backups, and the progress of the `ANALYZE` commands.

Additionally, the integrity of the output of the

[`pg_basebackup`](https://www.postgresql.org/docs/13/app-pgbasebackup.html)

command can be checked using the new

[`pg_verifybackup`](https://www.postgresql.org/docs/13/app-pgverifybackup.html)

command.

### Application Development Conveniences

PostgreSQL 13 makes it even easier to work with PostgreSQL data types coming

from different data sources. This release adds the

[`datetime()`](https://www.postgresql.org/docs/13/functions-json.html#FU...)

function to its SQL/JSON path support, which converts valid time formats (e.g.

ISO 8601 strings) to PostgreSQL-native types. Additionally, the UUID v4

generation function,

[`gen_random_uuid()`](https://www.postgresql.org/docs/13/functions-uuid.html),

is now available without having to install any extensions.

PostgreSQL’s partitioning system is more flexible, as partitioned tables fully

support logical replication and BEFORE row-level triggers.

The [`FETCH FIRST`](https://www.postgresql.org/docs/13/sql-select.html#SQL-LIMIT)

syntax in PostgreSQL 13 is now expanded to include the `WITH TIES` clause. When

specified, `WITH TIES` includes any rows that, based on the `ORDER BY` clause,

"tie" with the last row in the result set.

### Security Enhancements

PostgreSQL’s extension system is a key component of its robustness as it allows

developers to expand its functionality. In previous releases, new extensions

could only be installed by a database superuser. To make it easier to take

advantage of PostgreSQL’s extensibility, PostgreSQL 13 adds the concept of a

"[trusted extension](https://www.postgresql.org/docs/13/sql-createextension.html),"

which allows database users to install extensions that a superuser marks as

"trusted." Certain built-in extensions are marked as trusted by default,

including [`pgcrypto`](https://www.postgresql.org/docs/13/pgcrypto.html),

[`tablefunc`](https://www.postgresql.org/docs/13/tablefunc.html),

[`hstore`](https://www.postgresql.org/docs/13/hstore.html), and more.

For applications that require secure authentication methods, PostgreSQL 13

allows for clients to [require channel

binding](https://www.postgresql.org/docs/13/libpq-connect.html#LIB...)

when using [SCRAM

authentication](https://www.postgresql.org/docs/13/sasl-authentication.ht...),

and the PostgreSQL foreign data wrapper

([`postgres_fdw`](https://www.postgresql.org/docs/13/postgres-fdw.html))

can now use certificate-based authentication.

### About PostgreSQL

[PostgreSQL](https://www.postgresql.org) is the world's most advanced open

source database, with a global community of thousands of users, contributors,

companies and organizations. Built on over 30 years of engineering, starting at

the University of California, Berkeley, PostgreSQL has continued with an

unmatched pace of development. PostgreSQL's mature feature set not only matches

top proprietary database systems, but exceeds them in advanced database

features, extensibility, security, and stability.

### Press Release Translations

* [Chinese](https://www.postgresql.org/about/press/presskit13/zh/)

* [French](https://www.postgresql.org/about/press/presskit13/fr/)

* [German](https://www.postgresql.org/about/press/presskit13/de/)

* [Hebrew](https://www.postgresql.org/about/press/presskit13/he/)

* [Indonesian](https://www.postgresql.org/about/press/presskit13/id/)

* [Japanese](https://www.postgresql.org/about/press/presskit13/ja/)

* [Korean](https://www.postgresql.org/about/press/presskit13/ko/)

* [Polish](https://www.postgresql.org/about/press/presskit13/pl/)

* [Portuguese](https://www.postgresql.org/about/press/presskit13/pt/)

* [Russian](https://www.postgresql.org/about/press/presskit13/ru/)

* [Spanish](https://www.postgresql.org/about/press/presskit13/es/)

### Links

* [Download](https://www.postgresql.org/download/)

* [Release Notes](https://www.postgresql.org/docs/13/release-13.html)

* [Press Kit](https://www.postgresql.org/about/press/)

* [Security Page](https://www.postgresql.org/support/security/)

* [Versioning Policy](https://www.postgresql.org/support/versioning/)

* [Follow @postgresql on Twitter](https://twitter.com/postgresql)



[1] https://www.mail-archive.com/pgsql-announce@lists.postgresql.org/msg00600.html

An office party is not, as is sometimes supposed the Managing Director's
chance to kiss the tea-girl. It is the tea-girl's chance to kiss the
Managing Director (however bizarre an ambition this may seem to anyone
who has seen the Managing Director face on).
-- Katherine Whitehorn, "Roundabout"