aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/complex.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:45:28 +0300
commitdcbaf4b373b46f696ca58f39a99b07c0a6782d07 (patch)
tree9f13678e8a441e6bc6e8653837c1b56feb5c1f35 /src/tutorial/complex.c
parent3b7cf436784f568fa37d40c51134aaea127c10be (diff)
downloadpostgresql-dcbaf4b373b46f696ca58f39a99b07c0a6782d07.tar.gz
postgresql-dcbaf4b373b46f696ca58f39a99b07c0a6782d07.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/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions