Disallow TRUNCATE when there are any pending after-trigger events for
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +8 −1 |
| src/backend/commands/trigger.c | modified | +69 −1 |
| src/include/commands/trigger.h | modified | +2 −2 |