.. _sys_stat_sqlwait:


sys_stat_sqlwait
====================


统计数据库中SQL语句与等待事件的信息。


.. table:: sys_stat_sqlwait视图
   :class: longtable
   :widths: 2 2 3

   +-----------------+--------+-----------------+
   | 列              | 类型   | 描述            |
   +=================+========+=================+
   | userid          | oid    | 用户ID 。       |
   +-----------------+--------+-----------------+
   | datid           | oid    | 数据库ID。      |
   +-----------------+--------+-----------------+
   | queryid         | bigint | 查询ID 。       |
   +-----------------+--------+-----------------+
   | wait_event_type | text   | 等待事件类型 。 |
   +-----------------+--------+-----------------+
   | wait_event      | text   | 等待事件。      |
   +-----------------+--------+-----------------+
   | calls           | bigint | SQL调用次数。   |
   +-----------------+--------+-----------------+
   | times           | bigint | SQL时间 。      |
   +-----------------+--------+-----------------+


