locking/concurrency question.

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема locking/concurrency question.
Дата
Msg-id 20010525025623.A26048@lerami.lerctr.org
обсуждение исходный текст
Список 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@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


В списке pgsql-sql по дате отправления:

Предыдущее
От: Keith Gray
Дата:
Сообщение: Re: where's ALTER TABLE table DROP [ COLUMN ] column???
Следующее
От: "Mourad EL HADJ MIMOUNE"
Дата:
Сообщение: INSERT value of type table