1ALTER STATISTICS(7)      PostgreSQL 12.2 Documentation     ALTER STATISTICS(7)
2
3
4

NAME

6       ALTER_STATISTICS - change the definition of an extended statistics
7       object
8

SYNOPSIS

10       ALTER STATISTICS name OWNER TO { new_owner | CURRENT_USER | SESSION_USER }
11       ALTER STATISTICS name RENAME TO new_name
12       ALTER STATISTICS name SET SCHEMA new_schema
13

DESCRIPTION

15       ALTER STATISTICS changes the parameters of an existing extended
16       statistics object. Any parameters not specifically set in the ALTER
17       STATISTICS command retain their prior settings.
18
19       You must own the statistics object to use ALTER STATISTICS. To change a
20       statistics object's schema, you must also have CREATE privilege on the
21       new schema. To alter the owner, you must also be a direct or indirect
22       member of the new owning role, and that role must have CREATE privilege
23       on the statistics object's schema. (These restrictions enforce that
24       altering the owner doesn't do anything you couldn't do by dropping and
25       recreating the statistics object. However, a superuser can alter
26       ownership of any statistics object anyway.)
27

PARAMETERS

29       name
30           The name (optionally schema-qualified) of the statistics object to
31           be altered.
32
33       new_owner
34           The user name of the new owner of the statistics object.
35
36       new_name
37           The new name for the statistics object.
38
39       new_schema
40           The new schema for the statistics object.
41

COMPATIBILITY

43       There is no ALTER STATISTICS command in the SQL standard.
44

SEE ALSO

46       CREATE STATISTICS (CREATE_STATISTICS(7)), DROP STATISTICS
47       (DROP_STATISTICS(7))
48
49
50
51PostgreSQL 12.2                      2020                  ALTER STATISTICS(7)
Impressum