他的回复:
用这个查update和delete的条数,也能推算是否需要做vacuum full SELECT n.nspname ='schemaname', c.relname ='tablename', pg_stat_get_tuples_deleted(x.pcrelid) as deleted, pg_stat_get_tuples_updated(x.pcrelid) as updated FROM pg_class c INNER JOIN pg_namespace n ON n.oid = c.relnamespace INNER JOIN pgxc_class x ON x.pcrelid = c.oid WHERE c.relkind = 'r' and pclocatortype = 'H';