sys_stat_subscription
=====================

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

.. table:: sys_stat_subscription视图
   :class: longtable

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