pingcap / pingcap/tidb

planner: `plan replayer dump` statement dumps all historical plans of the specified query

Open
#41,981 0 comments 0 reactions 1 assignee Claimed by @Yisaer View on GitHub
sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
When using `plan replayer dump` statement to dump query information, it is better to dump all historical plans of this query as well.
Since in most cases, the first 2 steps for us to investigate a wrong plan issue are to figure out:
1) whether this query is a new query introduced to the system recently?
2) if it's not a new query, what's the previous plan of this query?

And historical plan information is useful for us to figure out the 2 problems above.

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.