Skip to content

Commit 26b9a28

Browse files
committed
Document that only a table's owner may TRUNCATE it. Per Keith Worthington.
1 parent 5a9dd0d commit 26b9a28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/src/sgml/ref/truncate.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/truncate.sgml,v 1.18 2005/01/27 03:17:08 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/truncate.sgml,v 1.19 2005/02/22 19:06:18 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -53,6 +53,10 @@ TRUNCATE [ TABLE ] <replaceable class="PARAMETER">name</replaceable> [, ...]
5353
<refsect1>
5454
<title>Notes</title>
5555

56+
<para>
57+
Only the owner of a table may <command>TRUNCATE</> it.
58+
</para>
59+
5660
<para>
5761
<command>TRUNCATE</> cannot be used on a table that has foreign-key
5862
references from other tables, unless all such tables are also truncated

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy