fix must explicitly specify table with oid for older pg versions

This commit is contained in:
eelke 2021-04-15 16:27:48 +02:00
parent 5a70749308
commit 97b24a8bf3

View file

@ -6,7 +6,7 @@ std::string PgDatabaseContainer::getLoadQuery() const
return return
"SELECT pg_database.oid, datname, datdba, encoding, pg_encoding_to_char(encoding), datcollate,\n" "SELECT pg_database.oid, datname, datdba, encoding, pg_encoding_to_char(encoding), datcollate,\n"
" datctype, datistemplate, datallowconn, datconnlimit, dattablespace, \n" " datctype, datistemplate, datallowconn, datconnlimit, dattablespace, \n"
" case when has_database_privilege(current_role, oid, 'connect') then pg_database_size(oid) else -1 end,\n" " case when has_database_privilege(current_role, pg_database.oid, 'connect') then pg_database_size(pg_database.oid) else -1 end,\n"
" d.description, datacl\n" " d.description, datacl\n"
"FROM pg_database\n" "FROM pg_database\n"
" LEFT JOIN pg_catalog.pg_shdescription AS d ON (objoid=pg_database.oid)"; " LEFT JOIN pg_catalog.pg_shdescription AS d ON (objoid=pg_database.oid)";