aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorJoe Conway <mail@joeconway.com>2016-12-21 15:47:54 -0800
committerJoe Conway <mail@joeconway.com>2016-12-21 15:51:31 -0800
commitea0aa9698cfa74bb04cf53d813924fe67f278c30 (patch)
tree337b2b813c55369580bddcba4d66cae3f316206b /src/backend/parser/parse_utilcmd.c
parenta8ae12322ae056ebbe9d83cf16b4c92e86a6ac28 (diff)
downloadpostgresql-ea0aa9698cfa74bb04cf53d813924fe67f278c30.tar.gz
postgresql-ea0aa9698cfa74bb04cf53d813924fe67f278c30.zip
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
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions