Re: pread() and pwrite() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pread() and pwrite()
Date
Msg-id 24643.1541518322@sss.pgh.pa.us
Whole thread Raw
In response to Re: pread() and pwrite()  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Tue, Nov 6, 2018 at 6:23 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> What I suggest is that we *not* try to make this a completely transparent
>> substitute.  Instead, make the functions exported by src/port/ be
>> "pg_pread" and "pg_pwrite", ...

> OK.  But since we're using this from both fd.c and xlog.c, I put that
> into src/include/port.h.

LGTM.  I didn't bother to run an actual test cycle, since it's not
materially different from the previous version as far as portability
is concerned.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Surafel Temesgen
Date:
Subject: Re: pg_dump multi VALUES INSERT
Next
From: Pavel Raiskup
Date:
Subject: Re: plruby: rb_iterate symbol clash with libruby.so