RE: User locks code - Mailing list pgsql-hackers

From Lincoln Yeoh
Subject RE: User locks code
Date
Msg-id 3.0.5.32.20010820235203.01706320@192.228.128.13
Whole thread Raw
In response to RE: User locks code  ("Vadim Mikheev" <vmikheev@sectorbase.com>)
List pgsql-hackers
At 11:20 AM 8/19/01 -0700, Vadim Mikheev wrote:
>Well, ability to lock only unlocked rows in select for update is useful,
>of course. But uniq features of user'locks are:
>
>1. They don't interfere with normal locks hold by session/transaction.
>2. Share lock is available.
>3. User can lock *and unlock objects* inside transaction, which is not
>    (and will not be) available with locks held by transactions.

Would your suggested implementation allow locking on an arbitrary string?

If it does then one of the things I'd use it for is to insert unique data
without having to lock the table or rollback on failed insert (unique index
still kept as a guarantee).

Cheerio,
Link.






pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Re: CREATEDB Where ??
Next
From: Justin Clift
Date:
Subject: Idea: Worthwhile creating a wrapper script to automate pg_hba.conf entries?