Re: Recovering from an exception

From: "Marko Tiikkaja" <pgmail(at)joh(dot)to>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Recovering from an exception
Date: 2013-01-02 01:17:57
Message-ID: op.wp9e77u4ye4vw9@blue.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 02 Jan 2013 01:16:11 +0100, I wrote:
> I'm puzzled as to why AtEOSubXact_SPI() needs to unconditionally clear
> the surround SPI context, or why it assumes it's a good idea.

I managed to fix this by creating my own SPI context outside the
subtransaction for AtEOSubXact_SPI() to destroy, and everything appears to
be working correctly.

Regards,
Marko Tiikkaja

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ali Pouya 2013-01-02 12:49:09 Using the NEW record in an EXECUTE command in a PL/pgSQL trigger function
Previous Message Marko Tiikkaja 2013-01-02 00:16:11 Re: Recovering from an exception