📅  最后修改于: 2022-03-11 14:55:05.589000             🧑  作者: Mango
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