postgre alter db owner code example
Example 1: postgresql db owner change
ALTER DATABASE target_database OWNER TO new_onwer;
Example 2: postgres alter table owner
ALTER TABLE <tablename> OWNER TO <username>
ALTER DATABASE target_database OWNER TO new_onwer;
ALTER TABLE <tablename> OWNER TO <username>