-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LEVEL column to PLG$PROF_RECORD_SOURCES and PLG$PROF_RECORD_SOURCE_STATS_VIEW #7687
Comments
…LG$PROF_RECORD_SOURCE_STATS_VIEW. Also avoid start collect profiling data for a record source not from its initial node.
=== QA issue === Test checks ability to reconstruct explained plan (as it looks in ISQL) using recursive query to PLG$PROF_RECORD_SOURCES snapshot and its LEVEL column. Currently there is no way to reconstruct explained plan when SUB-queries present: there is no such column as "block_id" for lines that belong to different parts of 'compound' query.
-- has following explained plan:
So, we can see there
and block N2:
But PLG$PROF* table can store them either like this:
Or like this:
I could not find how properly to join/order final query so that output will exactly match to ISQL explained plan. |
In most cases, each plan's line is put in a record of
PLG$PROF_RECORD_SOURCES
.But that is not always true.
For example:
Here
Refetch
andSort
is put in the same record, with makes it difficult to reconstruct indentation.Adding a
LEVEL
column to this table and views makes it easy to do it.The text was updated successfully, but these errors were encountered: