From: Thomas G. Lockhart Date: Fri, 1 Oct 1999 15:24:09 +0000 (+0000) Subject: Make TABLE an optional keyword, a la LOCK TABLE (gram.y fixes not yet X-Git-Tag: REL7_0~1394 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66d17c3e2610a9b96509fbfa403280d44fc462d2;p=postgresql Make TABLE an optional keyword, a la LOCK TABLE (gram.y fixes not yet committed, but will be within a week or two). Actually include the reference page into the docs... --- diff --git a/doc/src/sgml/ref/allfiles.sgml b/doc/src/sgml/ref/allfiles.sgml index 50e8c89490..d82a9be53f 100644 --- a/doc/src/sgml/ref/allfiles.sgml +++ b/doc/src/sgml/ref/allfiles.sgml @@ -1,5 +1,5 @@ @@ -93,6 +93,7 @@ Complete list of usable sgml source files in this directory. + diff --git a/doc/src/sgml/ref/commands.sgml b/doc/src/sgml/ref/commands.sgml index bc16b4cf2a..9402b29f6a 100644 --- a/doc/src/sgml/ref/commands.sgml +++ b/doc/src/sgml/ref/commands.sgml @@ -1,5 +1,5 @@ @@ -67,6 +67,7 @@ Postgres documentation &selectInto; &set; &show; + &truncate; &unlisten; &update; &vacuum; diff --git a/doc/src/sgml/ref/truncate.sgml b/doc/src/sgml/ref/truncate.sgml index 998f826d9c..0459c92921 100644 --- a/doc/src/sgml/ref/truncate.sgml +++ b/doc/src/sgml/ref/truncate.sgml @@ -1,5 +1,5 @@ @@ -15,7 +15,7 @@ Postgres documentation TRUNCATE - Close a cursor + Empty a table @@ -23,7 +23,7 @@ Postgres documentation 1999-07-20 -TRUNCATE TABLE table +TRUNCATE [ TABLE ] name @@ -37,10 +37,10 @@ TRUNCATE TABLE table - table + name - The table name to truncate. + The name of the table to be truncated. @@ -81,19 +81,24 @@ TRUNCATE Description - TRUNCATE quickly removes all rows from a table. + 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. - + + Usage - Truncate the table bigtable. - - + Truncate the table bigtable: + + TRUNCATE TABLE bigtable; - + +