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

Re: Definitive logrotate solution?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wellsoliver(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Definitive logrotate solution?
Date: 2012-04-11 23:51:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Wells Oliver <wellsoliver(at)gmail(dot)com> writes:
> How do you ensure you're not keeping logs from 35+ days ago, or whatever?
> Just a find -mtime +10 -exec rm {}\; kind of thing?

Well, that depends on what you want to do.  I like to choose the log file
names so that they'll automatically be reused once a week or month.

			regards, tom lane

In response to

pgsql-admin by date

Next:From: Wells OliverDate: 2012-04-12 23:38:13
Subject: Changing max_connections after WAL slave configured not allowed?
Previous:From: Wells OliverDate: 2012-04-11 23:40:28
Subject: Re: Definitive logrotate solution?

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