From 0f1112923cf5ae8d4a3a81d5ffe78e0c866cb1ac Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 22 Aug 2002 14:23:36 +0000 Subject: 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. --- src/test/regress/expected/truncate.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/regress/expected/truncate.out b/src/test/regress/expected/truncate.out index 19300f63a36..8751b1fdb7d 100644 --- a/src/test/regress/expected/truncate.out +++ b/src/test/regress/expected/truncate.out @@ -27,7 +27,7 @@ SELECT * FROM truncate_a; (1 row) TRUNCATE truncate_a; -ERROR: TRUNCATE cannot be used as other tables reference this one via foreign key constraint $1 +ERROR: TRUNCATE cannot be used as table truncate_b references this one via foreign key constraint $1 SELECT * FROM truncate_a; col1 ------ -- cgit v1.2.3