对 STL 表的 Redshift 超级用户权限被拒绝

0

【以下的问题经过翻译处理】 使用超级用户 admin 创建 Redshift Serverless 集群后,我无法查询视图 STL_LOAD_ERRORS 或表 STLL_LOAD_ERRORS。我收到以下查询的权限被拒绝错误:

SELECT *
FROM dev.pg_catalog.stl_load_errors
LIMIT 10

[42501] ERROR: permission denied for relation stl_load_errors

我已经确认我当前的用户是使用查询的超级用户:

SELECT * FROM pg_user

我在这里错过了什么?超级用户不应该能够查看所有表吗?

这是我已经引用的一些文档:

https://docs.aws.amazon.com/redshift/latest/dg/r_superusers.html https://docs.aws.amazon.com/redshift/latest/dg/c_visibility-of-data.html https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-security.html https://docs.aws.amazon.com/redshift/latest/gsg/t_querying_redshift_system_tables.html

profile picture
专家
已提问 5 个月前13 查看次数
1 回答
0

【以下的回答经过翻译处理】 请尝试

  1. 从 sys_load_history 中选择 *
  2. 从 SYS_LOAD_ERROR_DETAIL 中选择 *

在Serverless中的新监控视图 • 系统_查询_历史记录 • 系统_查询_详细信息 • 系统_外部_查询_详细信息 • SYS_LOAD_HISTORY • SYS_LOAD_ERROR_DETAIL • SYS_UNLOAD_HISTORY • SYS_SERVERLESS_USAGE

您不能使用 Amazon Redshift Serverless 查询 STL、STV、SVCS、SVL 和一些 SVV 系统表和视图,某些 SVV 表除外。

有关更多详细信息,请参阅以下内容。 https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-monitoring.html#serverless_views-monitoring

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则