postgresql/contrib/dblink
Joe Conway ea0aa9698c Improve dblink error message when remote does not provide it
When dblink or postgres_fdw detects an error on the remote side of the
connection, it will try to construct a local error message as best it
can using libpq's PQresultErrorField(). When no primary message is
available, it was bailing out with an unhelpful "unknown error". Make
that message better and more style guide compliant. Per discussion
on hackers.

Backpatch to 9.2 except postgres_fdw which didn't exist before 9.3.

Discussion: https://postgr.es/m/19872.1482338965%40sss.pgh.pa.us
2016-12-21 15:51:31 -08:00
..
expected Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
input Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:03 -04:00
output Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:03 -04:00
sql Establish conventions about global object names used in regression tests. 2016-07-17 18:42:43 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Update dblink extension for parallel query. 2016-06-17 15:18:44 -04:00
dblink--1.0--1.1.sql Fix typo in update scripts for some contrib modules. 2013-07-19 04:13:01 +09:00
dblink--1.1--1.2.sql Fix parallel-safety markings for contrib/dblink. 2016-06-17 23:08:21 -04:00
dblink--1.2.sql Fix parallel-safety markings for contrib/dblink. 2016-06-17 23:08:21 -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:37 +02:00
dblink.c Improve dblink error message when remote does not provide it 2016-12-21 15:51:31 -08:00
dblink.control Update dblink extension for parallel query. 2016-06-17 15:18:44 -04:00
dblink.h Remove unnecessary prototypes 2016-09-30 14:04:16 -04:00
pg_service.conf Diagnose incompatible OpenLDAP versions during build and test. 2014-07-22 11:01:03 -04:00