Re: temporary statistics option at initdb time - Mailing list pgsql-hackers

From Tom Lane
Subject Re: temporary statistics option at initdb time
Date
Msg-id 21162.1219678190@sss.pgh.pa.us
Whole thread Raw
In response to Re: temporary statistics option at initdb time  (Magnus Hagander <magnus@hagander.net>)
Responses Re: temporary statistics option at initdb time  (Magnus Hagander <magnus@hagander.net>)
Re: temporary statistics option at initdb time  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Tom Lane wrote:
>> I think this is introducing complication and race conditions to solve a
>> problem that no one will really care about.  Just let people change the
>> filename at SIGHUP and document that doing that on-the-fly may cause
>> stats queries to fail for a short interval.

> Ok, I'll do it that way.

BTW, it might be worth tweaking the stats collector to dump stats
immediately after responding to SIGHUP, just to narrow this window
as much as possible.

[ squint... ]  Actually, it looks like the stats collector SIG_IGNores
SIGHUP?  That can't be right (any more) can it?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Another refactoring proposal: move stuff into nodes/nodeFuncs.[ch]
Next
From: Magnus Hagander
Date:
Subject: Re: temporary statistics option at initdb time