CertGrid CertGrid
Troubleshooting·PostgreSQL

PostgreSQL Configuration Precedence

`pg_settings.source` names where every live value came from - default, configuration file, or a session override. It is the query that ends an argument about why a setting is what it is.

Configuration Guide 15 of 47 Advanced

Written against the versions above. `sourcefile` and `sourceline` are visible only to superusers and roles granted `pg_read_all_settings`. As an ordinary role they come back empty, which is a restriction rather than a bug.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

Before you start

  1. Ask where each value came from

  2. Hand a setting back to the defaults

Official sources