Enable/Disable Trigger per single transaction

From: "Derrick Betts" <list(at)blueaxis(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Enable/Disable Trigger per single transaction
Date: 2007-01-27 16:48:37
Message-ID: 03f301c74233$00562780$0202a8c0@main
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Assuming we have well over 1000 users accessing the database through a web
application.
We have a row-level trigger set up on table "alpha" that gets executed after
updates.

I was wondering if there is a way to temporarily disable a trigger on table
"alpha" for a single user, even though there may be 999 other users sending
transactions to the database that need the trigger to remain in place? For
example, I only want the trigger disabled for one single transaction (using
commands inside that transaction) while the trigger still gets fired
properly for the other 999 transactions that hit the database
simultaneously.

Is this possible at present?

Thank you for your insights,
Derrick

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Duncan Garland 2007-01-27 17:15:45 Re: Enable/Disable Trigger per single transaction
Previous Message Oisin Glynn 2007-01-26 23:25:06 Re: [NOVICE] Windows 2K Installation difficulties...