postgresql/contrib/dblink
Joe Conway 9b8507bfae 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:47:25 -08:00
..
expected Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:46 -05:00
input Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:41 -04:00
output Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:41 -04:00
sql Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:46 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
dblink--1.0--1.1.sql Backpatch: Fix typo in update scripts for some contrib modules. 2014-08-25 18:30:46 +02:00
dblink--1.1.sql Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -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:46 +02:00
dblink.c Make dblink try harder to form useful error messages 2016-12-22 09:47:25 -08:00
dblink.control Create an improved FDW option validator function for contrib/dblink. 2012-10-10 16:53:08 -04:00
dblink.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Lock down regression testing temporary clusters on Windows. 2014-12-17 22:48:46 -05:00
pg_service.conf Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:41 -04:00