Re: Can pessimistic locking be emulated? - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: Can pessimistic locking be emulated?
Date
Msg-id 1046376469.91396.84.camel@jester
Whole thread Raw
In response to Re: Can pessimistic locking be emulated?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, 2003-02-27 at 15:02, Tom Lane wrote:
> Rod Taylor <rbt@rbt.ca> writes:
> > Agreed -- but they're stored on the row themselves.  You might be able
> > to write a function which executes dirty reads on the table and tells
> > you if the row is locked or not, but it's not going to be simple.
>
> Actually, I don't think you need a dirty read at all.  A locked row

I see.  That will make it quite a bit easier then.  Perhaps I'll write a
function sometime.  It would make it useful for fetching things out of a
persistent work queue.  Right now I deal with userlocks -- but those can
be clumsy.

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Can pessimistic locking be emulated?
Next
From: Tom Lane
Date:
Subject: Re: analyze after a database restore?