Support PLAN_REPLAYER_EXPLAIN_ADMIN for PLAN REPLAYER DUMP EXPLAIN
Open
contribution
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
`PLAN REPLAYER DUMP EXPLAIN` currently depends on the underlying statement privileges, which makes it hard to use in Cloud. The backend needs to collect plan replayer packages, but it should not connect with a user that has broad `SELECT` privileges on user data.
It would be better to introduce a standalone dynamic privilege, `PLAN_REPLAYER_EXPLAIN_ADMIN`, for the plan replayer dump explain flow.
Contributor guide
Assessment
This issue has not been assessed yet.