GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DROP STATISTICS(7) PostgreSQL 18beta1 Documentation DROP STATISTICS(7)

DROP_STATISTICS - remove extended statistics

DROP STATISTICS [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

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.

IF EXISTS

Do not throw an error if the statistics object does not exist. A notice is issued in this case.

name

The name (optionally schema-qualified) of the statistics object to drop.

CASCADE
RESTRICT

These key words do not have any effect, since there are no dependencies on statistics.

To destroy two statistics objects in different schemas, without failing if they don't exist:

DROP STATISTICS IF EXISTS

accounting.users_uid_creation,
public.grants_user_role;

There is no DROP STATISTICS command in the SQL standard.

ALTER STATISTICS (ALTER_STATISTICS(7)), CREATE STATISTICS (CREATE_STATISTICS(7))

2025 PostgreSQL 18beta1

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.