Re: [HACKERS] FOR SHARE LOCK clause ?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] FOR SHARE LOCK clause ?
Дата
Msg-id 199901060743.CAA28893@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] FOR SHARE LOCK clause ?  (Clark Evans <clark.evans@manhattanproject.com>)
Список pgsql-hackers
> In any case, I'm not really sure what this locking
> in share mode would get you... could you explain
> in the context of the above examples.

I will take a stab at it.

Locking in shared mode would cause any row read by the SELECT to be
remain unmodified until its transaction completes.  Other SELECTs can
read it, but writer have to wait and can not modify it.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Michael Contzen
Дата:
Сообщение: PL/PGSQL bug when using aggregates (repost)
Следующее
От: "Billy G. Allie"
Дата:
Сообщение: Re: Stale porting list?