Re: choosing the right locking mode - Mailing list pgsql-general

From Scott Marlowe
Subject Re: choosing the right locking mode
Date
Msg-id dcc563d10804031059v5caa91f1rf3aaad046600b929@mail.gmail.com
Whole thread Raw
In response to Re: choosing the right locking mode  (Craig Ringer <craig@postnewspapers.com.au>)
Responses Re: choosing the right locking mode  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
On Thu, Apr 3, 2008 at 11:45 AM, Craig Ringer
<craig@postnewspapers.com.au> wrote:
> rihad wrote:
>  > Given this type query:
>  >
>  >         UPDATE bw_pool
>  >         SET user_id=?
>  >         WHERE bw_id=
>  >                 (SELECT MIN(bw_id) FROM bw_pool WHERE user_id IS NULL)
>  >         RETURNING bw_id
>
>  Can you use a SERIALIZABLE transaction and avoid the explicit lock?

I'm pretty sure serializable won't fix this.

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: choosing the right locking mode
Next
From: rihad
Date:
Subject: Re: deadlock