In some scenarios, we may observe that the "vacuum freeze" command failed to reduce the age of the table. for example:
gpadmin=# select relname, relfrozenxid, age(relfrozenxid) from pg_class where oid = 'vacuum_test_heap_table'::regclass::oid;
relname | relfrozenxid | age
------------------------+--------------+-----
vacuum_test_heap_table | 1955 | 101
(1 row)
gpadmin=# vacuum FREEZE vacuum_test_heap_table;
VACUUM
gpadmin=# select relname, relfrozenxid, age(relfrozenxid) from pg_class where oid = 'vacuum_test_heap_table'::regclass::oid;
relname | relfrozenxid | age
------------------------+--------------+-----
vacuum_test_heap_table | 1955 | 102
(1 row)
But if we do the same "vacuum freeze" command again, the age will be reduced:
gpadmin=# vacuum FREEZE vacuum_test_heap_table;
VACUUM
gpadmin=# select relname, relfrozenxid, age(relfrozenxid) from pg_class where oid = 'vacuum_test_heap_table'::regclass::oid;
relname | relfrozenxid | age
------------------------+--------------+-----
vacuum_test_heap_table | 2057 | 1
(1 row)