profile
Retrieve column statistics from pg_stats without scanning tables: null fraction, distinct counts, common values, histogram bounds, and correlation. Analyze data distribution without running exploratory queries.
Instructions
Column statistics from pg_stats WITHOUT touching the table: null fraction, distinct count (negative = fraction of rows, -1 = unique), most common values with frequencies, histogram bounds, physical correlation. Replaces exploratory SELECT DISTINCT / GROUP BY scans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| profile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |