doc: Remove reference to views for TRUNCATE privilege
authorMichael Paquier <[email protected]>
Wed, 27 Jan 2021 04:40:33 +0000 (13:40 +0900)
committerMichael Paquier <[email protected]>
Wed, 27 Jan 2021 04:40:33 +0000 (13:40 +0900)
The page about privilege rights mentioned that TRUNCATE could be applied
to views or even other relation types.  This is confusing as this
command can be used only on tables and on partitioned tables.

Oversight in afc4a78.

Reported-by: Harisai Hari
Reviewed-by: Laurenz Albe
Discussion: https://postgr.es/m/161157636877.14625.15340884663716426087@wrigleys.postgresql.org
Backpatch-through: 12

doc/src/sgml/ddl.sgml

index c12a32c8c7f02c46e5ac4322a1e698e2697b0950..02d2f42865172f7b99c13ebb44493bbab563eb86 100644 (file)
@@ -1740,7 +1740,7 @@ REVOKE ALL ON accounts FROM PUBLIC;
      <term><literal>TRUNCATE</literal></term>
      <listitem>
       <para>
-       Allows <command>TRUNCATE</command> on a table, view, etc.
+       Allows <command>TRUNCATE</command> on a table.
       </para>
      </listitem>
     </varlistentry>