row locking question

From: Darren Govoni <darren(at)ontrenet(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: row locking question
Date: 2008-11-18 00:29:35
Message-ID: 1226968175.27571.45.camel@nuraku
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-11-18 00:37:24 Re: row locking question
Previous Message Craig Ringer 2008-11-18 00:27:27 Re: Res: Res: Archive files growth!!!