List PostgreSQL configuration items which require a server restart
Some PostgreSQL configuration items - typically set in postgresql.conf
- require a server restart to become effective.
Use the view pg_settings
to list the items which require a restart:
SELECT name FROM pg_settings WHERE context='postmaster'
From PostgreSQL 9.5, pg_settings
contains a field pending_restart
which indicates configuration items requiring a server restart have changed and are awaiting a restart.
In PostgreSQL 9.2 the settings are:
- allow_system_table_mods
- archive_mode
- autovacuum_freeze_max_age
- autovacuum_max_workers
- bonjour
- bonjour_name
- config_file
- data_directory
- event_source
- external_pid_file
- hba_file
- hot_standby
- ident_file
- listen_addresses
- logging_collector
- max_connections
- max_files_per_process
- max_locks_per_transaction
- max_pred_locks_per_transaction
- max_prepared_transactions
- max_wal_senders
- port
- shared_buffers
- shared_preload_libraries
- ssl
- ssl_ca_file
- ssl_cert_file
- ssl_ciphers
- ssl_crl_file
- ssl_key_file
- superuser_reserved_connections
- track_activity_query_size
- unix_socket_directory
- unix_socket_group
- unix_socket_permissions
- wal_buffers
- wal_level
See also: PostgreSQL documentation - pg_settings