aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-10-27 20:14:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-10-27 20:14:48 +0000
commitc4fb0b23644787a6a8f12410b27cc0988d39e465 (patch)
tree686262fd375e6765eacba8bb10e7a7124779988c /src/backend/access/gist/gistscan.c
parent2bb5302704697027e6dc9dae2ce15e9590159fba (diff)
downloadpostgresql-c4fb0b23644787a6a8f12410b27cc0988d39e465.tar.gz
postgresql-c4fb0b23644787a6a8f12410b27cc0988d39e465.zip
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.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions