【发布时间】:2021-10-23 16:08:00
【问题描述】:
Redshift 有许多用于查询指标的系统表。大多数表都有一个名为userid 的列,它是pg_user 表中的确切用户ID。我想通过使用 pg_group 加入 userid 列来获取该特定用户的组名,但它不起作用。
参考链接:https://stackoverflow.com/a/51950747/6885516
我试过的查询:
select a.*,b.groname from svl_s3query_summary a, pg_group b where
a.userid = ANY(b.grolist) and
b.groname='analytics';
错误信息:
Column "b.grolist" has unsupported type "integer[]".
Column "*NEW*.xid" has unsupported type "integer[]".
【问题讨论】:
标签: amazon-redshift