postgresql_16:9.5.16.3 Changes
PostgreSQL 16 > Appendixes > Release Notes > Release 16 > Changes
Below you will find a detailed account of the changes between PostgreSQL 16 and the previous major release.
Server
Optimizer
- Allow incremental sorts in more cases, including
DISTINCT(David Rowley) § § - Add the ability for aggregates having
ORDER BYorDISTINCTto use pre-sorted data (David Rowley) § § §
The new server variable enable_presorted_aggregate (see guc-enable-presorted-aggregate) can be used to disable this.
- Allow memoize atop a
UNION ALL(Richard Guo) § - Allow anti-joins to be performed with the non-nullable input as the inner relation (Richard Guo) §
- Allow parallelization of
FULL(see postgresql_16:3.4.2.1) and internal rightOUTERhash joins (Melanie Plageman, Thomas Munro) § - Improve the accuracy of
GIN(see postgresql_16:8.19) index access optimizer costs (Ronan Dunklau) §
General Performance
- Allow more efficient addition of heap and index pages (Andres Freund) § §
- During non-freeze operations, perform page freezing (see postgresql_16:4.10.1.5) where appropriate (Peter Geoghegan) § § §
This makes full-table freeze vacuums less necessary.
- Allow window functions to use the faster
ROWS(see postgresql_16:3.1.2.8) mode internally whenRANGEmode is active but unnecessary (David Rowley) § - Allow optimization of always-increasing window functions
ntile()(see functions-window-table),cume_dist()andpercent_rank()(David Rowley) § - Allow aggregate functions
string_agg()(see functions-aggregate-table) andarray_agg()to be parallelized (David Rowley) § - Improve performance by caching
RANGE(see postgresql_16:3.2.11.1) andLISTpartition lookups (Amit Langote, Hou Zhijie, David Rowley) § - Allow control of the shared buffer usage by vacuum and analyze (Melanie Plageman) § § §
The VACUUM (see postgresql_16:7.1.182)/ANALYZE (see postgresql_16:7.1.44) option is BUFFER_USAGE_LIMIT, and the vacuumdb (see postgresql_16:7.2.20) option is --buffer-usage-limit. The default value is set by server variable vacuum_buffer_usage_limit (see guc-vacuum-buffer-usage-limit), which also controls autovacuum.
- Support
wal_sync_method=fdatasync(see guc-wal-sync-method) on Windows (Thomas Munro) § - Allow HOT (see postgresql_16:8.22.7) updates if only
BRIN-indexed columns are updated (Matthias van de Meent, Josef Simanek, Tomas Vondra) § - Improve the speed of updating the process title (see guc-update-process-title) (David Rowley) §
- Allow
xid/subxidsearches and ASCII string detection to use vector operations (Nathan Bossart, John Naylor) § § § §
ASCII detection is particularly useful for COPY FROM (see postgresql_16:7.1.53). Vector operations are also used for some C array searches.
- Reduce overhead of memory allocations (Andres Freund, David Rowley) §
Monitoring
- Add system view
pg_stat_io(see postgresql_16:4.13.2.13) view to track I/O statistics (Melanie Plageman) § § § § § - Record statistics on the last sequential and index scans on tables (Dave Page) §
This information appears in pg_stat_*_tables (see pg-stat-all-tables-view) and pg_stat_*_indexes (see postgresql_16:4.13.2.19).
- Record statistics on the occurrence of updated rows moving to new pages (Corey Huinker) §
The pg_stat_*_tables column is n_tup_newpage_upd (see postgresql_16:4.13.2.18).
- Add speculative lock information to the
pg_locks(see postgresql_16:8.3.12) system view (Masahiko Sawada, Noriyoshi Shinoda) §
The transaction id is displayed in the transactionid column and the speculative insertion token is displayed in the objid column.
- Add the display of prepared statement result types to the
pg_prepared_statements(see postgresql_16:8.3.15) view (Dagfinn Ilmari Mannsåker) § § - Create subscription statistics entries at subscription creation time so
stats_reset(see pg-stat-database-view) is accurate (Andres Freund) §
Previously entries were created only when the first statistics were reported.
- Correct the I/O accounting for temp relation writes shown in
pg_stat_database(see pg-stat-database-view) (Melanie Plageman) § - Add function
pg_stat_get_backend_subxact()(see monitoring-stats-backend-funcs-table) to report on a session's subtransaction cache (Dilip Kumar) § - Have
pg_stat_get_backend_idset()(see monitoring-stats-backend-funcs-table),pg_stat_get_backend_activity(), and related functions use the unchanging backend id (Nathan Bossart) §
Previously the index values might change during the lifetime of the session.
- Report stand-alone backends with a special backend type (Melanie Plageman) §
- Add wait event
SpinDelay(see wait-event-timeout-table) to report spinlock sleep delays (Andres Freund) § - Create new wait event
DSMAllocate(see wait-event-io-table) to indicate waiting for dynamic shared memory allocation (Thomas Munro) §
Previously this type of wait was reported as DSMFillZeroWrite, which was also used by mmap() allocations.
- Add the database name to the process title (see guc-update-process-title) of logical WAL senders (Tatsuhiro Nakamori) §
Physical WAL senders do not display a database name.
- Add checkpoint and
REDO LSNinformation tolog_checkpoints(see guc-log-checkpoints) messages (Bharath Rupireddy, Kyotaro Horiguchi) § - Provide additional details during client certificate failures (Jacob Champion) §
Privileges
- Add predefined role
pg_create_subscription(see postgresql_16:4.7.5) with permission to create subscriptions (Robert Haas) § - Allow subscriptions to not require passwords (Robert Haas) § § §
This is accomplished with the option password_required=false (see postgresql_16:7.1.82).
- Simplify permissions for
LOCK TABLE(see postgresql_16:7.1.153) (Jeff Davis) §
Previously a user's ability to perform LOCK TABLE at various lock levels was limited to the lock levels required by the commands they had permission to execute on the table. For example, someone with UPDATE (see postgresql_16:7.1.181) permission could perform all lock levels except ACCESS SHARE, even though it was a lesser lock level. Now users can issue lesser lock levels if they already have permission for greater lock levels.
- Allow
ALTER GROUP group_name ADD USER user_name(see postgresql_16:7.1.13) to be performed withADMIN OPTION(Robert Haas) §
Previously CREATEROLE permission was required.
- Allow
GRANT(see postgresql_16:7.1.148) to useWITH ADMIN TRUE/FALSEsyntax (Robert Haas) §
Previously only the WITH ADMIN OPTION syntax was supported.
- Allow roles that create other roles to automatically inherit the new role's rights or the ability to
SET ROLE(see postgresql_16:7.1.174) to the new role (Robert Haas, Shi Yu) § §
This is controlled by server variable createrole_self_grant (see guc-createrole-self-grant).
- Prevent users from changing the default privileges of non-inherited roles (Robert Haas) §
This is now only allowed for inherited roles.
- When granting role membership, require the granted-by role to be a role that has appropriate permissions (Robert Haas) §
This is a requirement even when a non-bootstrap superuser is granting role membership.
- Allow non-superusers to grant permissions using a granted-by user that is not the current user (Robert Haas) §
The current user still must have sufficient permissions given by the specified granted-by user.
- Add
GRANT(see postgresql_16:7.1.148) to control permission to useSET ROLE(see postgresql_16:7.1.174) (Robert Haas) §
This is controlled by a new GRANT ... SET option.
- Add dependency tracking to roles which have granted privileges (Robert Haas) §
For example, removing ADMIN OPTION will fail if there are privileges using that option; CASCADE must be used to revoke dependent permissions.
- Add dependency tracking of grantors for
GRANT(see postgresql_16:7.1.148) records (Robert Haas) §
This guarantees that pg_auth_members (see postgresql_16:8.2.9).grantor values are always valid.
Previously a new membership grant would remove a previous matching membership grant, even if other aspects of the grant did not match.
- Prevent removal of superuser privileges for the bootstrap user (Robert Haas) §
Restoring such users could lead to errors.
- Allow
makeaclitem()(see functions-aclitem-fn-table) to accept multiple privilege names (Robins Tharakan) §
Previously only a single privilege name, like SELECT (see postgresql_16:7.1.170), was accepted.
Server Configuration
This is enabled with server variable gss_accept_delegation (see guc-gss-accept-delegation) and libpq connection parameter gssdelegation (see libpq-connect-gssdelegation).
- Allow the SCRAM iteration count to be set with server variable
scram_iterations(see guc-scram-iterations) (Daniel Gustafsson) § - Improve performance of server variable management (Tom Lane) § §
- Tighten restrictions on which server variables can be reset (Masahiko Sawada) §
Previously, while certain variables, like transaction_isolation (see guc-default-transaction-isolation), were not affected by RESET ALL (see postgresql_16:7.1.163), they could be individually reset in inappropriate situations.
- Move various
postgresql.conf(see postgresql_16:4.5.1.2) items into new categories (Shinya Kato) §
This also affects the categories displayed in the pg_settings (see postgresql_16:8.3.24) view.
- Prevent configuration file recursion beyond 10 levels (Julien Rouhaud) §
- Allow autovacuum (see postgresql_16:4.10.1.6) to more frequently honor changes to delay settings (Melanie Plageman) § §
Rather than honor changes only at the start of each relation, honor them at the start of each block.
The archive_command (see guc-archive-command) command is now more likely to be called with already-archived files after a crash.
- Prevent
archive_library(see guc-archive-library) andarchive_command(see guc-archive-command) from being set at the same time (Nathan Bossart) §
Previously archive_library would override archive_command.
- Allow the postmaster to terminate children with an abort signal (Tom Lane) §
This allows collection of a core dump for a stuck child process. This is controlled by send_abort_for_crash (see guc-send-abort-for-crash) and send_abort_for_kill (see guc-send-abort-for-kill). The postmaster's -T switch is now the same as setting send_abort_for_crash.
- Remove the non-functional postmaster
-noption (Tom Lane) § - Allow the server to reserve backend slots for roles with
pg_use_reserved_connections(see postgresql_16:4.7.5) membership (Nathan Bossart) §
The number of reserved slots is set by server variable reserved_connections (see guc-reserved-connections).
- Allow huge pages (see guc-huge-pages) to work on newer versions of Windows 10 (Thomas Munro) §
This adds the special handling required to enable huge pages on newer versions of Windows 10.
- Add
debug_io_direct(see guc-debug-io-direct) setting for developer usage (Thomas Munro, Andres Freund, Bharath Rupireddy) § §
While primarily for developers, wal_sync_method=open_sync (see guc-wal-sync-method)/open_datasync has been modified to not use direct I/O with wal_level=minimal; this is now enabled with debug_io_direct=wal.
- Add function
pg_split_walfile_name()(see functions-admin-backup-table) to report the segment and timeline values of WAL file names (Bharath Rupireddy) § §
pg_hba.conf (see postgresql_16:4.6.1)
- Add support for regular expression matching on database and role entries in
pg_hba.conf(Bertrand Drouvot) §
Regular expression patterns are prefixed with a slash. Database and role names that begin with slashes need to be double-quoted if referenced in pg_hba.conf.
- Improve user-column handling of
pg_ident.conf(see postgresql_16:4.5.2) to matchpg_hba.conf(Jelte Fennema) §
Specifically, add support for all, role membership with +, and regular expressions with a leading slash. Any user name that matches these patterns must be double-quoted.
- Allow include files in
pg_hba.confandpg_ident.conf(Julien Rouhaud) §
These are controlled by include, include_if_exists, and include_dir. System views pg_hba_file_rules (see postgresql_16:8.3.9) and pg_ident_file_mappings (see postgresql_16:8.3.10) now display the file name.
- Allow
pg_hba.conftokens to be of unlimited length (Tom Lane) § - Add rule and map numbers to the system view
pg_hba_file_rules(see postgresql_16:8.3.9) (Julien Rouhaud) §
Localization (see postgresql_16:4.9)
- Determine the default encoding from the locale when using ICU (Jeff Davis) §
Previously the default was always UTF-8.
- Have
CREATE DATABASE(see postgresql_16:7.1.59) andCREATE COLLATION(see postgresql_16:7.1.57)'sLOCALEoptions, and initdb (see postgresql_16:7.3.1) and createdb (see postgresql_16:7.2.2)--localeoptions, control non-libc collation providers (Jeff Davis)
Previously they only controlled libc providers.
- Add predefined collations
unicodeanducs_basic(Peter Eisentraut) §
This only works if ICU support is enabled.
- Allow custom ICU collation rules to be created (Peter Eisentraut) §
This is done using CREATE COLLATION (see postgresql_16:7.1.57)'s new RULES clause, as well as new options for CREATE DATABASE (see postgresql_16:7.1.59), createdb (see postgresql_16:7.2.2), and initdb (see postgresql_16:7.3.1).
- Allow Windows to import system locales automatically (Juan José Santamaría Flecha) §
Previously, only ICU locales could be imported on Windows.
Logical Replication (see postgresql_16:4.16)
- Allow logical decoding (see postgresql_16:6.12) on standbys (Bertrand Drouvot, Andres Freund, Amit Khandekar) § § §
Snapshot WAL records are required for logical slot creation but cannot be created on standbys. To avoid delays, the new function pg_log_standby_snapshot() (see functions-snapshot-synchronization-table) allows creation of such records.
- Add server variable to control how logical decoding publishers transfer changes and how subscribers apply them (Shi Yu) § § §
The variable is debug_logical_replication_streaming (see guc-debug-logical-replication-streaming).
- Allow logical replication initial table synchronization to copy rows in binary format (Melih Mutlu) §
This is only possible for subscriptions marked as binary.
The CREATE SUBSCRIPTION (see postgresql_16:7.1.82) STREAMING option now supports parallel to enable application of large transactions by parallel workers. The number of parallel workers is controlled by the new server variable max_parallel_apply_workers_per_subscription (see guc-max-parallel-apply-workers-per-subscription). Wait events LogicalParallelApplyMain (see wait-event-activity-table), LogicalParallelApplyStateChange, and LogicalApplySendData were also added. Column leader_pid was added to system view pg_stat_subscription (see postgresql_16:4.13.2.8) to track parallel activity.
- Improve performance for logical replication apply (see postgresql_16:4.16.7) without a primary key (Onder Kalaci, Amit Kapila) §
Specifically, REPLICA IDENTITY FULL can now use btree indexes rather than sequentially scanning the table to find matches.
- Allow logical replication subscribers to process only changes that have no origin (Vignesh C, Amit Kapila) § §
This can be used to avoid replication loops. This is controlled by the new CREATE SUBSCRIPTION ... ORIGIN option.
- Perform logical replication
SELECT(see postgresql_16:7.1.170) and DML actions as the table owner (Robert Haas) § §
This improves security and now requires subscription owners to be either superusers or to have SET ROLE (see postgresql_16:7.1.174) permission on all roles owning tables in the replication set. The previous behavior of performing all operations as the subscription owner can be enabled with the subscription run_as_owner (see postgresql_16:7.1.82) option.
- Have
wal_retrieve_retry_interval(see guc-wal-retrieve-retry-interval) operate on a per-subscription basis (Nathan Bossart) §
Previously the retry time was applied globally. This also adds wait events >LogicalRepLauncherDSA (see wait-event-lwlock-table) and LogicalRepLauncherHash.
Utility Commands
- Add
EXPLAIN(see postgresql_16:7.1.146) optionGENERIC_PLANto display the generic plan for a parameterized query (Laurenz Albe) § - Allow a
COPY FROM(see postgresql_16:7.1.53) value to map to a column'sDEFAULT(Israel Barth Rubio) § - Allow
COPY(see postgresql_16:7.1.53) into foreign tables to add rows in batches (Andrey Lepikhov, Etsuro Fujita) §
This is controlled by the postgres_fdw (see postgresql_16:9.6.38) option batch_size (see postgresql_16:9.6.38.1).
- Allow the
STORAGEtype to be specified byCREATE TABLE(see postgresql_16:7.1.83) (Teodor Sigaev, Aleksander Alekseev) § §
Previously only ALTER TABLE (see postgresql_16:7.1.33) could control this.
- Allow truncate triggers (see postgresql_16:7.1.91) on foreign tables (Yugo Nagata) §
- Allow
VACUUM(see postgresql_16:7.1.182) and vacuumdb (see postgresql_16:7.2.20) to only processTOAST(see postgresql_16:8.22.2) tables (Nathan Bossart) §
This is accomplished by having VACUUM (see postgresql_16:7.1.182) turn off PROCESS_MAIN or by vacuumdb (see postgresql_16:7.2.20) using the --no-process-main option.
- Add
VACUUM(see postgresql_16:7.1.182) options to skip or update all frozen (see postgresql_16:4.10.1.5) statistics (Tom Lane, Nathan Bossart) §
The options are SKIP_DATABASE_STATS and ONLY_DATABASE_STATS.
- Change
REINDEX DATABASE(see postgresql_16:7.1.161) andREINDEX SYSTEM(see postgresql_16:7.1.161) to no longer require an argument (Simon Riggs) § §
Previously the database name had to be specified.
- Allow
CREATE STATISTICS(see postgresql_16:7.1.81) to generate a statistics name if none is specified (Simon Riggs) §
Data Types
- Allow non-decimal integer literals (see postgresql_16:3.1.1.2) (Peter Eisentraut) §
For example, 0x42F, 0o273, and 0b100101.
- Allow
NUMERIC(see postgresql_16:3.5.1) to process hexadecimal, octal, and binary integers of any size (Dean Rasheed) §
Previously only unquoted eight-byte integers were supported with these non-decimal bases.
- Allow underscores in integer and numeric constants (see postgresql_16:3.1.1.2) (Peter Eisentraut, Dean Rasheed) §
This can improve readability for long strings of digits.
- Accept the spelling
+infinityin datetime input (Vik Fearing) § - Prevent the specification of
epochandinfinitytogether with other fields in datetime strings (Joseph Koshakow) § - Remove undocumented support for date input in the form
Y*year*M*month*D*day*(Joseph Koshakow) § - Add functions
pg_input_is_valid()(see functions-info-validity-table) andpg_input_error_info()to check for type conversion errors (Tom Lane) § §
General Queries
- Allow subqueries in the
FROMclause to omit aliases (Dean Rasheed) § - Add support for enhanced numeric literals in SQL/JSON paths (Peter Eisentraut) §
For example, allow hexadecimal, octal, and binary integers and underscores between digits.
Functions
- Add SQL/JSON constructors (Nikita Glukhov, Teodor Sigaev, Oleg Bartunov, Alexander Korotkov, Amit Langote) §
The new functions JSON_ARRAY() (see functions-json-creation-table), JSON_ARRAYAGG() (see functions-aggregate-table), JSON_OBJECT(), and JSON_OBJECTAGG() are part of the SQL standard.
- Add SQL/JSON object checks (Nikita Glukhov, Teodor Sigaev, Oleg Bartunov, Alexander Korotkov, Amit Langote, Andrew Dunstan) §
The IS JSON (see functions-sqljson-misc) checks include checks for values, arrays, objects, scalars, and unique keys.
- Allow JSON string parsing to use vector operations (John Naylor) §
- Improve the handling of full text highlighting function
ts_headline()(see textsearch-functions-table) forORandNOTexpressions (Tom Lane) § - Add functions to add, subtract, and generate
timestamptzvalues in a specified time zone (Przemyslaw Sztoch, Gurjeet Singh) §
The functions are date_add() (see functions-datetime-table), date_subtract(), and generate_series() (see functions-srf-series).
- Change
date_trunc(unit, timestamptz, time_zone)(see functions-datetime-table) to be an immutable function (Przemyslaw Sztoch) §
This allows the creation of expression indexes using this function.
- Add server variable
SYSTEM_USER(see functions-info-session-table) (Bertrand Drouvot) §
This reports the authentication method and its authenticated user.
- Add functions
array_sample()(see array-functions-table) andarray_shuffle()(Martin Kalcher) § - Add aggregate function
ANY_VALUE()(see functions-aggregate-table) which returns any value from a set (Vik Fearing) § - Add function
random_normal()(see functions-math-random-table) to supply normally-distributed random numbers (Paul Ramsey) § - Add error function
erf()(see functions-math-func-table) and its complementerfc()(Dean Rasheed) § - Improve the accuracy of numeric
power()(see functions-math-func-table) for integer exponents (Dean Rasheed) § - Add
XMLSERIALIZE()(see postgresql_16:3.5.13.1) optionINDENTto pretty-print its output (Jim Jones) § - Change
pg_collation_actual_version()(see functions-admin-collation) to return a reasonable value for the default collation (Jeff Davis) §
Previously it returned NULL.
- Allow
pg_read_file()(see functions-admin-genfile-table) andpg_read_binary_file()to ignore missing files (Kyotaro Horiguchi) § - Add byte specification (
B) topg_size_bytes()(see functions-admin-dbsize) (Peter Eisentraut) § - Allow
to_reg(see functions-info-catalog-table)* functions to accept numeric OIDs as input (Tom Lane) §
PL/pgSQL (see postgresql_16:6.6)
- Add the ability to get the current function's OID in PL/pgSQL (Pavel Stehule) §
This is accomplished with GET DIAGNOSTICS variable = PG_ROUTINE_OID (see postgresql_16:6.6.5.5).
libpq (see postgresql_16:5.1)
- Add libpq connection option
require_auth(see libpq-connect-require-auth) to specify a list of acceptable authentication methods (Jacob Champion) §
This can also be used to disallow certain authentication methods.
This is enabled with load_balance_hosts=random (see libpq-connect-load-balance-hosts) and can be used for load balancing.
- Add libpq option
sslcertmode(see libpq-connect-sslcertmode) to control transmission of the client certificate (Jacob Champion) §
The option values are disable, allow, and require.
- Allow libpq to use the system certificate pool for certificate verification (Jacob Champion, Thomas Habets) §
This is enabled with sslrootcert=system (see libpq-connect-sslrootcert), which also enables sslmode=verify-full (see libpq-connect-sslmode).
Client Applications
- Allow
ECPG(see postgresql_16:5.3) variable declarations to use typedef names that match unreserved SQL keywords (Tom Lane) §
This change does prevent keywords which match C typedef names from being processed as keywords in later EXEC SQL blocks.
(see postgresql_16:7.2.18)
- Allow psql to control the maximum width of header lines in expanded format (Platon Pronko) §
This is controlled by xheader_width (see postgresql_16:7.2.18.4).
- Add psql command
\drg(see postgresql_16:7.2.18.4) to show role membership details (Pavel Luzanov) § §
The Member of output column has been removed from \du and \dg because this new command displays this information in more detail.
The options are \dpS (see postgresql_16:7.2.18.4) and \zS (see postgresql_16:7.2.18.4).
- Add
FOREIGNdesignation to psql\d+(see postgresql_16:7.2.18.4) for foreign table children and partitions (Ian Lawrence Barwick) § - Prevent
\df+(see postgresql_16:7.2.18.4) from showing function source code (Isaac Morland) §
Function bodies are more easily viewed with \sf (see postgresql_16:7.2.18.4).
- Allow psql to submit queries using the extended query protocol (Peter Eisentraut) §
Passing arguments to such queries is done using the new psql \bind (see postgresql_16:7.2.18.4) command.
- Allow psql
\watch(see postgresql_16:7.2.18.4) to limit the number of executions (Andrey Borodin) §
The \watch options can now be named when specified.
- Detect invalid values for psql
\watch(see postgresql_16:7.2.18.4), and allow zero to specify no delay (Andrey Borodin) § - Allow psql scripts to obtain the exit status of shell commands and queries (Corey Huinker, Tom Lane) § §
The new psql control variables are SHELL_ERROR (see postgresql_16:7.2.18.4) and SHELL_EXIT_CODE (see postgresql_16:7.2.18.4).
- Various psql tab completion improvements (Vignesh C, Aleksander Alekseev, Dagfinn Ilmari Mannsåker, Shi Yu, Michael Paquier, Ken Kato, Peter Smith) § § § § § § § § § § § §
pg_dump (see postgresql_16:7.2.11)
- Add pg_dump control of dumping child tables and partitions (Gilles Darold) §
The new options are --table-and-children, --exclude-table-and-children, and --exclude-table-data-and-children.
- Add LZ4 and Zstandard compression to pg_dump (Georgios Kokolatos, Justin Pryzby)
- Allow pg_dump and pg_basebackup (see postgresql_16:7.2.8) to use
longmode for compression (Justin Pryzby) § § § § - Improve pg_dump to accept a more consistent compression syntax (Georgios Kokolatos) §
Options like --compress=gzip:5.
Server Applications
- Add initdb (see postgresql_16:7.3.1) option to set server variables for the duration of initdb and all future server starts (Tom Lane) §
The option is -c name=value.
- Add options to createuser (see postgresql_16:7.2.3) to control more user options (Shinya Kato) § §
Specifically, the new options control the valid-until date, bypassing of row-level security, and role membership.
- Deprecate createuser (see postgresql_16:7.2.3) option
--role(Nathan Bossart) § §
This option could be easily confused with new createuser role membership options, so option --member-of has been added with the same functionality. The --role option can still be used.
- Allow control of vacuumdb (see postgresql_16:7.2.20) schema processing (Gilles Darold) §
These are controlled by options --schema and --exclude-schema.
- Use new
VACUUM(see postgresql_16:7.1.182) options to improve the performance of vacuumdb (see postgresql_16:7.2.20) (Tom Lane, Nathan Bossart) § - Have pg_upgrade (see postgresql_16:7.3.10) set the new cluster's locale and encoding (Jeff Davis) §
This removes the requirement that the new cluster be created with the same locale and encoding settings.
- Add pg_upgrade (see postgresql_16:7.3.10) option to specify the default transfer mode (Peter Eisentraut) §
The option is --copy.
- Improve pg_basebackup (see postgresql_16:7.2.8) to accept numeric compression options (Georgios Kokolatos, Michael Paquier) §
Options like --compress=server-5 are now supported.
- Fix pg_basebackup (see postgresql_16:7.2.8) to handle tablespaces stored in the
PGDATAdirectory (Robert Haas) § - Add pg_waldump (see postgresql_16:7.3.11) option
--save-fullpageto dump full page images (David Christensen) § - Allow pg_waldump (see postgresql_16:7.3.11) options
-t/--timelineto accept hexadecimal values (Peter Eisentraut) § - Add support for progress reporting to pg_verifybackup (see postgresql_16:7.2.17) (Masahiko Sawada) §
- Allow pg_rewind (see postgresql_16:7.3.7) to properly track timeline changes (Heikki Linnakangas) § §
Previously if pg_rewind was run after a timeline switch but before a checkpoint was issued, it might incorrectly determine that a rewind was unnecessary.
- Have pg_receivewal (see postgresql_16:7.2.14) and pg_recvlogical (see postgresql_16:7.2.15) cleanly exit on
SIGTERM(Christoph Berg) §
This signal is often used by systemd.
Source Code
- Build ICU support by default (Jeff Davis) §
This removes build flag (see postgresql_16:4.2) --with-icu and adds flag --without-icu.
- Add support for SSE2 (Streaming SIMD Extensions 2) vector operations on x86-64 architectures (John Naylor) §
- Add support for Advanced SIMD (Single Instruction Multiple Data) (NEON) instructions on ARM architectures (Nathan Bossart) §
- Have Windows binaries built with MSVC use
RandomizedBaseAddress(ASLR) (Michael Paquier) §
This was already enabled on MinGW builds.
Functions that need to be called from the core backend or other extensions must now be explicitly marked PGDLLEXPORT.
- Require Windows 10 or newer versions (Michael Paquier, Juan José Santamaría Flecha) §
Previously Windows Vista and Windows XP were supported.
- Require Perl version 5.14 or later (John Naylor) §
- Require Bison version 2.3 or later (John Naylor) §
- Require Flex version 2.5.35 or later (John Naylor) §
- Require MIT Kerberos for GSSAPI support (Stephen Frost) §
- Remove support for Visual Studio 2013 (Michael Paquier) §
- Remove support for HP-UX (Thomas Munro) §
- Remove support for HP/Intel Itanium (Thomas Munro) §
- Remove support for M68K, M88K, M32R, and SuperH CPU architectures (Thomas Munro) § §
- Remove libpq (see postgresql_16:5.1) support for SCM credential authentication (Michael Paquier) §
Backend support for this authentication method was removed in PostgresSQL 9.1.
- Add meson (see postgresql_16:4.2.4) build system (Andres Freund, Nazir Bilal Yavuz, Peter Eisentraut) §
This eventually will replace the Autoconf and Windows-based MSVC build systems.
- Allow control of the location of the openssl binary used by the build system (Peter Eisentraut) §
Make finding openssl program a configure or meson option
- Add build option to allow testing of small table segment sizes (Andres Freund) §
The build options are --with-segsize-blocks (see postgresql_16:4.2.3.3) and -Dsegsize_blocks.
The new options are --show-diff, --silent-diff, --commit, and --help, and allow multiple --exclude options. Also require the typedef file to be explicitly specified. Options --code-base and --build were also removed.
- Add pg_bsd_indent (see postgresql_16:8.5) source code to the main tree (Tom Lane) §
- Improve make_ctags and make_etags (Yugo Nagata) §
- Adjust
pg_attribute(see postgresql_16:8.2.7) columns for efficiency (Peter Eisentraut) §
Additional Modules
- Improve use of extension-based indexes on boolean columns (Zongliang Quan, Tom Lane) §
- Add support for Daitch-Mokotoff Soundex to fuzzystrmatch (see postgresql_16:9.6.17) (Dag Lem) §
- Allow auto_explain (see postgresql_16:9.6.4) to log values passed to parameterized statements (Dagfinn Ilmari Mannsåker) §
This affects queries using server-side PREPARE (see postgresql_16:7.1.157)/EXECUTE (see postgresql_16:7.1.145) and client-side parse/bind. Logging is controlled by auto_explain.log_parameter_max_length (see auto-explain-configuration-parameters-log-parameter-max-length); by default query parameters will be logged with no length restriction.
- Have auto_explain (see postgresql_16:9.6.4)'s
log_verbosemode honor the value ofcompute_query_id(see guc-compute-query-id) (Atsushi Torikoshi) §
Previously even if compute_query_id was enabled, log_verbose (see auto-explain-configuration-parameters-log-verbose) was not showing the query identifier.
- Change the maximum length of ltree (see postgresql_16:9.6.23) labels from 256 to 1000 and allow hyphens (Garen Torikian) §
- Have
pg_stat_statements(see postgresql_16:9.6.32) normalize constants used in utility commands (Michael Paquier) §
Previously constants appeared instead of placeholders, e.g., $1.
- Add pg_walinspect (see postgresql_16:9.6.37) function
pg_get_wal_block_info()(see pgwalinspect-funcs-pg-get-wal-block-info) to report WAL block information (Michael Paquier, Melanie Plageman, Bharath Rupireddy) § § § § - Change how pg_walinspect (see postgresql_16:9.6.37) functions
pg_get_wal_records_info()(see pgwalinspect-funcs-pg-get-wal-records-info) andpg_get_wal_stats()(see pgwalinspect-funcs-pg-get-wal-stats) interpret ending LSNs (Bharath Rupireddy) §
Previously ending LSNs which represent nonexistent WAL locations would generate an error, while they will now be interpreted as the end of the WAL.
- Add detailed descriptions of WAL records in pg_walinspect (see postgresql_16:9.6.37) and pg_waldump (see postgresql_16:7.3.11) (Melanie Plageman, Peter Geoghegan) § § § §
- Add pageinspect (see postgresql_16:9.6.25) function
bt_multi_page_stats()(see postgresql_16:9.6.25.3) to report statistics on multiple pages (Hamid Akhtar) §
This is similar to bt_page_stats() except it can report on a range of pages.
- Add empty range output column to pageinspect (see postgresql_16:9.6.25) function
brin_page_items()(see postgresql_16:9.6.25.4) (Tomas Vondra) § - Redesign archive modules to be more flexible (Nathan Bossart) §
Initialization changes will require modules written for older versions of Postgres to be updated.
- Correct inaccurate pg_stat_statements (see postgresql_16:9.6.32) row tracking extended query protocol statements (Sami Imseih) §
- Add pg_buffercache (see postgresql_16:9.6.27) function
pg_buffercache_usage_counts()to report usage totals (Nathan Bossart) § - Add pg_buffercache (see postgresql_16:9.6.27) function
pg_buffercache_summary()to report summarized buffer statistics (Melih Mutlu) § - Allow the schemas of required extensions to be referenced in extension scripts using the new syntax
@extschema:referenced_extension_name@(Regina Obe) § - Allow required extensions to be marked as non-relocatable using
no_relocate(see extend-extensions-files-no-relocate) (Regina Obe) §
This allows @extschema:referenced_extension_name@ to be treated as a constant for the lifetime of the extension.
postgres_fdw (see postgresql_16:9.6.38)
- Allow postgres_fdw to do aborts in parallel (Etsuro Fujita) §
This is enabled with postgres_fdw option parallel_abort (see postgresql_16:9.6.38.1).
- Make
ANALYZE(see postgresql_16:7.1.44) on foreign postgres_fdw tables more efficient (Tomas Vondra) §
The postgres_fdw option analyze_sampling (see postgresql_16:9.6.38.1) controls the sampling method.
- Restrict shipment of
reg(see postgresql_16:3.5.19)* type constants in postgres_fdw to those referencing built-in objects or extensions marked as shippable (Tom Lane) § - Have postgres_fdw and dblink (see postgresql_16:9.6.12) handle interrupts during connection establishment (Andres Freund) §