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

METADATA_LOCK_INFO query id information

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • Plugins
    • None

    Description

      Hi guys, i`m trying to get tables used by a query without parsing it, i`m using these table from information_schema: METADATA_LOCK_INFO, INNODB_% (trx_mysql_thread_id/trx_id and others columns), PROCESSLIST
      the problem is: ID from PROCESSLIST don't change as fast as QUERY_ID, and a ID can represent many QUERY_ID in one second (i have connections running +1000 qps) in this case, what we should have is QUERY_ID at INNODB_% and METADATA_LOCK_INFO
      could we add this column? i don`t know about innodb_locks source but at metadata_lock_info is easy to patch, this solve my problem with wrong query_id/thread_id

      Attachments

        Activity

          People

            Unassigned Unassigned
            rspadim roberto spadim
            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.