Re: locks in CREATE TRIGGER, ADD FK

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: locks in CREATE TRIGGER, ADD FK
Дата
Msg-id 423FB6C3.8010107@samurai.com
обсуждение исходный текст
Ответ на locks in CREATE TRIGGER, ADD FK  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers
Neil Conway wrote:
> AndrewSN pointed out on IRC that ALTER TABLE ... ADD FOREIGN KEY and 
> CREATE TRIGGER both acquire AccessExclusiveLocks on the table they are 
> adding triggers to (the PK table, in the case of ALTER TABLE). Is this 
> necessary? I don't see why we can't allow SELECT queries on the table to 
> proceed while the trigger is being added.

Sorry, I forgot to mention: I think RowExclusiveLock or ExclusiveLock 
would be sufficient instead.

-Neil


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: locks in CREATE TRIGGER, ADD FK
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Proposal: OUT parameters for plpgsql