Skip to content

MDEV-28869 Show tables removed by table elimination in EXPLAIN - #5725

Open
Olernov wants to merge 1 commit into
11.4from
11.4-MDEV-28869-eliminated
Open

Olernov wants to merge 1 commit into
11.4from
11.4-MDEV-28869-eliminated

Conversation

@Olernov

@Olernov Olernov commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Tables removed by table elimination were omitted from EXPLAIN and EXPLAIN FORMAT=JSON entirely. A user comparing the query text with the plan could not tell whether a table had been eliminated or the optimizer had lost it, and after MDEV-26278 a whole derived table could disappear the same way.

Such tables are now shown with eliminated in the type column (in access_type for FORMAT=JSON), and an eliminated derived table also prints its contents, every table of it marked the same way. They are printed after the tables that take part in the plan.

Tables removed by table elimination were omitted from EXPLAIN and
EXPLAIN FORMAT=JSON entirely. A user comparing the query text with
the plan could not tell whether a table had been eliminated or the
optimizer had lost it, and after MDEV-26278 a whole derived table
could disappear the same way.

Such tables are now shown with eliminated in the type column
(in access_type for FORMAT=JSON), and an eliminated derived table
also prints its contents, every table of it marked the same way.
They are printed after the tables that take part in the plan.
@Olernov
Olernov force-pushed the 11.4-MDEV-28869-eliminated branch 2 times, most recently from 8dfbceb to 09c91a9 Compare September 21, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant