Triggering a function on table overwrite

From: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
To: "Postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Triggering a function on table overwrite
Date: 2012-02-06 05:56:27
Message-ID: 1EEE34BA2B1A4ADC936BC296FA7C7B74@BobPC
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

Normally when I need to run a function during an insert I make it a trigger function of that table.

However, in this case, I need to overwrite the table with which the trigger is attached.

I would appreciate any suggestions on how to do this.

Bob

Browse pgsql-general by date

  From Date Subject
Next Message Lockas 2012-02-06 06:07:05 Re: Error while importing CSV file
Previous Message Tom Lane 2012-02-06 05:48:46 Re: SPI functions to work with the Execution Plan