[pgpool-committers: 10031] pgpool: Feature: Add new PCP command to trigger log rotation
Bo Peng
pengbo at sraoss.co.jp
Mon Aug 5 15:35:34 JST 2024
Feature: Add new PCP command to trigger log rotation
Currently the only way to trigger log rotation in logging collector process
is to send SIGUSR1 signal directly to logging collector process.
However, I think it would be nice to have a better way to do it with an external
tool (e.g. logrotate) without requiring knowledge of the logging collector's PID.
This commit adds a new PCP command "pcp_log_rotate" for triggering log rotation.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=55036fd6c2014786159f8d86a9fbce89c18a259e
Modified Files
--------------
doc.ja/src/sgml/ref/allfiles.sgml | 1 +
doc.ja/src/sgml/ref/pcp_log_rotate.sgml | 74 ++++++++++++++++++++++
doc.ja/src/sgml/reference.sgml | 1 +
doc/src/sgml/ref/allfiles.sgml | 3 +-
doc/src/sgml/ref/pcp_log_rotate.sgml | 73 +++++++++++++++++++++
doc/src/sgml/reference.sgml | 1 +
src/include/pcp/libpcp_ext.h | 1 +
src/include/pool.h | 3 +-
src/include/watchdog/wd_ipc_defines.h | 1 +
src/libs/pcp/pcp.c | 32 ++++++++++
src/main/pgpool_logger.c | 2 +-
src/main/pgpool_main.c | 31 +++++++++
src/pcp_con/pcp_worker.c | 33 ++++++++++
src/test/regression/tests/038.pcp_commands/test.sh | 63 ++++++++++++++++++
src/tools/pcp/.gitignore | 1 +
src/tools/pcp/Makefile.am | 8 ++-
src/tools/pcp/pcp_frontend_client.c | 10 ++-
src/watchdog/watchdog.c | 11 ++++
18 files changed, 342 insertions(+), 7 deletions(-)
More information about the pgpool-committers
mailing list