aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-07 18:37:45 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-07 18:44:59 +0300
commit414bef30bfab20451e15fe799642b52166db8c34 (patch)
tree36721e093b46c5bb3a3426592fcfc2ab3dfadfa7 /src/backend/commands/explain.c
parentc81c956477c270c4dd816c2f659743ebcae02b77 (diff)
downloadpostgresql-414bef30bfab20451e15fe799642b52166db8c34.tar.gz
postgresql-414bef30bfab20451e15fe799642b52166db8c34.zip
Improve handling of out-of-memory in libpq.
If an allocation fails in the main message handling loop, pqParseInput3 or pqParseInput2, it should not be treated as "not enough data available yet". Otherwise libpq will wait indefinitely for more data to arrive from the server, and gets stuck forever. This isn't a complete fix - getParamDescriptions and getCopyStart still have the same issue, but it's a step in the right direction. Michael Paquier and me. Backpatch to all supported versions.
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions