Re: pg_reload_conf() - Mailing list pgsql-general

From Marc Millas
Subject Re: pg_reload_conf()
Date
Msg-id CADX_1ab7t=hkeCLReqj-cD9D+d+_gJOn5CErt+A=zdq3i1EHmg@mail.gmail.com
Whole thread Raw
In response to Re: pg_reload_conf()  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Thanks Adrian,

the fact that the changes are visible only by the new backend, and NOT by the backend which did the changes was what I did missed.

Marc MILLAS
Senior Architect
+33607850334



On Mon, Feb 20, 2023 at 6:01 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 2/20/23 08:57, Marc Millas wrote:
> select  setting, boot_val, reset_val from pg_settings where
> name='log_connections';

# select  setting, boot_val, reset_val, context from pg_settings where
name='log_connections';
  setting | boot_val | reset_val |      context
---------+----------+-----------+-------------------
  on      | off      | on        | superuser-backend


https://www.postgresql.org/docs/15/view-pg-settings.html

There are several possible values of context. In order of decreasing
difficulty of changing the setting, they are:


...

superuser-backend

     Changes to these settings can be made in postgresql.conf without
restarting the server. They can also be set for a particular session in
the connection request packet (for example, via libpq's PGOPTIONS
environment variable), but only if the connecting user is a superuser or
has been granted the appropriate SET privilege. However, these settings
never change in a session after it is started. If you change them in
postgresql.conf, send a SIGHUP signal to the postmaster to cause it to
re-read postgresql.conf. The new values will only affect
subsequently-launched sessions.

...
--
Adrian Klaver
adrian.klaver@aklaver.com

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Thanks! Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?
Next
From: Bryn Llewellyn
Date:
Subject: Re: Thanks! Re: Who adds the "start transaction" and "commit" to the intended SQL statement in "autocommit" mode?