官术网_书友最值得收藏!

Tracking vaccum progress

For many years, people have asked for a progress tracker for vacuum. Finally, PostgreSQL 9.6 makes this wish come true by introducing a new system view. Here is how it works:

postgres=# SELECT * FROM pg_stat_progress_vacuum ?

-[ RECORD 1 ]------+--------------

pid | 29546
datid | 67535
datname | test
relid | 16402
phase | scanning heap
heap_blks_total | 6827
heap_blks_scanned | 77
heap_blks_vacuumed | 0
index_vacuum_count | 0
max_dead_tuples | 154
num_dead_tuples | 0

PostgreSQL will provide detailed information about ongoing vacuum processes so that people can track the progress of this vital operation.

主站蜘蛛池模板: 多伦县| 锦州市| 密山市| 耒阳市| 乐安县| 双城市| 库尔勒市| 长海县| 堆龙德庆县| 天门市| 宁国市| 景宁| 贡觉县| 洮南市| 怀远县| 隆子县| 武穴市| 广水市| 通河县| 宁化县| 郑州市| 吉隆县| 思南县| 钦州市| 临泉县| 盖州市| 宣恩县| 将乐县| 远安县| 广昌县| 闽清县| 长子县| 兖州市| 涟水县| 德化县| 南城县| 肃北| 阿鲁科尔沁旗| 台中市| 陆良县| 昌平区|