【发布时间】:2018-08-20 23:58:26
【问题描述】:
需要一个查询来在 Greenplum 的数据库中查找没有分配键的表。
【问题讨论】:
标签: greenplum
需要一个查询来在 Greenplum 的数据库中查找没有分配键的表。
【问题讨论】:
标签: greenplum
select n.nspname,
c.relname
from pg_class c
join pg_namespace n on c.relnamespace = n.oid
join gp_distribution_policy d on c.oid = d.localoid
where c.relkind = 'r'
and d.attrnums is null;
【讨论】: