git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ab0ed61) | patch
Implement "pg_ctl logrotate" command
Sat, 1 Sep 2018 16:46:49 +0000 (19:46 +0300)
Sat, 1 Sep 2018 16:46:49 +0000 (19:46 +0300)
commit ec74369931687885cfb6ce9dac55deefdb410086
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
doc/src/sgml/maintenance.sgml diff | blob | blame | history
doc/src/sgml/ref/pg_ctl-ref.sgml diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/backend/postmaster/syslogger.c diff | blob | blame | history
src/bin/pg_ctl/pg_ctl.c diff | blob | blame | history
src/bin/pg_ctl/t/004_logrotate.pl [new file with mode: 0644] blob
src/include/postmaster/syslogger.h diff | blob | blame | history
src/test/perl/PostgresNode.pm diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /