In Postgres < 9.3 I can create database and dbuser with the same name.
This stopped to work in Postgres 9.3 as after creating database username_db
cPanel reports that such user already exists when I try to create username_db user.
Consequently pkgacct archives done on cPanel with postgres < 9.3
where dbusername is the same as dbname do not
restore on cPanel with postgres 9.3 and the following can be seen in restorepkg log:
Restoring PostgreSQL databases....ALTER ROLE
CREATE ROLE
Restoring database username_db......
The database “username_db” cannot be added because a user with the same name already exists.
pg_restore: [archiver (db)] connection to database "username_db" failed:
FATAL: database "username_db" does not exist
...
Please share your ideas.
This stopped to work in Postgres 9.3 as after creating database username_db
cPanel reports that such user already exists when I try to create username_db user.
Consequently pkgacct archives done on cPanel with postgres < 9.3
where dbusername is the same as dbname do not
restore on cPanel with postgres 9.3 and the following can be seen in restorepkg log:
Restoring PostgreSQL databases....ALTER ROLE
CREATE ROLE
Restoring database username_db......
The database “username_db” cannot be added because a user with the same name already exists.
pg_restore: [archiver (db)] connection to database "username_db" failed:
FATAL: database "username_db" does not exist
...
Please share your ideas.