Re: FOREIGN KEY and AccessExclusiveLock

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

> Achilleus Mantzios <achill@matrix.gatewaynet.com> writes:
> > Whats the purpose of the AccessExclusiveLock on parent table?
> 
> We're adding a trigger to it.

From the docs:

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.

Now is the lock in question created explicitly with LOCK TABLE?
Since the docs dont say a thing about triggers acquiring locks.



> 
>             regards, tom lane
> 

-- 
-Achilleus



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CHECK col A not NULL if col B='x'
Следующее
От: Marco Gaiarin
Дата:
Сообщение: Re: Porting problem from Informix to Postgres...