.. _postgresql_pg_pulication:

pg_publication
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

视图pg_publication包含数据库中创建的所有publication。

.. table:: pg_publication 列
      :widths: 3, 2, 4
      :class: longtable
      
      +--------------+------+-----------------------------------------------------------------------------+
      | 名称         | 类型 | 描述                                                                        |
      +==============+======+=============================================================================+
      | oid          | oid  | 行标识符                                                                    |
      +--------------+------+-----------------------------------------------------------------------------+
      | pubname      | name | publication的名称                                                           |
      +--------------+------+-----------------------------------------------------------------------------+
      | pubowner     | oid  | publication的拥有者                                                         |
      +--------------+------+-----------------------------------------------------------------------------+
      | puballtables | bool | 如果为真，这个publication自动包括数据库中的所有表，包括未来将会创建的任何表 |
      +--------------+------+-----------------------------------------------------------------------------+
      | pubinsert    | bool | 如果为真，为publication中的表复制INSERT操作                                 |
      +--------------+------+-----------------------------------------------------------------------------+
      | pubupdate    | bool | 如果为真，为publication中的表复制UPDATE操作                                 |
      +--------------+------+-----------------------------------------------------------------------------+
      | pubdelete    | bool | 如果为真，为publication中的表复制DELETE操作                                 |
      +--------------+------+-----------------------------------------------------------------------------+
      | pubtruncate  | bool | 如果为真，为publication中的表复制TRUNCATE操作                               |
      +--------------+------+-----------------------------------------------------------------------------+
