Re: FOREIGN KEY and AccessExclusiveLock

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: FOREIGN KEY and AccessExclusiveLock
Дата
Msg-id Pine.LNX.4.44.0409301350470.3316-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на Re: FOREIGN KEY and AccessExclusiveLock  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-sql
O Achilleus Mantzios έγραψε στις Sep 29, 2004 :

> 
> Hmm, (something went wrong with some mailer)

And again....
hope it gets right this time...
> 
> Tom Lane wrote:
> > We're adding a trigger to it.
> 

From the docs:

============================================================================
ACCESS EXCLUSIVEConflicts with locks of all modes (ACCESS SHARE, ROW SHARE, ROW EXCLUSIVE, SHARE UPDATE EXCLUSIVE,
SHARE,SHARE ROW EXCLUSIVE, EXCLUSIVE, and ACCESS EXCLUSIVE). This mode guarantees that the holder is the only
transactionaccessing the table in any way. Acquired by the ALTER TABLE, DROP TABLE, REINDEX, CLUSTER, and VACUUM FULL
commands.This is also the default lock mode for LOCK TABLE statements that do not specify a mode explicitly. Tip: Only
anACCESS EXCLUSIVE lock blocks a SELECT (without FOR UPDATE) statement.
============================================================================Now,is the lock acquired for the CREATE
TRIGGERan explicitLOCK TABLE?Because nothing is mentioned about triggers in
http://www.postgresql.org/docs/7.4/interactive/explicit-locking.html

-- 
-Achilleus



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

Предыдущее
От: van Elsacker Frans
Дата:
Сообщение: multiple insert
Следующее
От: Jeff Boes
Дата:
Сообщение: Re: psql variable interpolation from command line