Re: serverlog rotation/functions

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: serverlog rotation/functions
Date: 2004-07-16 22:40:04
Message-ID: 200407162240.i6GMe4L03174@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2004-07-16 22:49:51 Re: serverlog rotation/functions
Previous Message Bruce Momjian 2004-07-16 22:38:11 Re: serverlog rotation/functions