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

log rotation

From: Michael Guerin <guerin(at)rentec(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: log rotation
Date: 2006-03-14 14:44:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

   Can I get rid of the number extension at the end of my log file 
name?  What I'd like to do is keep one log file that truncates after a 
certain amount of time or size, however postgres keeps appending to the 
name I choose?  It's easy to schedule a job to clean up the old files, 
however I wanted to make sure I wasn't missing anything before I 
schedule another job.


log_filename = 'pg.log' # Log file name pattern.
log_truncate_on_rotation = on
 # If on, any existing log file of the same name as the new log file 
will be truncated rather than appended to......


pgsql-novice by date

Next:From: Michael GuerinDate: 2006-03-14 15:50:50
Subject: Re: log rotation
Previous:From: Bruno Wolff IIIDate: 2006-03-13 21:01:55
Subject: Re: Automatic date/time

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