Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ...
От | Bruce Momjian |
---|---|
Тема | Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ... |
Дата | |
Msg-id | 200111022316.fA2NGx123280@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [COMMITTERS] pgsql/ oc/src/sgml/client-auth.sgml oc/src/sgm ... (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
> Bruce Momjian <pgman@candle.pha.pa.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@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: