pg_ctl needs a SIGHUP option

Started by Tom Laneover 24 years ago3 messages
#1Tom Lane
tgl@sss.pgh.pa.us

When modifying postgresql.conf (or, now, pg_hba.conf) one must send a
SIGHUP to the postmaster to get it to pay attention. Seems like it'd
be nice if pg_ctl had an option to do that, rather than having to muck
about with looking in ps output. Any objections? What should the
option be called? "pg_ctl hup" is short but maybe too Unix-sysadminy;
perhaps something like "pg_ctl reconfig"?

regards, tom lane

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#1)
Re: pg_ctl needs a SIGHUP option

Tom Lane writes:

Any objections?

No. Definitely needed.

What should the option be called? "pg_ctl hup" is short but maybe too
Unix-sysadminy; perhaps something like "pg_ctl reconfig"?

If you accept the Linux Standards Base as a precedent for the other
options, it should be "reload". That will most easily map the the init.d
scripts.

--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#2)
Re: pg_ctl needs a SIGHUP option

Peter Eisentraut <peter_e@gmx.net> writes:

Tom Lane writes:

What should the option be called?

If you accept the Linux Standards Base as a precedent for the other
options, it should be "reload".

Works for me.

regards, tom lane