From: Scott Marlowe <smarlowe@g2switchworks.com>
To: adey <adey11@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: postgresql-l <postgresql-l@Groups.ittoolbox.com>
Subject: Re: Recycle error logs
Date: Mon, 17 Jul 2006 10:23:17 -0500
Message-ID: <1153149797.2744.49.camel@state.g2switchworks.com> (raw)
In-Reply-To: <1c66bda80607150037j3c127a32tcdade264bc3f583e@mail.gmail.com>
References: <1c66bda80607150037j3c127a32tcdade264bc3f583e@mail.gmail.com>
On Sat, 2006-07-15 at 02:37, adey wrote:
> Please advise if there is a way to start a fresh Postgresql error /
> output log at regular intervals?
> We are tuning a "new toproduction" system, so I have all the SQL
> logged, but the file gets too big and cumbersome, so I'd like to start
> a new one each morning without restarting Postgres.
As mentioned previously, it's built into 8.0 and up. If you're stuck on
a version before that, you can use apache's log rotator to do the job.
Something like this:
pg_ctl start | /usr/sbin/rotatelogs /logs/pgsql 86400
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: smarlowe@g2switchworks.com, adey11@gmail.com, postgresql-l@Groups.ittoolbox.com
Subject: Re: Recycle error logs
In-Reply-To: <1153149797.2744.49.camel@state.g2switchworks.com>
References: <1c66bda80607150037j3c127a32tcdade264bc3f583e@mail.gmail.com> <1153149797.2744.49.camel@state.g2switchworks.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