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

From Alexander Kuzmenkov
Subject Re: Reopen logfile on SIGHUP
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Reopen logfile on SIGHUP  (Kyotaro HORIGUCHI <[email protected]>)
Responses Re: Reopen logfile on SIGHUP
List pgsql-hackers
On 04/16/2018 05:54 AM, Kyotaro HORIGUCHI wrote:
> We can provide a new command "pg_ctl logrotate" to hide the
> details. (It cannot be executed by root, though.)

I like this approach.

I looked at the patch and changed some things:
- cleaned up the error messages
- moved checkLogrotateSignal to postmaster.c, since it has no reason to 
be in xlog.c
- added some documentation I had from my older patch

Other than that, it looks good to me. The updated patch is attached.

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


Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Should we add GUCs to allow partition pruning to be disabled?
Next
From: Andrew Gierth
Date:
Subject: Re: Toast issues with OldestXmin going backwards