Re: Reopen logfile on SIGHUP - Mailing list pgsql-hackers

From Alexander Kuzmenkov
Subject Re: Reopen logfile on SIGHUP
Date
Msg-id b923cb78-cdaa-1a4f-0bc3-04e90302b54d@postgrespro.ru
Whole thread Raw
In response to Re: Reopen logfile on SIGHUP  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Reopen logfile on SIGHUP
List pgsql-hackers
El 10/04/18 a las 22:40, Robert Haas escribió:
>
>> Having said that, I'm not averse to providing a solution if it's robust,
>> not too invasive and doesn't break other use-cases.  So far we've not
>> seen a patch that meets those conditions.
> Fair enough.
>

Syslogger does already rotate logs properly on SIGHUP under some 
conditions, so we can just change this to unconditional rotation. 
Probably some people wouldn't want their logs to be rotated on SIGHUP, 
so we could also add a GUC to control this. Please see the attached patch.

-- 
Alexander Kuzmenkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Gotchas about pg_verify_checksums
Next
From: Peter Geoghegan
Date:
Subject: Re: WIP: Covering + unique indexes.