Re: [PERFORM] syslog slowing the database? - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: [PERFORM] syslog slowing the database?
Date
Msg-id 200403151538.i2FFc2009800@candle.pha.pa.us
Whole thread Raw
In response to Re: [PERFORM] syslog slowing the database?  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: [PERFORM] syslog slowing the database?  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-admin
scott.marlowe wrote:
> On Thu, 11 Mar 2004, Christopher Kings-Lynne wrote:
>
> > > You could also consider not using syslog at all: let the postmaster
> > > output to its stderr, and pipe that into a log-rotation program.
> > > I believe some people use Apache's log rotator for this with good
> > > results.
> >
> > Not an option I'm afraid.  PostgreSQL just jams and stops logging after
> > the first rotation...
> >
> > I've read in the docs that syslog logging is the only "production"
> > solution...
>
> Can you use the apache log rotator?  It's known to work in my environment
> (redhat 7.2, postgresql 7.2 and 7.4) with this command to start it in my
> rc.local file:
>
> su - postgres -c 'pg_ctl start | rotatelogs $PGDATA/pglog 86400 2>1&'

Sure, our documentation specifically mentions using rotatelogs.

--
  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-admin by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: [PERFORM] syslog slowing the database?
Next
From: "scott.marlowe"
Date:
Subject: Re: [PERFORM] syslog slowing the database?