row-level locking - Mailing list pgsql-odbc

From Markus Wagner
Subject row-level locking
Date
Msg-id 200304011336.41155.wagner@imbei.uni-mainz.de
Whole thread Raw
Responses Re: [GENERAL] row-level locking  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-odbc
Hi,

we need to prevent write access for a single row of a table for a short time.

We found a short description for the "SELECT FOR UPDATE" statement:
"perform exclusive locking of selected rows"

Now my question: Is this a good method for our purpose?

Assuming that we lock our row with
"SELECT FOR UPDATE FROM <table> WHERE <our condition>",
how can we unlock it later?

Do we have to put the whole thing in a transaction (which may be tricky from
within a VB-Application...)?

Thanks a lot,
Markus


pgsql-odbc by date:

Previous
From: "lists"
Date:
Subject: problem with add
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: [GENERAL] row-level locking