can't run alter database ... owner to postgres code example Example: how to change owner in postgres ALTER DATABASE name OWNER TO new_owner;