Re: How to log to postgresql.log

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: A B <gentosaker(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to log to postgresql.log
Date: 2009-01-30 01:16:22
Message-ID: 14895.1233278182@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

A B <gentosaker(at)gmail(dot)com> writes:
> But I get files
> postgresql.log.1233263415
> postgresql.log.1233263531

That's what it's defined to do when you set log_filename to a constant.
The expected use pattern involves putting some strftime percent-escapes
into the log_filename pattern. See the examples in the 'where to log'
section of the manual (look under log_truncate_on_rotation in
particular).

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Keith Turner 2009-01-30 16:35:06 Re: REALLY stupid question
Previous Message Bob McConnell 2009-01-29 22:26:00 Re: REALLY stupid question