[MDEV-30444] Set log-slow-verbosity=explain was not working Created: 2023-01-21 Updated: 2023-02-05 Resolved: 2023-02-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Ragul | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Trying to enable slow_query with verbosity enabled with different options in Mariadb 10.6.*. But unable to set option- explain for log-slow-verbosity in session https://mariadb.com/kb/en/explain-in-the-slow-query-log/ while we can set other options as query_plan and InnoDB in the session
And while the same is working fine when we set this variable as part of my.cnf file
Is this option not supported in MariaDB 10.6 which is not mentioned in the docs (Not sure about other MariaDB version) or am I missing anything https://mariadb.com/kb/en/slow-query-log-extended-statistics/ |
| Comments |
| Comment by Alice Sherepa [ 2023-01-23 ] | ||||||||||||||||||
|
The "explain" option needs quotation marks:
| ||||||||||||||||||
| Comment by Ragul [ 2023-01-23 ] | ||||||||||||||||||
|
Thanks @alice. with quotes it works fine for explain But intereting to know how its working without quotes for innodb,query_plan | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-02-05 ] | ||||||||||||||||||
|
you can omit quotes in some cases. But EXPLAIN is a keyword, that's why it has to be quoted, otherwise it'll be a syntax error. |