Alternative to nested transactions

From: João Alfredo <joaoalf(at)dotx(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Alternative to nested transactions
Date: 2003-01-14 11:10:41
Message-ID: 1042542641.1024.13.camel@wakko.dotx.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)dotx(dot)com(dot)br>
dotX Consultoria Serviços e Conectividade

Browse pgsql-general by date

  From Date Subject
Next Message pascal bérest 2003-01-14 11:19:39 time to restore a database
Previous Message Conxita Marín 2003-01-14 10:37:26 how to check if a temp table exists?