Re: Is drop/restore trigger transactional?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Is drop/restore trigger transactional?
Дата
Msg-id 5021B2CE.9040706@ringerc.id.au
обсуждение исходный текст
Ответ на Re: Is drop/restore trigger transactional?  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Is drop/restore trigger transactional?  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-performance
On 08/08/2012 04:15 AM, Merlin Moncure wrote:
> IF current_user = 'bulk_writer' THEN
>    return new;
> END IF;
> <expensive stuff>
... or re-create the trigger with a `WHEN` clause (only available in
newer Pg versions, see CREATE TRIGGER) that excludes the migrated
customer ID. You'd have to do it in a new tx to avoid locking the table
for ages though.

--
Craig Ringer

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

Предыдущее
От: Stefan Keller
Дата:
Сообщение: Re: Slow query: Select all buildings that have >1 pharmacies and >1 schools within 1000m
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Is drop/restore trigger transactional?