[pgpool-committers: 5348] pgpool: Fix broken authentication for Pgpool's internal connections
Muhammad Usama
m.usama at gmail.com
Fri Nov 16 05:54:37 JST 2018
Fix broken authentication for Pgpool's internal connections
The issue is caused by a mistake in "SCRAM and Certificate authentication
support" commit.
The problem is while authenticating against backend in connection_do_auth(), it
returns to caller as soon as backend returns auth ok response. So
authentication itself established fine. However connection_do_auth()
does not proceed until it receives "Ready for query", it is required
according to the frontend/backend protocol.
The fix is to keep processing the data after receiving auth_ok response
until we get ready for query.
Patch provided by Tatsuo Ishii <ishii at sraoss.co.jp> and a tiny modification
made by me
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=f247bdc5d892064a181d265ef62deeb85d88bc46
Modified Files
--------------
src/auth/pool_auth.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
More information about the pgpool-committers
mailing list