【问题标题】:only pg_catalog tables showing in redshift只有 pg_catalog 表在 redshift 中显示
【发布时间】:2015-11-03 18:47:35
【问题描述】:

当我在 redshift 中运行此查询时:

select distinct schemaname, tablename from pg_table_def;

我只得到 pg_catalog 模式而不是用户模式。我在管理员用户下运行查询,并且也在其他用户名下运行它,但同样的事情发生了。我没有得到无系统模式的回来。

【问题讨论】:

    标签: amazon-web-services amazon-redshift


    【解决方案1】:

    确保您的 search_path 用户/会话参数正确列出了所需的架构名称。

    【讨论】:

      【解决方案2】:

      试试下面的代码

      select * from information_schema.tables where table_name like '%pg%'
      

      表 information_schema.tabes 应该可以帮助您找到所有 pg 表

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-11-30
        • 2013-09-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-12-31
        • 2015-07-19
        • 1970-01-01
        相关资源
        最近更新 更多