Re: 7.2 pg_hba.conf load on SIGHUP? - Mailing list pgsql-general

From Tom Lane
Subject Re: 7.2 pg_hba.conf load on SIGHUP?
Date
Msg-id 22926.1005885755@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.2 pg_hba.conf load on SIGHUP?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: 7.2 pg_hba.conf load on SIGHUP?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> Will a HUP cause the child postgres processes to restart as well?
>> What if a transaction is occuring at the time of the HUP?

> Again, no effect on children of postmaster.

Not so.  The postmaster responds to the signal as soon as it's idle,
rereads the conf file itself, and rebroadcasts SIGHUP to all its
children.  The children then reread the conf file immediately after they
next receive a query from their clients.  See postmaster/postmaster.c
and tcop/postgres.c.

A lot of the configuration file entries are not allowed to change in a
running backend, so the children will ignore attempted changes in those
entries.  But for entries that can be changed on the fly, the response
is reasonably prompt across the board.

            regards, tom lane

pgsql-general by date:

Previous
From: Barry Lind
Date:
Subject: bug or change in functionality in 7.2?
Next
From: Bruce Momjian
Date:
Subject: Re: 7.2 pg_hba.conf load on SIGHUP?