List distribution policies
list_distribution_policiesList the data-distribution policy (HASH, RANDOM, REPLICATED) for each table in a PostgreSQL schema. Shows distribution-key columns from the catalog.
Instructions
List the data-distribution policy for each table in a WarehousePG schema (HASH(col,...), RANDOM, or REPLICATED). Joins gp_distribution_policy to pg_attribute for the distribution-key column names in catalog order. schema=None returns every non-system schema. Read-only. On vanilla PG returns available=false with a diagnostic.
Example: list_distribution_policies(schema='public')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| policies | Yes | ||
| available | Yes |