Skip to content

Commit d121663

Browse files
committed
doc: Mention CASCADE/RESTRICT for DROP STATISTICS
This grammar has no effect as there are no dependencies on statistics, but it is supported by the parser. This is more consistent with the other DROP commands. Author: Vignesh C Discussion: https://postgr.es/m/CALDaNm1LA=yNmzcSfy+0oe6CEAgsxXRf_-UutE3ZncFi8QkFNQ@mail.gmail.com Backpatch-through: 10
1 parent dcecdfa commit d121663

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

doc/src/sgml/ref/drop_statistics.sgml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PostgreSQL documentation
2121

2222
<refsynopsisdiv>
2323
<synopsis>
24-
DROP STATISTICS [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [, ...]
24+
DROP STATISTICS [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
2525
</synopsis>
2626
</refsynopsisdiv>
2727

@@ -59,6 +59,18 @@ DROP STATISTICS [ IF EXISTS ] <replaceable class="parameter">name</replaceable>
5959
</listitem>
6060
</varlistentry>
6161

62+
<varlistentry>
63+
<term><literal>CASCADE</literal></term>
64+
<term><literal>RESTRICT</literal></term>
65+
66+
<listitem>
67+
<para>
68+
These key words do not have any effect, since there are no dependencies
69+
on statistics.
70+
</para>
71+
</listitem>
72+
</varlistentry>
73+
6274
</variablelist>
6375
</refsect1>
6476

0 commit comments

Comments
 (0)