cockroachdb / cockroachdb/cockroach
sql: consider exposing a way to run runtime.GC(), perhaps via builtin
Open
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
It'd be nice to have a way to force garbage collection (either on 1 node or on all nodes in the cluster, perhaps in the "rolling update" way) via SQL. This was suggested by Sean [here](https://cockroachlabs.slack.com/archives/C06K5GRC0JD/p1711061156530169?thread_ts=1711053148.352219&cid=C06K5GRC0JD).
Some things to consider:
- permissions, roles, etc
- single-tenant vs UA vs serverless
- expose via SQL builtin or via RPC from DB Console (or both).
Jira issue: CRDB-36907
Contributor guide
Assessment
This issue has not been assessed yet.