cockroachdb / cockroachdb/cockroach
sql: support generic query plans for statements within routines
Open
A-generic-query-plans
A-sql-routine
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
Currently, generic query plans are only applicable to the statements that go through the "main" query path (`optPlanningCtx.buildExecMemo`). However, statements within routines don't go through that path, so they don't get generic plans. We should consider adding the support for them in there.
Jira issue: CRDB-61613
Epic: CRDB-63752
Contributor guide
Assessment
This issue has not been assessed yet.