Rechercher dans le manuel MySQL

27.4.3.28 The schema_table_lock_waits and x$schema_table_lock_waits Views

These views display which sessions are blocked waiting on metadata locks, and what is blocking them.

The column descriptions here are brief. For additional information, see the description of the Performance Schema metadata_locks table at Section 26.12.12.3, “The metadata_locks Table”.

The schema_table_lock_waits and x$schema_table_lock_waits views have these columns:

  • object_schema

    The schema containing the object to be locked.

  • object_name

    The name of the instrumented object.

  • waiting_thread_id

    The thread ID of the thread that is waiting for the lock.

  • waiting_pid

    The processlist ID of the thread that is waiting for the lock.

  • waiting_account

    The account associated with the session that is waiting for the lock.

  • waiting_lock_type

    The type of the waiting lock.

  • waiting_lock_duration

    How long the waiting lock has been waiting.

  • waiting_query

    The statement that is waiting for the lock.

  • waiting_query_secs

    How long the statement has been waiting, in seconds.

  • waiting_query_rows_affected

    The number of rows affected by the statement.

  • waiting_query_rows_examined

    The number of rows read from storage engines by the statement.

  • blocking_thread_id

    The thread ID of the thread that is blocking the waiting lock.

  • blocking_pid

    The processlist ID of the thread that is blocking the waiting lock.

  • blocking_account

    The account associated with the thread that is blocking the waiting lock.

  • blocking_lock_type

    The type of lock that is blocking the waiting lock.

  • blocking_lock_duration

    How long the blocking lock has been held.

  • sql_kill_blocking_query

    The KILL statement to execute to kill the blocking statement.

  • sql_kill_blocking_connection

    The KILL statement to execute to kill the session running the blocking statement.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-sys-schema-table-lock-waits.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut