Alternative to nested transactions - Mailing list pgsql-general

From João Alfredo
Subject Alternative to nested transactions
Date
Msg-id 1042542641.1024.13.camel@wakko.dotx.com.br
Whole thread Raw
List pgsql-general
Hello all,

I'm trying to port a program from MS SQL Server which does the
following:

declare a cursor with a query for possibly update;
fetch and lock rows one by one;
release the lock in case where no update is necessary;

But, to release the lock I need to commit the transaction and if I
commit the transaction I lost the cursor.

How can I simulate nested transactions??
Or how can I simulate persistent cursors??

Any ideias??

Thanks in advance.

--
João Alfredo <joaoalf@dotx.com.br>
dotX Consultoria Serviços e Conectividade


pgsql-general by date:

Previous
From: Marcelo Pereira
Date:
Subject: JDBC
Next
From: Justin Clift
Date:
Subject: Re: PostgreSQL on Windows