Lock record

From: "Andrea Aime" <aaime(at)comune(dot)modena(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Lock record
Date: 2000-06-14 13:00:54
Message-ID: 39478206.BAA7185A@comune.modena.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi people. I'm writing a client application in Visual Basic,
and I need to lock certain records (a read lock) for
a long period of time (well, from the start just to
the stop of my application) so that no one can modify
them. I've seen a lock command, but it seem only capable
to lock an entire table. I'm using ADO, and it seem possible
to lock a record by opening a recordset on it (with a
proper query) and keeping that recordset open (I think
that it's the cursor that keeps the lock on the db).
Anyone knows a different/better method?
Thanks
Andrea

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Peterson 2000-06-14 13:37:02 Re: Timestamp and compatiblity with MySQL
Previous Message Len Morgan 2000-06-14 12:09:38 Re: Help: How to store query output in a file !!!