When an ERROR happens on a dblink remote connection, take
authorJoe Conway <mail@joeconway.com>
Thu, 3 Jul 2008 03:56:57 +0000 (03:56 +0000)
committerJoe Conway <mail@joeconway.com>
Thu, 3 Jul 2008 03:56:57 +0000 (03:56 +0000)
commitb4bfe2c4a0f5fc28110acacf4160280776298c2b
treefa7928077c36ec4fe543701ed55dc36d4e811508
parent410fc33ba59ca7a8e5cdd1d700263781be966897
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.
contrib/dblink/dblink.c
contrib/dblink/expected/dblink.out