aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/common.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-11-12 09:12:18 -0500
committerRobert Haas <rhaas@postgresql.org>2015-11-12 09:12:18 -0500
commitc3e7c24a1d60dc6ad56e2a0723399f1570c54224 (patch)
tree53bd506c3f07d70f0cf00c203020a6a20d6cf0d5 /src/bin/scripts/common.c
parentac1d7945f866b1928c2554c0f80fd52d7f977772 (diff)
downloadpostgresql-c3e7c24a1d60dc6ad56e2a0723399f1570c54224.tar.gz
postgresql-c3e7c24a1d60dc6ad56e2a0723399f1570c54224.zip
libpq: Notice errors a backend may have sent just before dying.
At least since the introduction of Hot Standby, the backend has sometimes sent fatal errors even when no client query was in progress, assuming that the client would receive it. However, pqHandleSendFailure was not in sync with this assumption, and only tries to catch notices and notifies. Add a parseInput call to the loop there to fix. Andres Freund suggested the fix. Comments are by me. Reviewed by Michael Paquier.
Diffstat (limited to 'src/bin/scripts/common.c')
0 files changed, 0 insertions, 0 deletions