您可以在系统目录中找到这样的东西
原文链接:https://www.f2er.com/postgresql/192786.htmlSELECT d.datname as "Name",pg_catalog.pg_get_userbyid(d.datdba) as "Owner" FROM pg_catalog.pg_database d WHERE d.datname = 'your_name' ORDER BY 1;