—
NAME
DROP_STATISTICS - remove extended statistics
SYNOPSIS
bash
DROP STATISTICS [ IF EXISTS ] \nname\n [, ...] [ CASCADE | RESTRICT ]DESCRIPTION
DROP STATISTICS removes statistics object(s) from the database. Only the statistics object's owner, the schema owner, or a superuser can drop a statistics object.
PARAMETERS
IF EXISTS
name
CASCADE RESTRICT
EXAMPLES
To destroy two statistics objects in different schemas, without failing if they don't exist:
bash
DROP STATISTICS IF EXISTS
\n
accounting.users_uid_creation,
\n
public.grants_user_role;COMPATIBILITY
There is no DROP STATISTICS command in the SQL standard.
SEE ALSO
ALTER STATISTICS (ALTER_STATISTICS(7)), CREATE STATISTICS (CREATE_STATISTICS(7))