"Worky Workerson" <worky(dot)workerson(at)gmail(dot)com> writes:
> This is probably a really basic question, but how do I trap when
> spi_query_exec returns an error in PL/Perl?
I think you don't, without using plperlu :-(. Unless perhaps recent
Perls have added an error trapping construct that's separate from eval?
regards, tom lane