When an ERROR happens on a dblink remote connection, take

Joe Conway <mail@joeconway.com>

Commit: c0241b9573b606afd6c829c1f43be6fcdafbe36d
Author: Joe Conway <mail@joeconway.com>
Date: 2008-07-03T03:56:57Z
Releases: 8.4.0
When an ERROR happens on a dblink remote connection, take
pains to pass the ERROR message components locally, including
using the passed SQLSTATE. Also wrap the passed info in an
appropriate CONTEXT message. Addresses complaint by Henry
Combrinck. Joe Conway, with much good advice from Tom Lane.

Files

PathChange+/−
contrib/dblink/dblink.c modified +71 −58
contrib/dblink/expected/dblink.out modified +24 −36