CREATE STATISTICS
A DDL command for creating an extended statistics object
CREATE STATISTICS
is a DDL command for creating an extended statistics object.
CREATE STATISTICS
was added in PostgreSQL 10.
Change history
- PostgreSQL 14
- support for extended statistics on expressions added (commit a4d75c86)
- PostgreSQL 10
- added (commit 7b504eb2)
References
- PostgreSQL documentation: CREATE STATISTICS
Useful links
- PostgreSQL: CREATE STATISTICS – advanced query optimization - February 2021 blog article by CyberTec