From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Provide helper for retrying partial vectored I/O. |
Date: | 2023-12-11 22:08:40 |
Message-ID: | E1rCoS8-009kLx-F7@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)iki(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2023-12-12 00:15:55 | pgsql: Provide vectored variants of FileRead() and FileWrite(). |
Previous Message | Thomas Munro | 2023-12-11 20:49:27 | pgsql: Define unconstify() and unvolatize() for C++. |