I wrote:
> We have a report in pgsql-general of a dblink query failing with
> ERROR: unknown error
Er, fingers faster than brain this morning. Actually that report is in
pgsql-bugs, specifically bug #14471:
https://www.postgresql.org/message-id/20161221094443.25614.47807%40wrigleys.postgresql.org
regards, tom lane