Redshift superuser permission denied to STL tables

0

After creating a Redshift Serverless cluster with superuser admin I cannot query the view STL_LOAD_ERRORS or the table STLL_LOAD_ERRORS. I'm getting a permission denied error for the following query:

SELECT *
FROM dev.pg_catalog.stl_load_errors
LIMIT 10

[42501] ERROR: permission denied for relation stl_load_errors

I have confirmed that my current user is a superuser using the query:

SELECT * FROM pg_user

What am I missing here? Shouldn't the super user be able to view all tables?

Here's some of the documentation I've already referenced:

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

feita há 2 anos4238 visualizações
2 Respostas
1
Resposta aceita

Please try

  1. select * from sys_load_history

  2. select * from SYS_LOAD_ERROR_DETAIL

New monitoring views in serverless • SYS_QUERY_HISTORY • SYS_QUERY_DETAIL • SYS_EXTERNAL_QUERY_DETAIL • SYS_LOAD_HISTORY • SYS_LOAD_ERROR_DETAIL • SYS_UNLOAD_HISTORY • SYS_SERVERLESS_USAGE

You can't query STL, STV, SVCS, SVL, and some SVV system tables and views with Amazon Redshift Serverless, except certain SVV tables.

for additional details please refer following. https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-monitoring.html#serverless_views-monitoring

AWS
ESPECIALISTA
Nita_S
respondido há 2 anos
0

Recently we migrated from provisioned to server less cluster. We are using svl_stored_proc_messages to get information about stored procedure messages. but it is not working in serverless. is there an alternative for this please?

Raj
respondido há 4 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas