Re: [HACKERS] Savepoints and SPI

2005-03-17 Thread Thomas Hallgren
Alvaro Herrera wrote: On Wed, Mar 16, 2005 at 07:35:57PM +0100, Thomas Hallgren wrote: I have some test code that utilize SPI and does the following: 1. SPI_connect 2. set a savepoint (using BeginInternalSubTransaction) 3. execute a statement that contains a syntax error (within PG_TRY/PG_CATCH)

Re: [HACKERS] Savepoints and SPI

2005-03-16 Thread Alvaro Herrera
On Wed, Mar 16, 2005 at 07:35:57PM +0100, Thomas Hallgren wrote: > I have some test code that utilize SPI and does the following: > > 1. SPI_connect > 2. set a savepoint (using BeginInternalSubTransaction) > 3. execute a statement that contains a syntax error (within PG_TRY/PG_CATCH) > 4. rollback

[HACKERS] Savepoints and SPI

2005-03-16 Thread Thomas Hallgren
I have some test code that utilize SPI and does the following: 1. SPI_connect 2. set a savepoint (using BeginInternalSubTransaction) 3. execute a statement that contains a syntax error (within PG_TRY/PG_CATCH) 4. rollback to the savepoint (RollbackAndReleaseCurrentSubTransaction) 5. execute some ot