postgres/contrib/postgres_fdw
Joe Conway 28c9b6be7f 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:57 -08:00
..
expected postgres_fdw: Avoid possible misbehavior when RETURNING tableoid column only. 2016-02-04 22:27:38 -05:00
sql postgres_fdw: Avoid possible misbehavior when RETURNING tableoid column only. 2016-02-04 22:27:38 -05:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c Improve dblink error message when remote does not provide it 2016-12-21 15:51:57 -08:00
deparse.c Fix assorted fallout from IS [NOT] NULL patch. 2016-07-28 16:09:15 -04:00
Makefile Fix SHLIB_PREREQS use in contrib, allowing PGXS builds 2014-12-04 07:58:12 -05:00
option.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Add a comment noting that FDWs don't have to implement EXCEPT or LIMIT TO. 2015-12-31 17:59:16 -05:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE. 2015-05-08 05:43:10 +02:00