From: Devrim GUNDUZ <devrim@commandprompt.com>
To: adey <adey11@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Recycle error logs
Date: Sat, 15 Jul 2006 11:45:56 +0300
Message-ID: <1152953156.2387.8.camel@laptop.gunduz.org> (raw)
In-Reply-To: <1c66bda80607150037j3c127a32tcdade264bc3f583e@mail.gmail.com>
References: <1c66bda80607150037j3c127a32tcdade264bc3f583e@mail.gmail.com>
Hi,
On Sat, 2006-07-15 at 19:37 +1200, adey wrote:
> Please advise if there is a way to start a fresh Postgresql error /
> output log at regular intervals?
PostgreSQL 8.0.0 and above has a built-in log rotation mechanism. Check
postgresql.conf for this. See the section "Error reporting and logging".
log_rotation_age will help you to determine daily rotation. Also set
log_filename to point only to %Y-%m-%d .
Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
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: devrim@commandprompt.com, adey11@gmail.com
Subject: Re: Recycle error logs
In-Reply-To: <1152953156.2387.8.camel@laptop.gunduz.org>
References: <1c66bda80607150037j3c127a32tcdade264bc3f583e@mail.gmail.com> <1152953156.2387.8.camel@laptop.gunduz.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