Re: this is in plain text (row level locks) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: this is in plain text (row level locks)
Date
Msg-id 15638.1059024489@sss.pgh.pa.us
Whole thread Raw
In response to Re: this is in plain text (row level locks)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: this is in plain text (row level locks)  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I suppose we could allow one backend to mark the page with a shared lock
> for primary key purposes while others read it.  Does that buy us
> anything?

That doesn't work, unless you insist that the first backend can't exit
its transaction until all the other ones are done.  Which introduces its
own possibilities for deadlock --- but even worse, how does the first
backend *know* that the other ones are done?  You're right back where
you started: it has to be possible to tell which backends have
share-locked a particular row.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: this is in plain text (row level locks)
Next
From: "Shridhar Daithankar"
Date:
Subject: Re: