Re: Change lock requirements for adding a trigger

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Change lock requirements for adding a trigger
Дата
Msg-id 1212159094.4120.114.camel@ebony.site
обсуждение исходный текст
Ответ на Change lock requirements for adding a trigger  (Decibel! <decibel@decibel.org>)
Ответы Re: Change lock requirements for adding a trigger  (Decibel! <decibel@decibel.org>)
Список pgsql-hackers
On Thu, 2008-05-29 at 19:18 -0500, Decibel! wrote:

> Is there a reason that we can't add a trigger to a table while a  
> select is running? This is a serious pain when trying to setup  
> londiste or slony.

This is constrained by locking.

There are a subset of DDL commands that might be able to be performed
with just an ExclusiveLock or ShareLock rather than an
AccessExclusiveLock. Nobody has studied which sub-statements this might
apply to, but its do-able since CREATE INDEX already does this.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sugestion: xpath
Следующее
От: Robert Hodges
Дата:
Сообщение: Re: Core team statement on replication in PostgreSQL