diff options
author | Joe Conway <mail@joeconway.com> | 2016-12-22 09:47:55 -0800 |
---|---|---|
committer | Joe Conway <mail@joeconway.com> | 2016-12-22 09:47:55 -0800 |
commit | 51126ccdb1ce720b674405e11bcb5e7b8fa902fb (patch) | |
tree | 6bce268ffa8a9bc0002f93218f293723c3ee5ae4 /src/backend/executor/nodeBitmapOr.c | |
parent | 150841fb94f651a8e452d7a452c3225c2dafdf16 (diff) | |
download | postgresql-51126ccdb1ce720b674405e11bcb5e7b8fa902fb.tar.gz postgresql-51126ccdb1ce720b674405e11bcb5e7b8fa902fb.zip |
Make dblink try harder to form useful error messages
When libpq encounters a connection-level error, e.g. runs out of memory
while forming a result, there will be no error associated with PGresult,
but a message will be placed into PGconn's error buffer. postgres_fdw
takes care to use the PGconn error message when PGresult does not have
one, but dblink has been negligent in that regard. Modify dblink to mirror
what postgres_fdw has been doing.
Back-patch to all supported branches.
Author: Joe Conway
Reviewed-By: Tom Lane
Discussion: https://postgr.es/m/02fa2d90-2efd-00bc-fefc-c23c00eb671e%40joeconway.com
Diffstat (limited to 'src/backend/executor/nodeBitmapOr.c')
0 files changed, 0 insertions, 0 deletions