pg_test_fsync 是一个 服务器实用程序,用于确定 服务器参数 “wal_sync_method”的最快设置。
pg_test_fsync 添加于 PostgreSQL 8.0,最初是作为一个内部工具。
变更历史
- PostgreSQL 9.5
- PostgreSQL 9.3
- 添加了微秒/操作显示(提交 82e42979)
- PostgreSQL 9.1
- 转换为 contrib 模块(提交 606a3d54)
- PostgreSQL 8.0
- 添加为内部工具(提交 9f2696f2)
参考资料
- PostgreSQL 文档: pg_test_fsync
有用链接
- 使用 Postgres pg_test_fsync 工具测试低延迟写入 - Tanel Poder 的 2025 年 5 月博客文章
