Skip to main content
Version: Next

gp_distribution_policy

The gp_distribution_policy table in the pg_catalog schema contains information about Apache Cloudberry 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).
policytypechar The table distribution policy:

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

r - Replicated policy. Table data is replicated on each segment instance.
numsegmentsinteger The 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).