Use pg_pwritev_with_retry() instead of write() in dir_open_for_write() to avoid partial writes

Edit
ID 3803
Title Use pg_pwritev_with_retry() instead of write() in dir_open_for_write() to avoid partial writes
Topic Refactoring
Created 2022-08-07 05:10:32
Last modified 2022-11-08 03:41:42 (2 years ago)
Latest email 2022-11-11 09:21:31 (2 years ago)
Status
2022-11: Committed
2022-09: Moved to next CF
Target version
Authors Bharath Rupireddy (bharathrupireddy)
Reviewers Nathan Bossart (bossartn)Become reviewer
Committer Michael Paquier (michael-kun)
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/3803
git checkout commitfest/cf/3803
Emails
Use pg_pwritev_with_retry() instead of write() in dir_open_for_write() to avoid partial writes?
First at 2022-08-05 10:25:26 by Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com>
Latest at 2022-11-11 09:21:31 by John Naylor <john.naylor at enterprisedb.com>
Latest attachment (v9-0001-Use-pg_pwritev_with_retry-instead-of-write-in-wal.patch) at 2022-11-01 03:02:48 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com>
    Attachment (v9-0001-Use-pg_pwritev_with_retry-instead-of-write-in-wal.patch) at 2022-11-01 03:02:48 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (0001-No-need-to-avoid-including-pg_iovec.h.patch) at 2022-10-30 14:44:32 from Alvaro Herrera <alvherre at alvh.no-ip.org> (Patch: Yes)
    Attachment (v9-0001-Use-pg_pwritev_with_retry-instead-of-write-in-wal.patch) at 2022-10-29 06:24:02 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v8-0001-Use-pg_pwritev_with_retry-instead-of-write-in-wal.patch) at 2022-10-28 06:08:51 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v7-0001-Use-pg_pwritev_with_retry-instead-of-write-in-wal.patch) at 2022-10-27 09:27:47 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v6-0001-Move-pg_pwritev_with_retry-to-file_utils.c.patch) at 2022-09-30 02:39:04 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v5-0001-Move-pg_pwritev_with_retry-to-file_utils.c.patch) at 2022-09-29 06:02:32 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (0001-Restore-pg_pread-and-friends.txt) at 2022-09-27 09:30:22 from Thomas Munro <thomas.munro at gmail.com> (Patch: Yes)
    Attachment (v4-0001-Move-pg_pwritev_with_retry-to-file_utils.c.patch) at 2022-09-23 06:16:56 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v3-0001-Move-pg_pwritev_with_retry-to-file_utils.c.patch) at 2022-08-08 12:40:23 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v2-0001-Move-pg_pwritev_with_retry-to-file_utils.c.patch) at 2022-08-07 05:11:49 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
    Attachment (v1-0001-Use-pg_pwritev_with_retry-instead-of-write-in-wal.patch) at 2022-08-07 01:12:11 from Bharath Rupireddy <bharath.rupireddyforpostgres at gmail.com> (Patch: Yes)
History
When Who What
2022-11-08 03:41:42 Michael Paquier (michael-kun) Closed in commitfest 2022-11 with status: Committed
2022-10-27 05:07:55 Michael Paquier (michael-kun) Added michael-kun as committer
2022-10-12 06:09:15 Michael Paquier (michael-kun) Closed in commitfest 2022-09 with status: Moved to next CF
2022-09-30 03:10:14 Nathan Bossart (bossartn) New status: Ready for Committer
2022-09-23 06:04:26 Bharath Rupireddy (bharathrupireddy) New status: Needs review
2022-09-20 23:04:35 Nathan Bossart (bossartn) New status: Waiting on Author
2022-09-20 23:00:46 Nathan Bossart (bossartn) Added bossartn as reviewer
2022-08-07 05:10:44 Bharath Rupireddy (bharathrupireddy) Changed authors to Bharath Rupireddy (bharathrupireddy)
2022-08-07 05:10:33 Bharath Rupireddy (bharathrupireddy) Attached mail thread CALj2ACUq7nAb7=bJNbK3yYmp-SZhJcXFR_pLk8un6XgDzDF3OA@mail.gmail.com
2022-08-07 05:10:32 Bharath Rupireddy (bharathrupireddy) Created patch record
Edit