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:33:53 +0000 (10:33 +0900)
commitf07fdb0d74507a77d35ec0813bc07e83d0fb8e61
treee236c3183f17c7090a1e18a5c0358d96f1294d4c
parent30a7057f8110d8b94cd5986ff949c64eea01b74b
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