fix must explicitly specify table with oid for older pg versions
This commit is contained in:
parent
5a70749308
commit
97b24a8bf3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue