Lists: | pgsql-hackers |
---|
From: | "Antoine Lobato" <Antoine(dot)Lobato(at)wanadoo(dot)fr> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Implicit Lock Row |
Date: | 2002-10-05 21:56:37 |
Message-ID: | 000a01c26cba08a480$deb8243e@Wantoine |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
I currently develop an interface to simulate a indexed sequential file management with PostgreSql. I must reproduce the same philosophy used of control of locking of the records.
I seek a solution to lock and unlock implicitly a row of a table. The locking of several rows, of the same table or various tables, can last a long time and consequently locking cannot be included in a transaction for not to lock the whole table for the other users.
There is a viable solution with PostgreSql?
There is an accessible basic structure of locking?
Thank you.
From: | "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Implicit Lock Row |
Date: | 2002-10-07 13:46:00 |
Message-ID: | 3DA1DD70.26665.106230D4@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 5 Oct 2002 at 23:56, Antoine Lobato wrote:
>
> I currently develop an interface to simulate a indexed sequential file
> management with PostgreSql. I must reproduce the same philosophy used of
> control of locking of the records.
> I seek a solution to lock and unlock implicitly a row of a table. The locking
> of several rows, of the same table or various tables, can last a long time and
> consequently locking cannot be included in a transaction for not to lock the
> whole table for the other users.
> There is a viable solution with PostgreSql?
> There is an accessible basic structure of locking?
You can use select for update to lock rows.
HTH
Bye
Shridhar
--
Strategy: A long-range plan whose merit cannot be evaluated until sometime
after those creating it have left the organization.