Re: logfile rotation - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: logfile rotation
Date
Msg-id 40D094C4.3080707@pse-consulting.de
Whole thread Raw
In response to Re: logfile rotation  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: logfile rotation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Andreas Pflug wrote:

> Andreas Pflug wrote:
>
>>
>>> We agreed long ago that the
>>> postmaster should never depend on the correctness of any shared memory
>>> data structure; but this patch would make it do so.
>>>  
>>>
>> I understand that, so what's the suggested way to store data common 
>> for all backends?
>
>
>
> Answering my own question, the distribution of the current logfile 
> name could be done trough a file handle. So the only thing remaining 
> in shared mem would be the "reopen logfile" flag, which seems 
> nonproblematic. In case of garbled sharedmem, a backend would reopen 
> the logfile, which does no harm at all, or continue writing the 
> outdated logfile which would be annoying but not harmful either.
>
> Acceptable?


Tom,
would you mind commenting on my suggestion so I can continue on that topic?

Regards,
Andreas



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: JOB LISTING - SRA America looking for intern/consultant
Next
From: Bruce Momjian
Date:
Subject: Re: Improving postgresql.conf