Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
doc: Remove reference to views for TRUNCATE privilege
authorMichael Paquier <michael@paquier.xyz>
Wed, 27 Jan 2021 04:41:03 +0000 (13:41 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 27 Jan 2021 04:41:03 +0000 (13:41 +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 a31c8a932452c80f017a9d273d07f26ad72b02f5..2aa24183def198639cdf5843b1f7b781577fdf5f 100644 (file)
@@ -1739,7 +1739,7 @@ REVOKE ALL ON accounts FROM PUBLIC;
      <term><literal>TRUNCATE</literal></term>
      <listitem>
       <para>
-       Allows <xref linkend="sql-truncate"/> on a table, view, etc.
+       Allows <xref linkend="sql-truncate"/> on a table.
       </para>
      </listitem>
     </varlistentry>