postgresql/contrib/dblink
Joe Conway 44de099f89 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
2016-12-22 09:46:46 -08:00
..
expected Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:47 -05:00
input Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:51 -04:00
output Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:51 -04:00
sql Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:47 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
dblink--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
dblink--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:48 +02:00
dblink.c Make dblink try harder to form useful error messages 2016-12-22 09:46:46 -08:00
dblink.control Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
dblink.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Makefile Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:47 -05:00
pg_service.conf Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:51 -04:00