[MDEV-10000] Add EXPLAIN FOR CONNECTION syntax support to SHOW EXPLAIN Created: 2016-04-26 Updated: 2023-03-21 Resolved: 2022-04-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | 10.9.1 |
| Type: | Task | Priority: | Minor |
| Reporter: | Sergei Petrunia | Assignee: | Alice Sherepa |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | Compatibility, Preview_10.9, optimizer | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
MariaDB has SHOW EXPLAIN, and MySQL 5.7 got EXPLAIN FOR CONNECTION. |
| Comments |
| Comment by Sergei Petrunia [ 2021-10-29 ] |
|
Considerations:
|
| Comment by Sergei Petrunia [ 2022-01-21 ] |
|
Review input: https://lists.launchpad.net/maria-developers/msg13074.html |
| Comment by Oleg Smirnov [ 2022-01-25 ] |
|
Yes, I'm surprised how this did work on my machine. I added the initialization and force-pushed into the same branch. |
| Comment by Sergei Petrunia [ 2022-01-28 ] |
|
Ok. Please in the future do not have two branches with similar names like bb-10.8- |
| Comment by Sergei Petrunia [ 2022-01-29 ] |
|
One other thing to consider: In MySQL: EXPLAIN FOR CONNECTION produces "partitions" and "filtered" columns. In MariaDB: The current patch doesn't produce "partitions" or "filtered". But since we're aiming at MySQL compatibility perhaps we should do that? |
| Comment by Oleg Smirnov [ 2022-01-31 ] |
|
Sorry for the confusion, bb-10.8- Regarding "partitions" and "filtered": is we add these fields only to EXPLAIN FOR CONNECTION output wouldn't it be inconsistent that SHOW EXPLAIN displays one set of columns and EXPLAIN FOR CONNECTION - another one? Doesn't it make sense to add those fields to SHOW EXPLAIN output as well? |
| Comment by Sergei Petrunia [ 2022-02-08 ] |
|
Filed MDEV-27776 about addressing filtered and partitions column. |