SET vacuum_cost_delay = 40;
SET vacuum_cost_limit = 200;
CREATE TEMPORARY TABLE pg_upgrade_fix AS SELECT 'VACUUM FREEZE pg_toast.' || c.relname || ';' 	FROM    pg_class c, pg_namespace n WHERE   c.relnamespace = n.oid AND n.nspname = 'pg_toast' AND c.relkind = 't' ORDER by c.oid;
\copy pg_upgrade_fix TO '/local/local1/pg_upgrade_tmp.sql'
\i /local/local1/pg_upgrade_tmp.sql;
