diff --git a/hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java b/hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java index a4a650f..4460c8b 100644 --- a/hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/db/PgSqlDatabaseProcessorFactory.java @@ -27,6 +27,7 @@ public class PgSqlDatabaseProcessorFactory implements EntityProcessorFactory { String aEncoding = AbstractEntity.escapeString(db.getEncoding()); aJDBCP = createPostgreSqlAdminProcessor(); aJDBCP.addSQL("CREATE DATABASE " + aName + " OWNER=" + aOwner + " ENCODING='" + aEncoding + "' TEMPLATE template0"); + aJDBCP.addSQL("REVOKE ALL ON DATABASE " + aName + " FROM public"); return aJDBCP; }