PG Settings

Properties

PropertyTypeRequiredDescription
autovacuumobjectnoschema details
bg-writerobjectnoschema details
deadlock_timeoutintegernoThis is the amount of time, in milliseconds, to wait on a lock before checking to see if there is a deadlock condition. The default is 1000 (upstream default).
default_toast_compressionstringnoSpecifies the default TOAST compression method for values of compressible columns. The default is lz4. Only available for PostgreSQL 14+.

Allowed values: lz4, pglz.
idle_in_transaction_session_timeoutintegernoTime out sessions with open transactions after this number of milliseconds
io_combine_limitintegernoEXPERIMENTAL: Controls the largest I/O size in operations that combine I/O in 8kB units. Version 17 and up only.
io_max_combine_limitintegernoEXPERIMENTAL: Controls the largest I/O size in operations that combine I/O in 8kB units, and silently limits the user-settable parameter io_combine_limit. Version 18 and up only. Changing this parameter causes a service restart.
io_max_concurrencyintegernoEXPERIMENTAL: Controls the maximum number of I/O operations that one process can execute simultaneously. Version 18 and up only. Changing this parameter causes a service restart.
io_methodstringnoEXPERIMENTAL: Controls the maximum number of I/O operations that one process can execute simultaneously. Version 18 and up only. Changing this parameter causes a service restart.

Allowed values: worker, sync, io_uring.
io_workersintegernoEXPERIMENTAL: Number of IO worker processes, for io_method=worker. Version 18 and up only. Changing this parameter causes a service restart.
jitbooleannoControls system-wide use of Just-in-Time Compilation (JIT).
log_error_verbositystringnoControls the amount of detail written in the server log for each message that is logged.

Allowed values: TERSE, DEFAULT, VERBOSE.
log_line_prefixstringnoChoose from one of the available log formats.

Allowed values: pid=%p,user=%u,db=%d,app=%a,client=%h , pid=%p,user=%u,db=%d,app=%a,client=%h,txid=%x,qid=%Q , %t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h , %m [%p] %q[user=%u,db=%d,app=%a] .
log_min_duration_statementintegernoLog statements that take more than this number of milliseconds to run, -1 disables
log_temp_filesintegernoLog statements for each temporary file created larger than this number of kilobytes, -1 disables
max_files_per_processintegernoPostgreSQL maximum number of files that can be open per process. The default is 1000 (upstream default). Changing this parameter causes a service restart.
max_locks_per_transactionintegernoPostgreSQL maximum locks per transaction. Changing this parameter causes a service restart.
max_logical_replication_workersintegernoPostgreSQL maximum logical replication workers (taken from the pool of max_parallel_workers). The default is 4 (upstream default). Changing this parameter causes a service restart.
max_parallel_workersintegernoSets the maximum number of workers that the system can support for parallel queries. The default is 8 (upstream default).
max_parallel_workers_per_gatherintegernoSets the maximum number of workers that can be started by a single Gather or Gather Merge node. The default is 2 (upstream default).
max_pred_locks_per_transactionintegernoPostgreSQL maximum predicate locks per transaction. The default is 64 (upstream default). Changing this parameter causes a service restart.
max_prepared_transactionsintegernoPostgreSQL maximum prepared transactions. The default is 0. Changing this parameter causes a service restart.
max_replication_slotsintegernoPostgreSQL maximum replication slots. The default is 20. Changing this parameter causes a service restart.
max_stack_depthintegernoMaximum depth of the stack in bytes. The default is 2097152 (upstream default).
max_standby_archive_delayintegernoMax standby archive delay in milliseconds. The default is 30000 (upstream default).
max_standby_streaming_delayintegernoMax standby streaming delay in milliseconds. The default is 30000 (upstream default).
max_sync_workers_per_subscriptionintegernoMaximum number of synchronization workers per subscription. The default is 2.
max_worker_processesintegernoSets the maximum number of background processes that the system can support. The default is 8. Changing this parameter causes a service restart.
password_encryptionstringnoChooses the algorithm for encrypting passwords.

Allowed values: md5, scram-sha-256.
pg_partman_bgw.intervalintegernoSets the time interval in seconds to run pg_partman’s scheduled tasks. The default is 3600.
pg_partman_bgw.rolestringnoControls which role to use for pg_partman’s scheduled background tasks.
pg_stat_monitor.pgsm_enable_query_planbooleannoEnables or disables query plan monitoring. Changing this parameter causes a service restart. Only available for PostgreSQL 13+.
pg_stat_monitor.pgsm_max_bucketsintegernoSets the maximum number of buckets. Changing this parameter causes a service restart. Only available for PostgreSQL 13+.
pg_stat_statements.trackstringnoControls which statements are counted. Specify top to track top-level statements (those issued directly by clients), all to also track nested statements (such as statements invoked within functions), or none to disable statement statistics collection. The default is top.

Allowed values: all, top, none.
temp_file_limitintegernoPostgreSQL temporary file limit in KiB, -1 for unlimited
timezonestringnoPostgreSQL service timezone
track_activity_query_sizeintegernoSpecifies the number of bytes reserved to track the currently executing command for each active session. Changing this parameter causes a service restart.
track_commit_timestampstringnoRecord commit time of transactions. Changing this parameter causes a service restart.

Allowed values: off, on.
track_functionsstringnoEnables tracking of function call counts and time used.

Allowed values: all, pl, none.
track_io_timingstringnoEnables timing of database I/O calls. The default is off. When on, it will repeatedly query the operating system for the current time, which may cause significant overhead on some platforms.

Allowed values: off, on.
walobjectnoschema details
Last updated on