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

Tatsuo Ishii ishii at sraoss.co.jp
Thu Jan 6 17:34:33 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_1_STABLE

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

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