Feature: add log_backend_messages.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 25 Nov 2024 09:09:59 +0000 (18:09 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 30 Nov 2024 06:31:59 +0000 (15:31 +0900)
commit6d4106f9c8c9ed14349055c544446b3791692f2d
tree89d267ff97f993811a2a164aa64d6baf27a141db
parent009b1973908f6a0e0c21708c27524e3a3712a3f5
Feature: add log_backend_messages.

When enabled, log protocol messages from each backend. Possible
options are "none", "terse" and "verbose". "none" disables the feature
and is the default. "verbose" prints the log each time pgpool receives
a message from backend. "terse" is similar to verbose except it does
not print logs for repeated message to save log lines. If different
kind of message received, pgpool prints a log message including the
number of the message. One downside of "terse" is, the repeated
message will not be printed if the pgpool child process is killed
before different kind of message arrives.

For testing, 039.log_backend_messages is added.

Discussion: [pgpool-hackers: 4535] New feature: log_backend_messages
https://www.pgpool.net/pipermail/pgpool-hackers/2024-November/004536.html
13 files changed:
doc.ja/src/sgml/connection-pooling.sgml
doc/src/sgml/connection-pooling.sgml
src/config/pool_config_variables.c
src/include/pool_config.h
src/include/protocol/pool_proto_modules.h
src/protocol/pool_process_query.c
src/protocol/pool_proto_modules.c
src/sample/pgpool.conf.sample-stream
src/test/regression/tests/039.log_backend_messages/expected.i [new file with mode: 0644]
src/test/regression/tests/039.log_backend_messages/expected.n [new file with mode: 0644]
src/test/regression/tests/039.log_backend_messages/expected.s [new file with mode: 0644]
src/test/regression/tests/039.log_backend_messages/test.sh [new file with mode: 0755]
src/utils/pool_process_reporting.c