Re: pread() and pwrite()

Jesper Pedersen <jesper.pedersen@redhat.com>

From: Jesper Pedersen <jesper.pedersen@redhat.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Oskari Saarenmaa <os@ohmu.fi>, Pg Hackers <pgsql-hackers@postgresql.org>, Tobias Oberstein <tobias.oberstein@gmail.com>
Date: 2018-09-05T18:42:00Z
Lists: pgsql-hackers
Hi,

On 07/26/2018 10:04 PM, Thomas Munro wrote:
> Done.  Rebased.
> 

This needs a rebase again.

Once resolved the patch passes make check-world, and a strace analysis 
shows the associated read()/write() have been turned into 
pread64()/pwrite64(). All lseek()'s are SEEK_END's.

Best regards,
  Jesper


Commits

  1. Use pg_pread() and pg_pwrite() for data files and WAL.

  2. Provide pg_pread() and pg_pwrite() for random I/O.

  3. Convert some long lists in configure.in to one-line-per-entry style.