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

  • Mastering PostgreSQL 9.6
  • Hans Jurgen Schonig
  • 121字
  • 2021-07-09 19:57:09

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.

主站蜘蛛池模板: 十堰市| 聂荣县| 额济纳旗| 宣武区| 肥东县| 会泽县| 富民县| 宜都市| 和田市| 岐山县| 雅江县| 保山市| 庐江县| 宣化县| 类乌齐县| 双牌县| 佳木斯市| 桦川县| 阿尔山市| 南和县| 新营市| 贞丰县| 淳化县| 乳山市| 二连浩特市| 阜宁县| 大方县| 馆陶县| 黑水县| 社会| 清远市| 多伦县| 隆安县| 安多县| 固阳县| 九江市| 全州县| 济宁市| 门源| 武夷山市| 夏河县|