Code review for recent TRUNCATE changes. Tighten relation-kind check,
Tom Lane <tgl@sss.pgh.pa.us>
Code review for recent TRUNCATE changes. Tighten relation-kind check, tighten foreign-key check (a self-reference should not prevent TRUNCATE), improve error message, cause a relation's TOAST table to be truncated along with the relation.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +26 −14 |
| src/test/regress/expected/truncate.out | modified | +1 −1 |