Re: Problem with reloading groups in pg_hba.conf

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem with reloading groups in pg_hba.conf
Date: 2002-03-21 16:31:58
Message-ID: 27889.1016728318@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> The problem is when to retokenize pg_hba.conf after a new pg_group is
> made. Seems I can either force administrators to 'pg_ctl reload' to
> update for group changes, or automatically retokenize pg_hba.conf every
> time I update pg_group.

Why exactly are you looking to reinvent the wheel, rather than doing
it the same way we currently handle pg_shadow updates? Send the
postmaster a signal when you modify the flat file, and it can reread
the file on receipt of the signal. See SendPostmasterSignal().

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-03-21 16:38:05 Re: Problem with reloading groups in pg_hba.conf
Previous Message Fernando Nasser 2002-03-21 16:22:57 Re: Domain Support -- another round