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

From Andrew Sullivan
Subject Re: more contrib: log rotator
Date
Msg-id 20030403211214.GO19119@libertyrms.info
Whole thread Raw
In response to Re: more contrib: log rotator  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Apr 03, 2003 at 01:41:08PM -0500, Tom Lane wrote:
> You would not actually have to: you could just pipe pg_ctl's output to
> pglog-rotator.  But I think it'd be cool if pg_ctl had an option to use
> pglog-rotator, or maybe even adopt it as standard behavior.

It's currently built to call a program, and read its stdout and
stderr, rather than acting as a pipe.  I guess it shouldn't be too
hard to modify, though.  We actually call the postmaster directly
with it, so we use it as a replacement for pg_ctl at startup.

> Andrew, could you toss up the script on pgsql-patches just so people can
> take a look?  Then we could think more about where to go with it.

Ok, I sent it.

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8                                        +1 416 646 3304
x110



pgsql-hackers by date:

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