From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org> |
Subject: | locking/concurrency question. |
Date: | 2001-05-25 07:56:23 |
Message-ID: | 20010525025623.A26048@lerami.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
I have an app that does essentially the following query:
SELECT host(netblock),masklen(netblock),netblock,netmask(netblock)
FROM networks
WHERE status=get_status_code('available') AND parent_asn=4278
AND masklen(netblock)=xx -- where xx is a legit mask size
FOR UPDATE
LIMIT 1;
inside a BEGIN TRANSACTION block.
My question is:
if a 2nd copy of this query runs with the same size, will it skip the
locked row, or wait for commit?
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Mourad EL HADJ MIMOUNE | 2001-05-25 08:29:28 | INSERT value of type table |
Previous Message | Keith Gray | 2001-05-25 06:30:17 | Re: where's ALTER TABLE table DROP [ COLUMN ] column??? |