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: 15455.1334188284@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

Browse pgsql-admin by date

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