planner: support explain and explain analyze statements for prepared queries #23725
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
type/feature-request
Categorizes issue or PR as related to a new feature.
Feature Request
Is your feature request related to a problem? Please describe:
Explain and explain analyze statements can print query plans, which is useful when optimizing queries and investigating issues, but prepared queries cannot support this feature:
Describe the feature you'd like:
Support explain and explain analyze statements for prepared queries, for example:
Describe alternatives you've considered:
To get plans of prepared statements, now we can use
explain for {ConnID}
or search them fromslow log file
, but both these two methods are not convenient.Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: