SPI_exec() + PG_TRY/PG_CATCH - Mailing list pgsql-general

From Aleksandrs Vinogradovs
Subject SPI_exec() + PG_TRY/PG_CATCH
Date
Msg-id 1192557036.1484.4.camel@localhost
Whole thread Raw
Responses Re: SPI_exec() + PG_TRY/PG_CATCH  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general

Guys,


So I haven't got my question answered, thus trying it again ;)

How do I handle SPI errors properly without rethrowing them or
using subtransactions ? My current code works (simple PG_CATCH()
with resseting of error state), but reports reference leaks for
every failed SPI_exec() call...

Thanks!


Best regards,
Alex Vinogradovs

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Updating a production database schema from dev server
Next
From: Richard Huxton
Date:
Subject: Re: move databases files location