I want to change owner of all tables in one particular database using
REASSIGN OWNED BY postgres TO myuser
but it shows:
ERROR: cannot reassign ownership of objects owned by role postgres because they are required by the database system
I think it's because there are more databases in this system, but I want to reassign owners only in one specified databse (database1).
Is there a way?