Updated
On this page
Reference for the pgdesign stats command — usage, flags, arguments, and examples for the stats subcommand of the pgdesign CLI.
#pgdesign stats
Analyze database statistics, index usage, and health
Effect: read_only
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--db | str | PGDESIGN_DB | PostgreSQL connection URL for the target database server | ||
--json | bool | Output all statistics in machine-readable JSON format | |||
--schema | str | PostgreSQL schema name to analyze (repeatable for multiple) |
#Arguments
| Name | Required | Description |
|---|---|---|
path | no | TOML schema file(s) for cross-referencing with live data |