Re: [ADMIN] syslog slowing the database?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org>
Subject: Re: [ADMIN] syslog slowing the database?
Date: 2004-03-14 16:00:18
Message-ID: 20040314160018.GB1400@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

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(at)crankycanuck(dot)ca
The plural of anecdote is not data.
--Roger Brinner

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Vickriz Buenaventuura 2004-03-15 02:42:20 Re: pgadmin3 software dependencies?
Previous Message Peter Eisentraut 2004-03-13 23:25:51 Re: pgadmin3 software dependencies?

Browse pgsql-performance by date

  From Date Subject
Next Message Arjen van der Meijden 2004-03-14 19:33:00 Large CASE-statement is pretty slow?
Previous Message Andrew Sullivan 2004-03-14 15:52:27 Re: Drop Tables Very Slow in Postgresql 7.2.1