]> granicus.if.org Git - postgresql/commit
This trivial patch implements disabled, deferred triggers, per my
authorBruce Momjian <bruce@momjian.us>
Wed, 8 Jan 2003 22:28:32 +0000 (22:28 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 8 Jan 2003 22:28:32 +0000 (22:28 +0000)
commitc77bc1380a14f98cea802617f5b7c1ca17f19c58
treeb09736c0171d889da784dce4f0c917305012722d
parentc9967a4909d842add8b0622012931329aa7eb702
This trivial patch implements disabled, deferred triggers, per my
proposal on -hackers a couple days ago. The 'tgenabled' status of the
trigger is consulted when the trigger is added to the deferred queue
(i.e. when the event occurs that fires the trigger), not when the
deferred event is executed.

No regression tests, as another bug prevents them (the pg_trigger row
for a trigger is only loaded once per session, so any changes to it are
not noticed unless the client disconnects and reconnects).

Neil Conway
src/backend/commands/trigger.c