Re: serverlog rotation/functions - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: serverlog rotation/functions
Date
Msg-id 200407162240.i6GMe4L03174@candle.pha.pa.us
Whole thread Raw
In response to Re: serverlog rotation/functions  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: serverlog rotation/functions
List pgsql-hackers
Andreas Pflug wrote:
> Andreas Pflug wrote:
> 
> > 
> > Ah wait.
> > Digging further behind SIGUSR1 I now *do* see a solution without pid in 
> > shmem, using SendPostmasterSignal. Well, a little hint from gurus would 
> > have helped...
> > 
> 
> Oops, SendPostmasterSignal uses shmem....
> 
> At least, this enables syslogger.c to be free from shmem stuff, except 
> for PGSharedMemDetach.

Right.  We already have to use shared mem for the backends and
postmaster.  It is the logger we are worried about.

Tom brought up the point that if the logger used shared memory, we would
have to kill/restart it if we need to reinitialize shared memory,
meaning we would loose logging info at a time we really need it ---
again a good reason not to use shared memory in the logger.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: serverlog rotation/functions
Next
From: Andreas Pflug
Date:
Subject: Re: serverlog rotation/functions