select relname,relpages, reltuples from pg_class where relname='t1';
-- 清除 【每个块】的dead tuples,且不会将块的【位置】进行重组,不会更新表page的信息
vacuum t1;
analyze t1;
explain (analyze,buffers) select count(1) from t1;
-- vacuum full清除 【每个块】的dead tuples,并且将块的【位置】进行重组,并且更新表page的信息,同时vacuum会锁表。
select oid,relfilenode from pg_class where relname='t1';
-- oid 类似于oracle , object_id
-- relfilenode 类似于oracle , object_xxx_id
select pg_relation_filepath('t1');
vacuum full;
select pg_relation_filepath('t1');
标签:autovacuum,--,t1,vs,PG,vacuum,relname,select,pg From: https://www.cnblogs.com/Jeona/p/18049088