Skip to content

gp_distribution_policy

The gp_distribution_policy table contains information about WarehousePG tables and their policy for distributing table data across the segments. This table is populated only on the coordinator. This table is not globally shared, meaning each database has its own copy of this table.

columntypereferencesdescription
localoidoidpg_class.oidThe table object identifier (OID).
policytypecharThe table distribution policy:

p - Partitioned policy. Table data is distributed among segment instances.

r - Replicated policy. Table data is replicated on each segment instance.
numsegmentsintegerThe number of segment instances on which the table data is distributed.
distkeyint2vectorpg_attribute.attnumThe column number(s) of the distribution column(s).
distclassoidvectorpg_opclass.oidThe operator class identifier(s) of the distribution column(s).

Parent topic: System Catalogs Definitions