From 66d17c3e2610a9b96509fbfa403280d44fc462d2 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Fri, 1 Oct 1999 15:24:09 +0000 Subject: [PATCH] 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... --- doc/src/sgml/ref/allfiles.sgml | 3 ++- doc/src/sgml/ref/commands.sgml | 3 ++- doc/src/sgml/ref/truncate.sgml | 27 ++++++++++++++++----------- 3 files changed, 20 insertions(+), 13 deletions(-) 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; - + + -- 2.40.0