Re: [7.0.2] rotating log files ... - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: [7.0.2] rotating log files ...
Date
Msg-id 200010161553.LAA07691@candle.pha.pa.us
Whole thread Raw
In response to Re: [7.0.2] rotating log files ...  (Palle Girgensohn <girgen@partitur.se>)
List pgsql-admin
> Hi,
>
> Apart from using syslog, which apparently work fine (?) with
> 7.0.2, the 'rotatelogs' utility from apache's support dir is
> great (No need to hack one up, as Alfred Perlstein suggest;
> this babe been around and is quite stable).
>
> Of course, you need to stop the server once, but I guess other
> ways have been thouroughly dicussed in already :)
>
> Enclosed is a Bournce shell script showing how I start postgres
> on developers' machines [debug on] (run as root, will su pgsql)
>
> On syslog... is syslog support reliable now? If so,
> admin/pg-options.htm should be updated:
>
> ...Unfortunately many functions call directly printf() to print
> their messages to stdout or stderr and this output can't be
> redirected to syslog or have timestamps in it....

Would someone be interested in converting our fprintf(stderr,...) calls
to elog and submitting a patch, please?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-admin by date:

Previous
From: David Huttleston Jr
Date:
Subject: Re: Database connectivity
Next
From: Michel Decima
Date:
Subject: pltcl, linker and statistical functions