Re: [HACKERS] no error context for index updates?

2012-01-31 Thread Tom Lane
Peter Eisentraut writes: > Any ideas whether we could make this happen? Presumably you could do it by setting up an error context stack entry within FormIndexDatum. I'd want to be convinced that there was no performance hit, but if you were to do it only in the expression-column code path that w

[HACKERS] no error context for index updates?

2012-01-31 Thread Peter Eisentraut
Attached is a test case reduced from a real application. There is a table with an index on a function written in PL/Python. There is a second PL/Python function that executes an INSERT into the table, causing an index update. If the function used by the index fails, we get an error message with