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: Provide helper for retrying partial vectored I/O.
Date: Mon, 11 Dec 2023 22:08:40 +0000
Message-ID: <E1rCoS8-009kLx-F7@gemulon.postgresql.org> (raw)

Provide helper for retrying partial vectored I/O.

compute_remaining_iovec() is a re-usable routine for retrying after
pg_readv() or pg_writev() reports a short transfer.  This will gain new
users in a later commit, but can already replace the open-coded
equivalent code in the existing pg_pwritev_with_retry() function.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/CA+hUKGJkOiOCa+mag4BF+zHo7qo=o9CFheB8=g6uT5TUm2gkvA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0c6be59f5e34f44b20d9ec3ffb58c1d9a0bf985e

Modified Files
--------------
src/common/file_utils.c         | 77 ++++++++++++++++++++++++++++-------------
src/include/common/file_utils.h |  5 +++
2 files changed, 57 insertions(+), 25 deletions(-)



Message-ID: <E1rCoS8-009kLx-F7@gemulon.postgresql.org>
Permalink:  ../E1rCoS8-009kLx-F7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rCoS8-009kLx-F7@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Provide helper for retrying partial vectored I/O.
  In-Reply-To: <E1rCoS8-009kLx-F7@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