aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/command.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:17 +0300
commit992c6f0d2ca839ba54279fbc1a5d5e01e2e18f58 (patch)
tree91b44b8ac25ffa01a6f71cff7310ff1d1f0867e6 /src/bin/psql/command.c
parent4dac5651b15ded7ce3b730aec936bec957b2c86a (diff)
downloadpostgresql-992c6f0d2ca839ba54279fbc1a5d5e01e2e18f58.tar.gz
postgresql-992c6f0d2ca839ba54279fbc1a5d5e01e2e18f58.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/bin/psql/command.c')
0 files changed, 0 insertions, 0 deletions