OSDN Git Service

Disallow TRUNCATE when there are any pending after-trigger events for
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Sep 2006 21:15:56 +0000 (21:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Sep 2006 21:15:56 +0000 (21:15 +0000)
commitf8bbfad075e855d4603e44847cd6ec51c91b3f92
treeb66bfc92f3e6eb5c6a0105ca95f4d0f216e3a619
parent395c8166aa02326e46d70bb60537348a84843fd8
Disallow TRUNCATE when there are any pending after-trigger events for
the target relation(s).  There might be some cases where we could discard
the pending event instead, but for the moment a conservative approach
seems sufficient.  Per report from Markus Schiltknecht and subsequent
discussion.
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/include/commands/trigger.h