https://github.com/postgres/postgres
Revision 76943f54a743e3d7875a6772fec89bb57a8f2118 authored by Joe Conway on 22 December 2016, 17:47:36 UTC, committed by Joe Conway on 22 December 2016, 17:47:36 UTC
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
1 parent cb687e0
History
Tip revision: 76943f54a743e3d7875a6772fec89bb57a8f2118 authored by Joe Conway on 22 December 2016, 17:47:36 UTC
Make dblink try harder to form useful error messages
Tip revision: 76943f5
File Mode Size
config
contrib
doc
src
.dir-locals.el -rw-r--r-- 700 bytes
.gitattributes -rw-r--r-- 1.7 KB
.gitignore -rw-r--r-- 394 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.5 KB
HISTORY -rw-r--r-- 283 bytes
Makefile -rw-r--r-- 1.5 KB
README -rw-r--r-- 1.2 KB
README.git -rw-r--r-- 727 bytes
aclocal.m4 -rw-r--r-- 385 bytes
configure -rwxr-xr-x 438.1 KB
configure.in -rw-r--r-- 67.5 KB

README

back to top