SELECT 'VACUUM FREEZE pg_toast.' || c.relname || ';'AS relation, age(relfrozenxid) as xid_age FROM pg_class c, pg_namespace n WHERE c.relnamespace = n.oid AND n.nspname = 'pg_toast' AND c.relkind = 't' ORDER BY age(relfrozenxid) DESC LIMIT 10; SELECT 'VACUUM FREEZE ' || nspname || '.' || relname || ';' AS relation, age(relfrozenxid) as xid_age FROM pg_class C LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace) WHERE relkind = 'r' ORDER BY age(relfrozenxid) DESC LIMIT 10;
Обсуждают сегодня