count
Get row counts for a table with a quick planner estimate, optionally applying a WHERE filter, or execute an exact count when precise numbers are required.
Instructions
Row count, estimate-first: instant planner estimate (no scan), optionally with a WHERE clause; exact=true runs a real count(*) under the statement timeout. Prefer the estimate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | ||
| table | Yes | ||
| where | No | ||
| profile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |