After a database is used for a period of time, the table data increases as services grow, or the table data is frequently added, deleted, or modified. As a result, bloating tables and inaccurate statistics are incurred, deteriorating database performance.
You are advised to periodically run VACUUM FULL and ANALYZE on tables that are frequently added, deleted, or modified. Perform the following operations:
To test whether disk fragments affect database performance, use the following function:
SELECT * FROM pgxc_get_stat_dirty_tables(30,100000);