-- xxx :用户名
select 'ALTER TABLE ' || table_name || ' OWNER TO xxx;' from information_schema.tables where table_schema='public';
select 'ALTER FUNCTION ' || routine_name || ' OWNER TO xxx;' from information_schema.routines where specific_schema = 'public' ORDER BY routine_name;