Triggers and COPY

From: Ericson Smith <eric(at)did-it(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Triggers and COPY
Date: 2003-09-25 14:49:43
Message-ID: 3F730087.1080103@did-it.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)did-it(dot)com
Did-it.com
The Search Campaign Specialists

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2003-09-25 14:55:43 Re: German translation of PostgreSQL documentation
Previous Message Stephan Szabo 2003-09-25 14:48:25 Re: How to find LIMIT in SQL standard