forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitea0aa96
committed
Improve dblink error message when remote does not provide it
When dblink or postgres_fdw detects an error on the remote side of theconnection, it will try to construct a local error message as best itcan using libpq's PQresultErrorField(). When no primary message isavailable, it was bailing out with an unhelpful "unknown error". Makethat message better and more style guide compliant. Per discussionon 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.us1 parenta8ae123 commitea0aa96
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2705 | 2705 |
| |
2706 | 2706 |
| |
2707 | 2707 |
| |
2708 |
| - | |
| 2708 | + | |
2709 | 2709 |
| |
2710 | 2710 |
| |
2711 | 2711 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
571 |
| - | |
| 571 | + | |
572 | 572 |
| |
573 | 573 |
| |
574 | 574 |
| |
|
0 commit comments
Comments
(0)