📌  相关文章
📜  如何检查某人对 redhisft 外部架构的权限 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:05.589000             🧑  作者: Mango

代码示例1
SELECT schemaname, objectname, usename,
       has_schema_privilege(usrs.usename, schemaname, 'usage')  AS usage
FROM(
    SELECT schemaname, tablename AS objectname, schemaname + '.' + tablename AS fullobj
    FROM SVV_EXTERNAL_TABLES
    ) AS objs,(SELECT * FROM pg_user) AS usrs