"Fujii Masao" <masao.fujii@gmail.com> writes:
> The bind-parameter is useful information for debugging. So, I made
> the small patch which reports the bind-parameter together with
> the SQL statement on an error.
You can't invoke user-defined I/O functions in an already-failed
transaction. For that matter, you shouldn't really even try to do the
catalog lookups involved in identifying them.
regards, tom lane