Skip to content

5 Configuration Parameters

Added, modified, removed, and default-value changes for configuration parameters.
GASource pages: PDF 61-65Original PDF on GitHub

PDF page 61

In PostgreSQL 14 the following parameters have been changed.

3.3.1 Added parameters

The following parameters have been added.

Parameter nameDescription (context)Default value
client_connection_check_intervalThe time interval between optional checks that the client is still connected. (user)The time interval between optional checks that 0
compute_query_idCompute query identifiers. (superuser)auto
debug_discard_cachesAggressively invalidate system caches for debugging purposes. (superuser)Aggressively invalidate system caches for 0
default_toast_compressionDefault compression for new columns. (user)pglz
enable_async_appendUse of async append plans. (user)on
enable_memoizeEnable Memoize node. (user)on
huge_page_sizeThe size of huge page. (postmaster)0
idle_session_timeoutThe maximum allowed idle time. (user)0
in_hot_standbyShows whether hot standby is currently active. (internal)Shows whether hot standby is currently active. off
log_recovery_conflict_waitsLogs standby recovery conflict waits. (sighup)off
min_dynamic_shared_memoryAmount of dynamic shared memory reserved at startup. (postmaster)Amount of dynamic shared memory reserved at 0
recovery_init_sync_methodSets the method for synchronizing the data directory before crash recovery. (sighup)Sets the method for synchronizing the data fsync
remove_temp_files_after_crashRemove temporary files after backend crash. (sighup)Remove temporary files after backend crash. on
ssl_crl_dirLocation of the SSL certificate revocation list directory. (sighup)Location of the SSL certificate revocation list ''
track_wal_io_timingCollects timing statistics for WAL I/O activity. (superuser)Collects timing statistics for WAL I/O activity. off
vacuum_failsafe_ageAge at which VACUUM should trigger failsafe. (user)Age at which VACUUM should trigger failsafe. 1600000000
vacuum_multixact_failsafe_ageMultixact age at which VACUUM should trigger failsafe. (user)Multixact age at which VACUUM should trigger 1600000000
Table 23 Added parameters

PDF page 62

Compute_query_id

If the parameter value is set to on, a unique ID will be calculated for the query being executed. The query ID will be the same value for all SQLs that have the same meaning in the database. The query ID can be displayed by EXPLAIN VERBOSE statement, queryid column in pg_stat_activity view, %Q in log_line_prefix parameter, and so on. This is an adaptation of the functionality previously used by the pg_stat_statements module. The default value is ‘auto’, which is automatically enabled if modules such as pg_stat_statements require this parameter.

Example 73 Display query ID
postgres=# SET compute_query_id = on ;
SET
postgres=# EXPLAIN VERBOSE SELECT * FROM data1 ;
                              QUERY PLAN
-----------------------------------------------------------------
 Seq Scan on public.data1  (cost=0.00..15406.00 rows=1000000
width=12)
   Output: c1, c2
 Query Identifier: 3365166609774651210
(3 rows)
Idle_session_timeout

Specifies the timeout value in milliseconds for forcibly terminating idle sessions. The default value is 0, which means that no timeout will occur. During transaction execution, idle_in_transaction_session_timeout is used and idle_session_timeout is ignored.

PDF page 63

Example 74 Idle timeout
postgres=> \set VERBOSITY verbose
postgres=> SET idle_session_timeout = 1000 ;
SET
postgres=> -- Wait one second.
postgres=> SELECT 1 ;
FATAL:  57P05: terminating connection due to idle-session timeout
LOCATION:  ProcessInterrupts, postgres.c:3356
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
postgres=>
Log_recovery_conflict_waits

In an environment where the log_recovery_conflict_waits parameter is enabled on the standby instance, conflict information is output to the log when a conflict occurs when deadlock_timeout is exceeded. Also, if the conflict is resolved, it will be output to the log. The following is the output conflict information.

Example 75 Log of conflict state
-- When conflict occurs
LOG:  recovery still waiting after 1031.776 ms: recovery conflict
on snapshot
DETAIL:  Conflicting process: 53647.
 [49948] CONTEXT:  WAL redo at 1/8ECE0138 for Heap2/PRUNE:
latestRemovedXid 895 nredirected 0 ndead 167; blkref #0: rel
1663/14892/17264, blk 108
-- When conflict is resolved
LOG:  recovery finished waiting after 26073.257 ms: recovery
conflict on snapshot
CONTEXT:  WAL redo at 1/8ECE0138 for Heap2/PRUNE: latestRemovedXid
895 nredirected 0 ndead 167; blkref #0: rel 1663/14892/17264, blk
108

PDF page 64

Remove_temp_files_after_crash

Determines whether to remove the temporary files that were created when the backend process terminated abnormally. Conventionally, these files are not removed until the instance is restarted. The default value is ‘on’, which means that the temporary files will be deleted if the backend process terminates abnormally.

3.3.2 Changed parameters

The setting range and options were changed for the following configuration parameters.

Parameter nameChanges
log_line_prefixAdded %P to indicate the process ID of the parallel group leader. Added %Q to indicate query ID.
password_encryptionThe set value on/true/1 has been removed.
restore_commandDynamic changes are now possible by reloading the parameter file.
unix_socket_directoriesAbstract namespaces starting with @ can now be specified.
Table 24 Changed parameters

3.3.3 Removed parameters

The following parameters have been removed. The parameter vacuum_cleanup_index_scale_factor is disabled since PostgreSQL 13.3.

Parameter nameReason
operator_precedence_warningIt was deemed unnecessary as PostgreSQL 9.4 and earlier are no longer supported.
vacuum_cleanup_index_scale_factorIt can be specified in the index to maintain compatibility, but it has no effect.
Table 25 Removed parameters

PDF page 65

3.3.4 Parameters with default values changed

The following parameters have changed default values.

Parameter namePostgreSQL 13PostgreSQL 14Note
checkpoint_completion_target0.50.9
password_encryptionserver_versionmd5scram-sha-256
13.414.0
server_version_num130004140000
vacuum_cost_page_miss102
Table 26 Parameters with default values changed