From: Tom Lane Date: Sun, 18 Nov 2001 21:14:20 +0000 (+0000) Subject: Point out that TRUNCATE can't be used inside a transaction block. X-Git-Tag: REL7_2_BETA3~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b16f6c6b95b083ef2001755e707ac2b38db2965a;p=postgresql Point out that TRUNCATE can't be used inside a transaction block. --- diff --git a/doc/src/sgml/ref/truncate.sgml b/doc/src/sgml/ref/truncate.sgml index 861c93b116..6d413fd7ad 100644 --- a/doc/src/sgml/ref/truncate.sgml +++ b/doc/src/sgml/ref/truncate.sgml @@ -1,5 +1,5 @@ @@ -84,7 +84,13 @@ TRUNCATE TRUNCATE quickly removes all rows from a table. It has the same effect as an unqualified DELETE but since it does not actually scan the - table it is faster. This is most effective on large tables. + table it is faster. This is most useful on large tables. + + + + TRUNCATE cannot be executed inside a transaction + block (BEGIN/COMMIT pair), because there is + no way to roll it back.