Use pg_pwrite() in pg_test_fsync.
Thomas Munro <tmunro@postgresql.org>
Use pg_pwrite() in pg_test_fsync. For consistency with the PostgreSQL behavior this test program is intended to simulate, use pwrite() instead of lseek() + write(). Also fix the final "non-sync" test, which was opening and closing the file for every write. Discussion: https://postgr.es/m/CA%2BhUKGJjjid2BJsvjMALBTduo1ogdx2SPYaTQL3wAy8y2hc4nw%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_test_fsync/pg_test_fsync.c | modified | +28 −23 |
Discussion
- Use pg_pwrite() in pg_test_fsync 3 messages · 2021-01-09 → 2021-02-15