You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
We could support specifying an owner when creating a database from a template other than template1 that would reassign ownership of existing objects to that owner. This also implies that --owner and --based-on do not need to be mutually exclusive.
The owner of a database can be looked up with:
SELECT rolname FROM pg_database JOIN pg_authid ON pg_database.datdba = pg_authid.oid WHERE pg_database.datname = 'template1';
The owner can be reassigned with:
REASSIGN OWNED BY postgres TO genome;
The text was updated successfully, but these errors were encountered:
We could support specifying an owner when creating a database from a template other than
template1
that would reassign ownership of existing objects to that owner. This also implies that--owner
and--based-on
do not need to be mutually exclusive.The owner of a database can be looked up with:
The owner can be reassigned with:
The text was updated successfully, but these errors were encountered: