Thread: Meaning of contexts from pg_settings view

Meaning of contexts from pg_settings view

From
Francesco Dalla Ca'
Date:
The following query, give six differents kind of context presents on the
system view pg_settings, that list all postgresql current parameters
setting.

postgres=# select distinct context from pg_settings;
  context
------------
 backend
 internal
 postmaster
 sighup
 superuser
 user
(6 rows)

What's the mean for 'backend', 'postmaster' and 'sighup' context of a
parameter? How i can know if a parameter is modifiable only with a
server restart, rather than a 'pg_ctl reload' (sighup?) or a "SET/ALTER
USER/ALTER DATABASE" command?

Best regards,
Francesco.

--
--------------------------------------------------
Francesco Dalla Ca'
Settore Gestione Sistemi CINECA
Via Magnanelli 6/3  40033 Casalecchio di Reno (BO)
Bologna, Italy             http://www.cineca.it
--------------------------------------------------


Re: Meaning of contexts from pg_settings view

From
Tom Lane
Date:
"Francesco Dalla Ca'" <f.dallaca@cineca.it> writes:
> What's the mean for 'backend', 'postmaster' and 'sighup' context of a
> parameter? How i can know if a parameter is modifiable only with a
> server restart, rather than a 'pg_ctl reload' (sighup?) or a "SET/ALTER
> USER/ALTER DATABASE" command?

The ones that say "postmaster" are the ones that require postmaster
restart.

            regards, tom lane