Triggers and COPY

Поиск
Список
Период
Сортировка
От Ericson Smith
Тема Triggers and COPY
Дата
Msg-id 3F730087.1080103@did-it.com
обсуждение исходный текст
Ответы Re: Triggers and COPY  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
Список pgsql-general
Hi,

Is there any way to prevent a trigger from firing during a COPY operation?

We have a case where we dump the records from a table, truncate it, and
copy the records back in. However, there is a trigger on that table,
which will insert a record in a logging table. Is there a way to prevent
this trigger from firing during the COPY FROM process?

Just a little more background, I tried to make the function a little
more intelligent with OLD and NEW, but in the case of an INSERT, there
is no OLD, so there is no comparison.

Regards
- Ericson Smith
eric@did-it.com
Did-it.com
The Search Campaign Specialists


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: How to find LIMIT in SQL standard
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: German translation of PostgreSQL documentation