.. _sys_stat_subscription(KES):

sys_stat_subscription
~~~~~~~~~~~~~~~~~~~~~~~~~~

每个订阅至少一行，显示有关该订阅的工作者的信息。

.. table:: sys_stat_subscription 列
   :class: longtable

   +-----------------------+---------------------------+-----------------------------------------------------+
   | 名称                  | 类型                      | 描述                                                |
   +=======================+===========================+=====================================================+
   | subid                 | oid                       | 订阅的OID                                           |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | subname               | name                      | 订阅的名称                                          |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | pid                   | integer                   | 订阅工作者进程的进程ID                              |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | relid                 | oid                       | 工作者正在同步的关系的OID，对于主应用工作者为空     |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | received_lsn          | pg_lsn                    | 接收到的最后一个预写式日志位置，这个字段的初始值是0 |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | last_msg_send_time    | timestamp with  time zone | 从源头WAL发送器接收到的最后一个消息的发送时间       |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | last_msg_receipt_time | timestamp with time zone  | 从源头WAL发送器接收到的最后一个消息的接收时间       |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | latest_end_lsn        | pg_lsn                    | 最后一个报告给源头WAL发送器的预写式日志位置         |
   +-----------------------+---------------------------+-----------------------------------------------------+
   | latest_end_time       | timestamp with time zone  | 报告给源头WAL发送器的最后一个预写式日志位置的时间   |
   +-----------------------+---------------------------+-----------------------------------------------------+
