您可以在系统目录中找到这样的东西
SELECT 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;