[pgpool-committers: 10275] pgpool: Feature: add log_backend_messages.

Tatsuo Ishii ishii at postgresql.org
Sat Nov 30 18:39:02 JST 2024


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

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6d4106f9c8c9ed14349055c544446b3791692f2d

Modified Files
--------------
doc.ja/src/sgml/connection-pooling.sgml            |  51 ++++++++
doc/src/sgml/connection-pooling.sgml               |  32 +++++
src/config/pool_config_variables.c                 |  20 ++-
src/include/pool_config.h                          |   9 ++
src/include/protocol/pool_proto_modules.h          |   4 +-
src/protocol/pool_process_query.c                  |   2 +
src/protocol/pool_proto_modules.c                  | 136 +++++++++++++++++++++
src/sample/pgpool.conf.sample-stream               |   4 +
.../tests/039.log_backend_messages/expected.i      |  93 ++++++++++++++
.../tests/039.log_backend_messages/expected.n      |  91 ++++++++++++++
.../tests/039.log_backend_messages/expected.s      |  94 ++++++++++++++
.../tests/039.log_backend_messages/test.sh         |  76 ++++++++++++
src/utils/pool_process_reporting.c                 |   5 +
13 files changed, 615 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list