cockroachdb / cockroachdb/cockroach
sql: add sql_stats_histogram_collection_enabled storage parameter
Open
A-sql-table-stats
C-enhancement
O-support
P-3
T-sql-queries
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
We added storage parameters `sql_stats_histogram_buckets_count` and `sql_stats_histogram_samples_count` which correspond with cluster settings `sql.stats.histogram_buckets.count` and `sql.stats.histogram_samples.count`. But we have no storage parameter that corresponds with cluster setting `sql.stats.histogram_collection.enabled`. Occasionally it's useful to turn off histogram collection altogether, and it would be nice to do this for a table rather than for the entire cluster.
Jira issue: CRDB-46736
Contributor guide
Assessment
This issue has not been assessed yet.