Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...
Date: 2001-11-02 23:16:59
Message-ID: 200111022316.fA2NGx123280@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers pgsql-jdbc

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Fix pg_pwd caching mechanism, which was broken by changes to fork
> >> postmaster children before client auth step. Postmaster now rereads
> >> pg_pwd on receipt of SIGHUP, the same way that pg_hba.conf is handled.
>
> > Tom, does a client do a kill() to its parent on password change?
>
> Right, it's basically the same as the way we handle checkpoint and
> SI-overrun signaling:
>
> /*
> * Signal the postmaster to reload its password-file cache.
> */
> if (IsUnderPostmaster)
> kill(getppid(), SIGHUP);
>
> > If this is true, people can't depend on editing pg_hba.conf and having
> > the change take affect _only_ when they sighup the postmaster.
>
> True. But recall that in all previous releases it's been completely
> unsafe to edit pg_hba.conf in place, so I don't regard this as a big
> step backwards.
>
> We could possibly set up the password-file-reload action to occur on
> some other, presently unused signal. But there aren't a lot of spare
> signal numbers left, and I'm not eager to use one up for this...

I think your solution is fine. I just wanted to make it clear so we
don't encourage people to edit those files and wait around thinking they
can control when the reload happens. I will check the docs to make sure
I didn't add any suggestion of that.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2001-11-02 23:19:28 Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...
Previous Message Tom Lane 2001-11-02 22:56:32 Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-11-02 23:19:28 Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...
Previous Message Tom Lane 2001-11-02 22:56:32 Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2001-11-02 23:19:28 Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...
Previous Message Tom Lane 2001-11-02 22:56:32 Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...