Re: Reporting the bind-parameter on an error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Fujii Masao" <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Reporting the bind-parameter on an error
Date: 2008-08-15 14:23:16
Message-ID: 20941.1218810196@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Fujii Masao" <masao(dot)fujii(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-08-15 14:25:36 Re: migrate data 6.5.3 -> 8.3.1
Previous Message Andrew Dunstan 2008-08-15 14:22:29 Re: So what about XSLT?