Re: more contrib: log rotator - Mailing list pgsql-hackers

From scott.marlowe
Subject Re: more contrib: log rotator
Date
Msg-id Pine.LNX.4.33.0304040914080.21974-100000@css120.ihs.com
Whole thread Raw
In response to Re: more contrib: log rotator  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: more contrib: log rotator  (Andrew Sullivan <andrew@libertyrms.info>)
Re: more contrib: log rotator  ("Ed L." <pgsql@bluepolka.net>)
List pgsql-hackers
On Fri, 4 Apr 2003, Peter Eisentraut wrote:

> Andrew Sullivan writes:
> 
> > Is anyone interested in having pglog-rotator?
> 
> What would get me a whole lot more excited is if the server could write
> directly to a file and do its own rotating (or at least reopening of
> files).
> 
> Considering that your rotator is tailored to a rather specific setup, it
> doesn't do anything better compared to established ones, it prevents the
> use of pg_ctl, it's written in Perl, and it doesn't do anything for
> Windows users, I think it's not suitable for a general audience.

That said, a log rotation capability built right into pg_ctl or 
thereabouts would be a very nice feature.  I.e. 'pg_ctl -r 86400 -l 
$PGDATA/logs/pgsql start'

where -r is the rotation period in seconds.  If it's an external program 
that pg_ctl calls that's fine, and it could even just be a carbon copy of 
apache's log rotater if their license is compatible (isn't it?)



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: [PERFORM] OSS database needed for testing
Next
From: Andrew Sullivan
Date:
Subject: Re: more contrib: log rotator