Re: [HACKERS] please? (non blocking lock) - Mailing list pgsql-hackers

From ZEUGSWETTER Andreas IZ5
Subject Re: [HACKERS] please? (non blocking lock)
Date
Msg-id 219F68D65015D011A8E000006F8590C60267B383@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
Responses Re: [HACKERS] please? (non blocking lock)
List pgsql-hackers
> I don't know of any SQL databases that allow non-blocking lock requests.
> 
Informix has all kinds of non blocking locks:return "record locked" at oncereturn "record locked" after a specified
timeoutwaitfor the lock indefinitely
 

To supply this behavior it has the following statements:set lock mode to not wait;    -- return immediately with error
              -- if record already lockedset lock mode to wait 10;      -- wait at max 10 secondsset lock mode to wait;
      -- wait indefinitely
 

Dirty read isolation has actually nothing to do with the wanted feature.

Andreas


pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Open 6.5 items
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] please?