[pgpool-committers: 8286] pgpool: Suppress message length log for in_hot_standby.

Tatsuo Ishii ishii at sraoss.co.jp
Thu Jan 6 17:34:28 JST 2022


Suppress message length log for in_hot_standby.

PostgreSQL 14 introduced new config parameter: in_hot_standby
https://www.postgresql.org/docs/14/runtime-config-preset.html
The value is either "on" for standby servers or "off" for primary
servers. As a result pgpool log is fladded by the messages:

2021-12-16 10:40:34.855: psql pid 366965: LOG:  reading message length
2021-12-16 10:40:34.855: psql pid 366965: DETAIL:  message length (22) in slot 1 does not match with slot 0(23)

To avoid this, only complain if the parameter name is not in_hot_standby.
Also the message is enhanced to show the parameter name.

2022-01-05 13:05:15.993: psql pid 642877: LOG:  ParameterStatus "TimeZone": node 1 message length 30 is different from main node message length 24

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2021-December/004077.html

Branch
------
V4_0_STABLE

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

Modified Files
--------------
src/auth/pool_auth.c              | 45 ++++++++++++++++++++++++++++++++++-----
src/include/pool.h                |  3 ++-
src/protocol/pool_process_query.c | 25 ++++++++++++++++++----
3 files changed, 63 insertions(+), 10 deletions(-)



More information about the pgpool-committers mailing list