diff options
| author | Joe Conway | 2016-12-22 17:47:36 +0000 |
|---|---|---|
| committer | Joe Conway | 2016-12-22 17:47:36 +0000 |
| commit | 76943f54a743e3d7875a6772fec89bb57a8f2118 (patch) | |
| tree | 43125b110328ad1ee1793e501bf8b3238931abf6 /doc/src | |
| parent | cb687e0acfdfa3699e4b19b597aba37f686b9f16 (diff) | |
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
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions
