aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-12-14 18:19:10 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-12-14 18:19:10 +0200
commit7b96bf445a42b1cb2a435854f9825c38253f79a2 (patch)
tree0b1e3fd14f085d51b89da94f600ffc3ae3410d61 /src/backend/parser/parse_utilcmd.c
parentcca705a5d93446e1a9c775b94c7d5900986c0488 (diff)
downloadpostgresql-7b96bf445a42b1cb2a435854f9825c38253f79a2.tar.gz
postgresql-7b96bf445a42b1cb2a435854f9825c38253f79a2.zip
Fix out-of-memory error handling in ParameterDescription message processing.
If libpq ran out of memory while constructing the result set, it would hang, waiting for more data from the server, which might never arrive. To fix, distinguish between out-of-memory error and not-enough-data cases, and give a proper error message back to the client on OOM. There are still similar issues in handling COPY start messages, but let's handle that as a separate patch. Michael Paquier, Amit Kapila and me. Backpatch to all supported versions.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions