How to do it...

Follow these steps to learn more about PostgreSQL settings:

  1. Execute the following query to obtain a list of settings that require a server restart and their current value:
        SELECT name, setting  
          FROM pg_settings  
          WHERE context = 'postmaster'; 
  1. Execute this query for a list of only those settings that are not changed from the default and require restart:
        SELECT name, setting, boot_val 
          FROM pg_settings 
         WHERE context = 'postmaster' 
           AND boot_val = setting; 
  1. Execute the following query for a list of all settings and a translation of how the setting is managed:
 SELECT name, CASE context WHEN 'postmaster' THEN 'REQUIRES RESTART' WHEN 'sighup' THEN 'Reload Config' WHEN 'backend' THEN 'Reload Config' WHEN 'superuser' THEN 'Reload ...

Get PostgreSQL High Availability Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.