Re: [GENERAL] PG_TRY(), PG_CATCH()....

2007-10-09 Thread Alex Vinogradovs
No, I'm not worried about them failing. My code isn't transactional... I'm just worried about getting whole bunch of warnings about reference leaks. On Tue, 2007-10-09 at 09:59 -0400, Alvaro Herrera wrote: > The only code that knows how to cleanup completely after transaction > failure is the su

Re: [GENERAL] PG_TRY(), PG_CATCH()....

2007-10-09 Thread Alvaro Herrera
Alex Vinogradovs wrote: > Which works fine with successful queries, but for each > unsuccessful query it complains about reference leaks > and not properly closed relations. > Later on I've solved that with use of subtransactions, which > provide some proper cleanup mechanisms, but I was wonderin