]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropstatistics.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropstatistics.txt
1
2 DROP STATISTICS
3
4    DROP STATISTICS — remove extended statistics
5
6 Synopsis
7
8 DROP STATISTICS [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP STATISTICS removes statistics object(s) from the database. Only
13    the statistics object's owner, the schema owner, or a superuser can
14    drop a statistics object.
15
16 Parameters
17
18    IF EXISTS
19           Do not throw an error if the statistics object does not exist. A
20           notice is issued in this case.
21
22    name
23           The name (optionally schema-qualified) of the statistics object
24           to drop.
25
26    CASCADE
27           RESTRICT
28           These key words do not have any effect, since there are no
29           dependencies on statistics.
30
31 Examples
32
33    To destroy two statistics objects in different schemas, without failing
34    if they don't exist:
35 DROP STATISTICS IF EXISTS
36     accounting.users_uid_creation,
37     public.grants_user_role;
38
39 Compatibility
40
41    There is no DROP STATISTICS command in the SQL standard.
42
43 See Also
44
45    ALTER STATISTICS, CREATE STATISTICS