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

Re: 8.3.x log maintenance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Clark <sclark(at)netwolves(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.3.x log maintenance
Date: 2008-10-27 15:17:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Steve Clark <sclark(at)netwolves(dot)com> writes:
> I have postgres logging into data/pg_log/ which works great. My question is there
> and option that tells postgres to only keep the last "n" log files?

The usual solution is to choose a filename pattern that will repeat
after an appropriate interval, eg use the day of the week in the
filename if you wanted seven daily log files.

			regards, tom lane

In response to


pgsql-general by date

Next:From: Robert TreatDate: 2008-10-27 15:42:47
Subject: Re: [HACKERS] Hot Standby utility and administrator functions
Previous:From: Raymond O'DonnellDate: 2008-10-27 14:18:39
Subject: Re: 8.3.x log maintenance

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