Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34032

EXPLAIN <DML statement> counts as write in QUERY_RESPONSE_TIME

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Major
    • Resolution: Unresolved
    • N/A
    • 11.5(EOL)
    • Plugins
    • None

    Description

      install soname 'query_response_time';
       
      set query_response_time_session_stats= on;
      explain delete from mysql.db;
      select sum(read_count), sum(write_count) from information_schema.query_response_time_read_write;
       
      # Cleanup
      uninstall soname 'query_response_time';
      

      bb-11.5-MDEV-33501-query-response-time 2b35d7c1bcb069428e7fe86a3ce39110df8df4e8

      explain delete from mysql.db;
      id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
      1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	0	Deleting all rows
      select sum(read_count), sum(write_count) from information_schema.query_response_time_read_write;
      sum(read_count)	sum(write_count)
      1	1
      

      Attachments

        Issue Links

          Activity

            monty Michael Widenius added a comment - - edited

            This is because of a bug in EXPLAIN that marks explain with insert, update, replace and delete as 'write' queries.
            Will be fixed by MDEV-33752 in 10.6

            When MDEV-33752 is merged up to 11.5 then we should copy the test case from here to 11.5 and close this ticket

            monty Michael Widenius added a comment - - edited This is because of a bug in EXPLAIN that marks explain with insert, update, replace and delete as 'write' queries. Will be fixed by MDEV-33752 in 10.6 When MDEV-33752 is merged up to 11.5 then we should copy the test case from here to 11.5 and close this ticket
            greenman Ian Gilfillan added a comment -

            MDEV-33752 has been closed as "Wontfix". What is the intention for this issue?

            greenman Ian Gilfillan added a comment - MDEV-33752 has been closed as "Wontfix". What is the intention for this issue?

            People

              monty Michael Widenius
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.