5 Configuration Parameters
PDF page 61
In PostgreSQL 14 the following parameters have been changed.
3.3.1 Added parameters
The following parameters have been added.
| Parameter name | Description (context) | Default value |
|---|---|---|
| client_connection_check_interval | The time interval between optional checks that the client is still connected. (user) | The time interval between optional checks that 0 |
| compute_query_id | Compute query identifiers. (superuser) | auto |
| debug_discard_caches | Aggressively invalidate system caches for debugging purposes. (superuser) | Aggressively invalidate system caches for 0 |
| default_toast_compression | Default compression for new columns. (user) | pglz |
| enable_async_append | Use of async append plans. (user) | on |
| enable_memoize | Enable Memoize node. (user) | on |
| huge_page_size | The size of huge page. (postmaster) | 0 |
| idle_session_timeout | The maximum allowed idle time. (user) | 0 |
| in_hot_standby | Shows whether hot standby is currently active. (internal) | Shows whether hot standby is currently active. off |
| log_recovery_conflict_waits | Logs standby recovery conflict waits. (sighup) | off |
| min_dynamic_shared_memory | Amount of dynamic shared memory reserved at startup. (postmaster) | Amount of dynamic shared memory reserved at 0 |
| recovery_init_sync_method | Sets the method for synchronizing the data directory before crash recovery. (sighup) | Sets the method for synchronizing the data fsync |
| remove_temp_files_after_crash | Remove temporary files after backend crash. (sighup) | Remove temporary files after backend crash. on |
| ssl_crl_dir | Location of the SSL certificate revocation list directory. (sighup) | Location of the SSL certificate revocation list '' |
| track_wal_io_timing | Collects timing statistics for WAL I/O activity. (superuser) | Collects timing statistics for WAL I/O activity. off |
| vacuum_failsafe_age | Age at which VACUUM should trigger failsafe. (user) | Age at which VACUUM should trigger failsafe. 1600000000 |
| vacuum_multixact_failsafe_age | Multixact age at which VACUUM should trigger failsafe. (user) | Multixact age at which VACUUM should trigger 1600000000 |
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.
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
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.
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 name | Changes |
|---|---|
| log_line_prefix | Added %P to indicate the process ID of the parallel group leader. Added %Q to indicate query ID. |
| password_encryption | The set value on/true/1 has been removed. |
| restore_command | Dynamic changes are now possible by reloading the parameter file. |
| unix_socket_directories | Abstract namespaces starting with @ can now be specified. |
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 name | Reason |
|---|---|
| operator_precedence_warning | It was deemed unnecessary as PostgreSQL 9.4 and earlier are no longer supported. |
| vacuum_cleanup_index_scale_factor | It can be specified in the index to maintain compatibility, but it has no effect. |
PDF page 65
3.3.4 Parameters with default values changed
The following parameters have changed default values.
| Parameter name | PostgreSQL 13 | PostgreSQL 14 | Note |
|---|---|---|---|
| checkpoint_completion_target | 0.5 | 0.9 | |
| password_encryptionserver_version | md5 | scram-sha-256 | |
| 13.4 | 14.0 | ||
| server_version_num | 130004 | 140000 | |
| vacuum_cost_page_miss | 10 | 2 |