作者
digoal
日期
2020-12-02
标签
PostgreSQL , pg_stat_wal , 消耗 , fpw , size
背景
PostgreSQL 14已经支持了语句级别的wal统计, 现在这个patch友支持集群级别wal产生统计, 自从上一次reset开始, 整个数据库实例产生了多少比, 多少字节, 多少full page image.
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=01469241b2ff6f17fc0b3f20f01559145ffab29e
```
Track total number of WAL records, FPIs and bytes generated in the cluster.
master github/master
author Fujii Masao fujii@postgresql.org
Wed, 2 Dec 2020 12:00:15 +0800 (13:00 +0900)
committer Fujii Masao fujii@postgresql.org
Wed, 2 Dec 2020 12:00:15 +0800 (13:00 +0900)
commit 01469241b2ff6f17fc0b3f20f01559145ffab29e
tree dc8dd4dbc8ea466e45afc4542215d5cbf395b623 tree | snapshot
parent 91624c2ff8809145880383b0fa84be0ee98f55b5 commit | diff
Track total number of WAL records, FPIs and bytes generated in the cluster.
Commit 6b466bf5f2 allowed pg_stat_statements to track the number of
WAL records, full page images and bytes that each statement generated.
Similarly this commit allows us to track the cluster-wide WAL statistics
counters.
New columns wal_records, wal_fpi and wal_bytes are added into the
pg_stat_wal view, and reports the total number of WAL records,
full page images and bytes generated in the , respectively.
Author: Masahiro Ikeda
Reviewed-by: Amit Kapila, Movead Li, Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/35ef960128b90bfae3b3fdf60a3a860f@oss.nttdata.com
```
PostgreSQL 许愿链接
您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.