pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Spiegelberg <gspiegelberg@cranel.com>
Cc: PgSQL Performance ML <pgsql-performance@postgresql.org>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: [PERFORM] syslog slowing the database?
Date: Mon, 15 Mar 2004 08:17:49 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0403150816410.6471-100000@css120.ihs.com> (raw)
In-Reply-To: <404FC23E.9000207@familyhealth.com.au>

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&'




view thread (19+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0403150816410.6471-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0403150816410.6471-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0403150816410.6471-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@ihs.com, chriskl@familyhealth.com.au, tgl@sss.pgh.pa.us, gspiegelberg@cranel.com, pgsql-performance@postgresql.org
  Subject: Re: [PERFORM] syslog slowing the database?
  In-Reply-To: <Pine.LNX.4.33.0403150816410.6471-100000@css120.ihs.com>
  References: <404FC23E.9000207@familyhealth.com.au> <Pine.LNX.4.33.0403150816410.6471-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox