pingcap / pingcap/tidb

Support PLAN_REPLAYER_EXPLAIN_ADMIN for PLAN REPLAYER DUMP EXPLAIN

Open
#67,591 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.