Re: CREATE OR REPLACE TRIGGER not supported?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: CREATE OR REPLACE TRIGGER not supported?
Дата
Msg-id 4144F888.6080403@familyhealth.com.au
обсуждение исходный текст
Ответ на CREATE OR REPLACE TRIGGER not supported?  (Satoshi Nagayasu <nagayasus@nttdata.co.jp>)
Ответы Re: CREATE OR REPLACE TRIGGER not supported?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> A few days ago, I found that "CREATE OR REPLACE TRIGGER"
> is not allowed on 7.4.2.  However, functions and rules allow
> "CREATE OR REPLACE" statement.
> 
> Is threre any reason not to support "CREATE OR REPLACE"
> only for triggers?

Because the oid of a trigger doesn't matter.  You can go being; drop 
trigger; create trigger; commit; atomically.

Chris



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

Предыдущее
От: John Hansen
Дата:
Сообщение: Re: CREATE OR REPLACE TRIGGER not supported?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CREATE OR REPLACE TRIGGER not supported?