PostgreSQL 15 New Features With Examples (Beta 1)

May 24, 2022

PostgreSQL 15 New Features

With Examples (Beta 1)

Hewlett Packard Enterprise Japan Co, Ltd.

Noriyoshi Shinoda

? 2021-2022 Hewlett Packard Enterprise Japan Co, Ltd.

1

Index

Index ........................................................................................................................................ 2

1. About This Document ............................................................................................................ 5

1.1. Purpose .......................................................................................................................... 5

1.2. Audience ........................................................................................................................ 5

1.3. Scope ............................................................................................................................. 5

1.4. Software Version ............................................................................................................. 5

1.5. The Question, comment, and Responsibility ...................................................................... 6

1.6. Notation ......................................................................................................................... 6

2. New Features Summary ......................................................................................................... 8

2.1. Improvements to adapt to large scale environments ........................................................... 8

2.2. Improve reliability .......................................................................................................... 8

2.3. Improved maintainability ................................................................................................. 9

2.4. Improved in Programming ............................................................................................... 9

2.5. Preparing for future new features.................................................................................... 10

2.6. Incompatibility ..............................................................................................................11

2.6.1. Access privileges to the PUBLIC schema ..................................................................11

2.6.2. Exclusive backup mode ............................................................................................ 11

2.6.3. Psql ....................................................................................................................... 12

2.6.4. Literal .................................................................................................................... 13

2.6.5. ANALYZE ............................................................................................................. 14

2.6.6. Python 2................................................................................................................. 14

2.6.7. Date_bin ................................................................................................................ 14

2.6.8. Pg_amcheck ........................................................................................................... 15

2.6.9. Pgcrypto ................................................................................................................ 15

2.6.10. Pg_dump / pg_dumpall.......................................................................................... 15

2.6.11. Pg_upgrade .......................................................................................................... 15

2.6.12. Postmaster ............................................................................................................ 15

2.6.13. Array_to_tsvector ................................................................................................. 15

2.6.14. Xml2 ................................................................................................................... 16

3. New Feature Detail .............................................................................................................. 17

3.1. Architecture .................................................................................................................. 17

3.1.1. Modified System catalogs ....................................................................................... 17

3.1.2. Logical Replication Enhancements........................................................................... 22

3.1.3. Parallel Query Enhancements .................................................................................. 26

? 2021-2022 Hewlett Packard Enterprise Japan Co, Ltd.

2

3.1.4. WAL compression................................................................................................... 27

3.1.5. Archive Library ...................................................................................................... 27

3.1.6. Global Locale Provider ........................................................................................... 28

3.1.7. Statistics Information .............................................................................................. 30

3.1.8. GiST Index............................................................................................................. 30

3.1.9. Wait Events ............................................................................................................ 31

3.1.10. Role ..................................................................................................................... 31

3.1.11. Libpq ................................................................................................................... 32

3.1.12. Custom WAL resource manager ............................................................................. 33

3.1.13. Hook.................................................................................................................... 33

3.1.14. Custom scan providers .......................................................................................... 34

3.1.15 Build target ........................................................................................................... 34

3.1.16. Dynamic Shared Memory ...................................................................................... 34

3.2. SQL Statement.............................................................................................................. 35

3.2.1. Enhancements to JSON Syntax ................................................................................ 35

3.2.2. NUMERIC data type............................................................................................... 39

3.2.3. ALTER DATABASE ............................................................................................... 40

3.2.4. ALTER TABLE ...................................................................................................... 40

3.2.5. COPY .................................................................................................................... 40

3.2.6. CLUSTER ............................................................................................................. 42

3.2.7. CREATE DATABASE ............................................................................................ 42

3.2.8. CREATE TABLE ................................................................................................... 43

3.2.9. CREATE UNIQUE INDEX ..................................................................................... 44

3.2.10. CREATE SEQUENCE .......................................................................................... 45

3.2.11. CREATE VIEW .................................................................................................... 46

3.2.12. EXPLAIN ............................................................................................................ 46

3.2.13. GRANT ............................................................................................................... 47

3.2.14. MERGE ............................................................................................................... 47

3.2.15. VACUUM ............................................................................................................ 48

3.2.16. Functions ............................................................................................................. 49

3.3. Configuration parameters............................................................................................... 55

3.3.1. Added parameters ................................................................................................... 55

3.3.2. Modified Parameters ............................................................................................... 56

3.3.3. Parameters with default values changed .................................................................... 57

3.3.4. Removed parameter ................................................................................................ 57

3.3.5. Error when changing parameters .............................................................................. 58

? 2021-2022 Hewlett Packard Enterprise Japan Co, Ltd.

3

3.4. Utilities ........................................................................................................................ 59

3.4.1. Configure ............................................................................................................... 59

3.4.2. Psql ....................................................................................................................... 59

3.4.3. Pg_amcheck ........................................................................................................... 62

3.4.4. Pg_basebackup ....................................................................................................... 62

3.4.5. Pg_dump................................................................................................................ 64

3.4.6. Pg_recvlogical ........................................................................................................ 64

3.4.7. Pg_receivewal ........................................................................................................ 64

3.4.8. Pg_resetwal ............................................................................................................ 65

3.4.9. Pg_rewind .............................................................................................................. 65

3.4.10. Pg_upgrade .......................................................................................................... 65

3.4.11. Pg_waldump......................................................................................................... 66

3.5. Contrib modules............................................................................................................ 67

3.5.1. Amcheck ................................................................................................................ 67

3.5.2. Basebackup_to_shell............................................................................................... 67

3.5.3. File_fdw ................................................................................................................ 67

3.5.4. Pg_stat_statements.................................................................................................. 68

3.5.5. Pg_walinspect ........................................................................................................ 69

3.5.6. Postgres_fdw .......................................................................................................... 70

3.5.7. Sepgsql .................................................................................................................. 72

URL list ................................................................................................................................. 73

Change history ........................................................................................................................ 74

? 2021-2022 Hewlett Packard Enterprise Japan Co, Ltd.

4

1. About This Document

1.1. Purpose

The purpose of this document is to provide information about the major new features of open-source

RDBMS PostgreSQL 15 (15.0) Beta 1.

1.2. Audience

This document is written for engineers who already know PostgreSQL, such as installation, basic

management, etc.

1.3. Scope

This document describes the major difference between PostgreSQL 14 (14.3) and PostgreSQL 15

(15.0) Beta 1. As a general rule, this document examines the features of behavior change. This

document does not describe and verify all new features. In particular, the following new features are

not included.

?

Bugfix

?

Performance improvement by changing internal behavior

?

Improvement of regression test

?

Operability improvement by psql command tab input

?

Improvement of pgbench command

?

Improvement of documentation, modify typo in the source code

?

Refactoring without a change in behavior

1.4. Software Version

The contents of this document have been verified for the following versions and platforms.

? 2021-2022 Hewlett Packard Enterprise Japan Co, Ltd.

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download