grant table to a user postgres code example Example: postgresql grant owner to user ALTER DATABASE name OWNER TO new_owner;