ALTER DATABASE target_database OWNER TO new_onwer;
ALTER DATABASE name OWNER TO new_owner;
pg_dump -Fp -f dbbackup.dmp <dbname> vi dbbackup.dmp :%s/oldowner/newowner/g save and exit