Re: Shared row locking - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Shared row locking
Date
Msg-id 41C23FD6.2030405@familyhealth.com.au
Whole thread Raw
In response to Shared row locking  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
> The SQL spec does not say anything on this respect (that I can find).
> It only talks of "FOR UPDATE" and "FOR READ ONLY".  However, because the
> FK code uses SPI to do the locking, we definitely have to expose the
> funcionality through SQL.  So I think we need a new clause, which I
> propose to be "FOR SHARE".

MySQL uses LOCK IN SHARE MODE:

http://dev.mysql.com/doc/mysql/en/InnoDB_locking_reads.html


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Shared row locking
Next
From: Tom Lane
Date:
Subject: Re: [INTERFACES] PL/Python: How do I use result methods?