Re: row locking question - Mailing list pgsql-general

From Tom Lane
Subject Re: row locking question
Date
Msg-id 9449.1226968644@sss.pgh.pa.us
Whole thread Raw
In response to row locking question  (Darren Govoni <darren@ontrenet.com>)
Responses Re: row locking question  (Darren Govoni <darren@ontrenet.com>)
List pgsql-general
Darren Govoni <darren@ontrenet.com> writes:
> For example, there is a table with many rows. Threads are doing
> "SELECTS" to read some rows. They should be allowed to get results on
> rows that are not currently locked by another thread's SELECT,FOR UPDATE
> or equivalent read lock for those rows only.

Make those threads use SELECT FOR SHARE.

            regards, tom lane

pgsql-general by date:

Previous
From: Darren Govoni
Date:
Subject: row locking question
Next
From: "Hiroshi Saito"
Date:
Subject: Re: Trying Compile libpq.dll with VC++ 9.0, but need help