Skip site navigation (1) Skip section navigation (2)

Built-in log rotation

From: Kris Kiger <kris(at)musicrebellion(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Built-in log rotation
Date: 2007-02-19 15:34:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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."

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 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


pgsql-admin by date

Next:From: Alvaro HerreraDate: 2007-02-19 15:53:08
Subject: Re: Built-in log rotation
Previous:From: Daniel MedinaDate: 2007-02-19 01:06:01
Subject: Re: [pgsql-es-ayuda] tabla pg_user Ayuda......

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group