I'm currently using the following postgres query and then copying the data output and running to change all of the tables in a specified schema. What's the best way so that I don't have to always run, such as a stored procedure?
select 'ALTER TABLE ' || table_name || ' OWNER TO new_owner;'
from information_schema.tables
where table_schema = 'specified_schema';