summaryrefslogtreecommitdiff
path: root/src/backend/executor/functions.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:22 +0300
commitfcdac561405e14e1ce9f8c07a53e7d4983afa7a0 (patch)
treeba88c63b1c8afc0b1f1ba08ac6717807e4b4f1d8 /src/backend/executor/functions.c
parent880365a3c56866119e89a530c68b94a5d99d5846 (diff)
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/executor/functions.c')
0 files changed, 0 insertions, 0 deletions