| От | Ericson Smith |
|---|---|
| Тема | Triggers and COPY |
| Дата | |
| Msg-id | 3F730087.1080103@did-it.com обсуждение исходный текст |
| Ответы |
Re: Triggers and COPY
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера