postgresql/src/bin/pg_test_fsync
Thomas Munro 2c8b42b50d 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
2021-02-15 15:23:12 +13:00
..
po Translation updates 2020-05-18 12:49:30 +02:00
t Improve range checks of options for pg_test_fsync and pg_test_timing 2020-09-28 10:13:59 +09:00
.gitignore Improve range checks of options for pg_test_fsync and pg_test_timing 2020-09-28 10:13:59 +09:00
Makefile Clean up after newly-added tests for pg_test_fsync and pg_test_timing. 2020-10-07 13:27:33 -04:00
nls.mk Translation updates 2020-05-11 13:14:32 +02:00
pg_test_fsync.c Use pg_pwrite() in pg_test_fsync. 2021-02-15 15:23:12 +13:00