I'm fighting with Redshit grants with groups, schemas, default privileges. When I try to check is everything is correct using the HAS_TABLE_PRIVILEGE
select tablename,
HAS_TABLE_PRIVILEGE('analyst', tablename, 'select') as select,
HAS_TABLE_PRIVILEGE('analyst', tablename, 'insert') as insert,
HAS_TABLE_PRIVILEGE('analyst', tablename, 'update') as update,
HAS_TABLE_PRIVILEGE('analyst', tablename, 'delete') as delete,
HAS_TABLE_PRIVILEGE('analyst', tablename, 'references') as references
from pg_tables
where schemaname='datalab'
order by tablename
I get this :
An error occurred when executing the SQL command:
select tablename,
HAS_TABLE_PRIVILEGE('analyst', tablename, 'select') as select,
HAS_TABLE_PRIVILEGE('analyst', tablena...
[Amazon](500310) Invalid operation: relation "dss__transaction" does not exist;
Execution time: 0.2s
1 statement failed.
What the hell is happening here ?