📜  postgresql 显示数据库所有者 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:08.940000             🧑  作者: Mango

代码示例1
SELECT d.datname as "Name",
pg_catalog.pg_get_userbyid(d.datdba) as "Owner"
FROM pg_catalog.pg_database d
WHERE d.datname = 'database_name'
ORDER BY 1;