Switch order of restoring globals and createdb.
Globals should be restored first, as createdb relies on roles being present
@@ -307,14 +307,14 @@ class RestoreDatabase(Operation):
self._restore_stats()
return
- if self.context.drop_db:
- self._multitry_createdb()
-
if self.context.restore_global:
self._restore_global(self.context)
if self.context.restore_global == "only":
return
+ if self.context.drop_db:
+ self._multitry_createdb()
+
"""
For full restore with table filter or for the first recurssion of the incremental restore
we first restore the schema, expand the parent partition table name's in the restore table
