Enhance debug message upon receiving startup packet.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 16 Mar 2021 01:27:22 +0000 (10:27 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Tue, 16 Mar 2021 01:27:22 +0000 (10:27 +0900)
commite16b9f0d94d20bc295b2da439749b81b03a7b72f
treed3faece55b1e41e618c4f18c08ab967afb114b70
parent9f15b73c8318a77c67e6ac2adcb55ce7522bf5e7
Enhance debug message upon receiving startup packet.

While processing a startup packet, database name, user name and
application name are printed in DEBUG1, but other guc variables (if
any) were not printed. This is not helpful when studying errors like
"connection exists but startup packet length is not identical" problem
(see https://www.pgpool.net/mantisbt/view.php?id=696). With this
commit guc variables are now printed something like:

2021-03-16 10:21:32: child pid 5155: DEBUG:  reading startup packet
2021-03-16 10:21:32: child pid 5155: DETAIL:  guc name: client_encoding value: UTF8
src/protocol/child.c