Re: [PATCHES] serverlog function (log_destination file) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] serverlog function (log_destination file)
Date
Msg-id 200406102037.i5AKbQG26288@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] serverlog function (log_destination file)  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: [PATCHES] serverlog function (log_destination file)  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
Andreas Pflug wrote:
> Tom Lane wrote:
>
> >Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >
> >
> >>Looks good to me.  The only issue I saw was that the default file name
> >>mentioned in postgresql.conf doesn't match the actual default.
> >>
> >>
> >
> >I'm really not happy with the concept that the postmaster overrides
> >its stderr direction.
> >
> >
> >
> I agree, that's why I implemented it as *additional* log_destination.

One idea would be to send a message to stderr when this option is used
stating that everything is going to 'filename'.

Also can we close/reopen the file on SIGHUP. My guess is we can't
because of all the backends accessing the output file.

--
  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, Pennsylvania 19073

pgsql-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: [PATCHES] serverlog function (log_destination file)
Next
From: Andreas Pflug
Date:
Subject: Re: [PATCHES] serverlog function (log_destination file)