Re: A single escape required for log_filename

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: A single escape required for log_filename
Date: 2009-01-14 03:07:26
Message-ID: 496D56EE.4050401@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Frost wrote:
>> Surely a good log rotator allows a custom rotation action (in this case,
>> connecting to postgres and calling 'select pg_rotate_logfile()' )
>>
>
> Yes, logrotate will happily call external applications. Maybe I'm
> missing something, but obviously if PG can't be configured with a fixed
> filename, pg_rotate_logfile() doesn't help the situation.
>
>
>

I should think a good rotator tool didn't need a fixed filename either.

I'm not sure what postgres does if the filename contains %% as the only
escape, although that's would be a fairly ugly hack.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2009-01-14 03:14:53 Re: New patch for Column-level privileges
Previous Message KaiGai Kohei 2009-01-14 02:54:59 Re: New patch for Column-level privileges