Re: INSERT/UPDATEs cycles and lack of phantom locking

Поиск
Список
Период
Сортировка
Искать
От
Florian Weimer
Тема
Re: INSERT/UPDATEs cycles and lack of phantom locking
Дата
Msg-id
823bcw20mz.fsf@mid.bfk.de
Ответ на
Список
Дерево обсуждения
INSERT/UPDATEs cycles and lack of phantom locking Florian Weimer <fweimer@bfk.de>
Re: INSERT/UPDATEs cycles and lack of phantom locking Tom Lane <tgl@sss.pgh.pa.us>
Re: INSERT/UPDATEs cycles and lack of phantom locking Florian Weimer <fweimer@bfk.de>
Re: INSERT/UPDATEs cycles and lack of phantom locking Florian Weimer <fweimer@bfk.de>
* Florian Weimer:

> In addition, it occurred to me that I get the INSERT failure only if
> there is a suitable PRIMARY KEY/UNIQUE constraint on the table.  I
> haven't got that in all cases, so I need that advisory locking anyway,

It seems that LOCK TABLE ... IN EXCLUSIVE MODE does exactly what I
need: it locks out itself (and write access), but not read access to
the table.  And deadlocks are detected as well.  Yay!

-- 
Florian Weimer                
BFK edv-consulting GmbH       http://www.bfk.de/
Durlacher Allee 47            tel: +49-721-96201-1
D-76131 Karlsruhe             fax: +49-721-96201-99

В списке pgsql-sql по дате отправления
От: Ross Johnson
Дата:
От: John Tregea
Дата:
Сообщение: Re: Storing encrypted data?
FAQ