row locking question - Mailing list pgsql-general

From Darren Govoni
Subject row locking question
Date
Msg-id 1226968175.27571.45.camel@nuraku
Whole thread Raw
Responses Re: row locking question
List pgsql-general
Hi,
  I have experimented with PostgreSQL's table locking and FOR UPDATE
capabilities. But what I'm looking for is a row level lock specific to
only a set of rows, not the entire table.

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.

Does PostgreSQL have a mechanism for this?

thank you.
Darren


pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Res: Res: Archive files growth!!!
Next
From: Tom Lane
Date:
Subject: Re: row locking question