pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: [ADMIN] syslog slowing the database?
Date: Sun, 14 Mar 2004 11:00:18 -0500
Message-ID: <20040314160018.GB1400@phlogiston.dyndns.org> (raw)
In-Reply-To: <404FC23E.9000207@familyhealth.com.au>
References: <404E2937.4060604@cranel.com>
	<370.1078877805@sss.pgh.pa.us>
	<404F3996.2070105@cranel.com>
	<7688.1078937631@sss.pgh.pa.us>
	<404FC23E.9000207@familyhealth.com.au>

On Thu, Mar 11, 2004 at 09:34:54AM +0800, 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.
> 
> Not an option I'm afraid.  PostgreSQL just jams and stops logging after 
> the first rotation...

Actually, this is what we do.  Last year we offered an (admittedly
expensive) bespoke log rotator written in Perl for just this purpose. 
It was rejected on the grounds that it didn't do anything Apache's
rotator didn't do, so I didn't pursue it.  I'm willing to put it up
on gborg, though, if anyone thinks it'll be worth having around. 
FWIW, we use ours in production.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
The plural of anecdote is not data.
		--Roger Brinner



view thread (19+ messages)  latest in thread

Message-ID: <20040314160018.GB1400@phlogiston.dyndns.org>
Permalink:  ../20040314160018.GB1400@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20040314160018.GB1400@phlogiston.dyndns.org

 · 

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-performance@postgresql.org
  Cc: ajs@crankycanuck.ca
  Subject: Re: [ADMIN] syslog slowing the database?
  In-Reply-To: <20040314160018.GB1400@phlogiston.dyndns.org>
  References: <404E2937.4060604@cranel.com> <370.1078877805@sss.pgh.pa.us> <404F3996.2070105@cranel.com> <7688.1078937631@sss.pgh.pa.us> <404FC23E.9000207@familyhealth.com.au> <20040314160018.GB1400@phlogiston.dyndns.org>

* 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