Re: Use pg_pwrite() in pg_test_fsync

2021-02-14 Thread Thomas Munro
On Sun, Jan 24, 2021 at 1:50 PM Thomas Munro wrote: > On Sun, Jan 10, 2021 at 9:21 AM Thomas Munro wrote: > > I left the fsync-after-closing and non-sync'd tests using write(), > > because they weren't using lseek(). The latter case is arguably a bit > > odd because it's not overwriting pre-allo

Re: Use pg_pwrite() in pg_test_fsync

2021-01-23 Thread Thomas Munro
open and close calls out of the loop. From 1e6bf5e539d22e12cff133fac6ad2e9ecd24ff3e Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Sat, 9 Jan 2021 23:37:18 +1300 Subject: [PATCH v2] Use pg_pwrite() in pg_test_fsync. For consistency with the PostgreSQL behavior we're tring to simulate, use pwrite() in

Use pg_pwrite() in pg_test_fsync

2021-01-09 Thread Thomas Munro
Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Sat, 9 Jan 2021 23:37:18 +1300 Subject: [PATCH] Use pg_pwrite() in pg_test_fsync. For consistency with the PostgreSQL behavior we're tring to simulate, use pwrite() instead of lseek() + write(). --- src/bin/pg_test_fsync/pg_test_fsync.c | 43