Implement "pg_ctl logrotate" command

Alexander Korotkov <akorotkov@postgresql.org>

Commit: ec74369931687885cfb6ce9dac55deefdb410086
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2018-09-01T16:46:49Z
Releases: 12.0
Implement "pg_ctl logrotate" command

Currently there are two ways to trigger log rotation in logging collector
process: call pg_rotate_logfile() SQL-function or send SIGUSR1 signal directly
to logging collector process.  However, it's nice to have more suitable way
for external tools to do that, which wouldn't require SQL connection or
knowledge of logging collector pid.  This commit implements triggering log
rotation by "pg_ctl logrotate" command.

Discussion: https://postgr.es/m/20180416.115435.28153375.horiguchi.kyotaro%40lab.ntt.co.jp
Author: Kyotaro Horiguchi, Alexander Kuzmenkov, Alexander Korotkov

Files

Documentation touched

Discussion