开发者社区 问答 正文

如何查询Hologres内部表数量

已解决

如何查询Hologres内部表数量

展开
收起
提个问题 2024-06-01 10:05:18 80 分享 版权
1 条回答
写回答
取消 提交回答
  • 开发者社区问答官方账号
    官方回答
    采纳回答

    检查不同Schema下的内部表数量

    select table_namespace as schema    ,count(distinct table_name) as total_tables    ,count(distinct table_name) filter( where property_key='storage_format') as inner_tables from hologres.hg_table_properties where table_namespace NOT IN ('hologres','hologres_statistic','pg_catalog') group by table_namespace order by table_namespace;

    详情可参考文档

    2024-06-01 10:05:19
    赞同 展开评论