Show the current parameter value
PostgreSQLParametersCommand
SELECT name, setting, unit, context, source FROM pg_settings WHERE name = 'shared_buffers';What it does
Shows the parameter's effective value, unit, how it can be applied (context) and its source.
When to use it
To find a parameter's running value and whether it requires a restart or a reload.
Caution
Shortcut: SHOW shared_buffers; or SELECT current_setting('shared_buffers'); If the context column is 'postmaster', a restart is required.
Related
- Change a parameter and reload (ALTER SYSTEM)
- Change a parameter for the session (SET)
- Review memory settings (shared_buffers, work_mem, maintenance_work_mem)
- Show parameters pending restart and configuration file errors
- Review checkpoint behavior (PG17+ pg_stat_checkpointer, PG16 and earlier pg_stat_bgwriter)