I want to identify all the grants my Redshift user have on various objects in the schema for which I am using the following code, but getting the error.
SELECT
u.usename,
t.schemaname||'.'||t.tablename,
has_table_privilege(u.usename,t.tablename,'select') AS user_has_select_permission
FROM
pg_user u
CROSS JOIN
pg_tables t
WHERE
u.usename = 'userid'
ERROR: 42P01: relation "sql_features" does not exist