对 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
EXPERTE
gefragt vor 6 Monaten19 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen