pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Kiger <kris@musicrebellion.com>
To: pgsql-admin@postgresql.org
Subject: Built-in log rotation
Date: Mon, 19 Feb 2007 10:34:40 -0500
Message-ID: <45D9C390.6040907@musicrebellion.com> (raw)

Greetings!  I've been doing some research into log rotation software and 
ran into this, while looking through the postgres site:

"There is a built-in log rotation program, which you can use by setting 
the configuration parameter redirect_stderr to true in postgresql.conf."
http://www.postgresql.org/docs/8.1/interactive/logfile-maintenance.html

My question is, how does it rotate logs?  Does it perform a 
copy/truncate of the logfile?  I know in older versions of postgres, if 
you tried to move the log file, and create one with the same name, the 
server wouldn't actually write to it without a restart...at least in 
linux it wouldn't.  Do many of you use this mechanism?  If not, what 
have you found to be a reliable solution?

Thanks in advance for the info!

- Kris



view thread (2+ messages)  latest in thread

Message-ID: <45D9C390.6040907@musicrebellion.com>
Permalink:  ../45D9C390.6040907@musicrebellion.com/
Also on:    postgresql.org/message-id/45D9C390.6040907@musicrebellion.com

 · 

reply

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: kris@musicrebellion.com
  Subject: Re: Built-in log rotation
  In-Reply-To: <45D9C390.6040907@musicrebellion.com>
  References: <45D9C390.6040907@musicrebellion.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