Re: [HACKERS] Reporting the bind-parameter on an error

2008-08-15 Thread Tom Lane
"Fujii Masao" <[EMAIL PROTECTED]> 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 m

[HACKERS] Reporting the bind-parameter on an error

2008-08-15 Thread Fujii Masao
Hi, Currently, the SQL statement that causes an error condition is reported in the server log. On the other hand, the bind-parameter is not reported as following. > FATAL: terminating connection due to administrator command > STATEMENT: UPDATE tbl SET name = $1 WHERE id = $2 > LOG: shutting do