pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use pg_pwrite() in pg_test_fsync.
Date: Mon, 15 Feb 2021 02:24:14 +0000
Message-ID: <E1lBTYc-0006TP-TU@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2c8b42b50df6cc5ba6987c400a857d6bbfdf0300

Modified Files
--------------
src/bin/pg_test_fsync/pg_test_fsync.c | 51 +++++++++++++++++++----------------
1 file changed, 28 insertions(+), 23 deletions(-)



Message-ID: <E1lBTYc-0006TP-TU@gemulon.postgresql.org>
Permalink:  ../E1lBTYc-0006TP-TU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lBTYc-0006TP-TU@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Use pg_pwrite() in pg_test_fsync.
  In-Reply-To: <E1lBTYc-0006TP-TU@gemulon.postgresql.org>
  References: <E1lBTYc-0006TP-TU@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox