Re: best method of reloading pg_hba.conf

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Fernando Nasser <fnasser(at)redhat(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, David Ford <david(at)blue-labs(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: best method of reloading pg_hba.conf
Date: 2001-11-10 13:13:19
Message-ID: 3BED27EF.BD6804C1@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fernando Nasser wrote:
>
> Bruce Momjian wrote:
> >
> > > > Performance. Peter E found that considerable startup time was being
> > > > wasted reading the file.
> > >
> > > But can't we read it only when needed ?
> > >
> > > Just stat'ing it should be much cheaper than reading it each time.
> >
> > We thought about that but it seems we could be reading partial writes to
> > the file. This way the administrator controls when the changes become
> > effective.

You could do the writing in a proper way - write to temp file and then
rename.

> Hannu,
>
> It is not only much safer (you get a 2nd chance to check what you've
> done)
> but is also consistent with the behavior of other Unix daemons.

Well, that much I already knew ;)

Except for sendmail where I must run newaliases, that is.

Sending a HUP is actually ok with me, it just came as a surprise.

----------------------
Hannu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-11-10 16:11:16 Re: RelationFlushRelation() or RelationClearRelation()
Previous Message Brent Verner 2001-11-10 11:07:50 Re: RelationFlushRelation() or RelationClearRelation()