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

EXPLAIN <DML statement> counts as write in QUERY_RESPONSE_TIME

    XMLWordPrintable

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

            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.