Tom Lane f18a77acc8 Fix AfterTriggerSaveEvent to use a test and elog, not just Assert, to check
that it's called within an AfterTriggerBeginQuery/AfterTriggerEndQuery pair.
The RI cascade triggers suppress that overhead on the assumption that they
are always run non-deferred, so it's possible to violate the condition if
someone mistakenly changes pg_trigger to mark such a trigger deferred.
We don't really care about supporting that, but throwing an error instead
of crashing seems desirable.  Per report from Marcelo Costa.
2009-10-27 20:14:33 +00:00
..
2009-01-01 17:24:05 +00:00
2009-01-01 17:24:05 +00:00
2009-09-03 21:01:26 +00:00
2009-01-01 17:24:05 +00:00
2009-06-26 19:33:52 +00:00