1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-17 06:41:24 +03:00

Document that only a table's owner may TRUNCATE it. Per Keith Worthington.

This commit is contained in:
Tom Lane 2005-02-22 19:06:49 +00:00
parent 2df2c3dca2
commit 510f058932

View File

@ -1,5 +1,5 @@
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/truncate.sgml,v 1.15 2003/09/19 21:06:39 tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/truncate.sgml,v 1.15.2.1 2005/02/22 19:06:49 tgl Exp $
PostgreSQL documentation
-->
@ -53,6 +53,10 @@ TRUNCATE [ TABLE ] <replaceable class="PARAMETER">name</replaceable>
<refsect1>
<title>Notes</title>
<para>
Only the owner of a table may <command>TRUNCATE</> it.
</para>
<para>
<command>TRUNCATE</> cannot be used if there are foreign-key references
to the table from other tables. Checking validity in such cases would