Re: pg_preadv() and pg_pwritev()

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_preadv() and pg_pwritev()
Date: 2021-01-13 22:22:07
Message-ID: CA+hUKGL7yLpG45aOc4go1HQfhnr0pHWJMA-Vu2CxHG1Y5Z0F0g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 14, 2021 at 9:26 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> * You need to remove pread.o and pwrite.o from the hard-wired
> part of the list in src/port/Makefile, else they get built
> whether needed or not.

Right, done.

> * I don't much like this in fd.h:
>
> @@ -46,6 +46,7 @@
> #include <dirent.h>
>
>
> +struct iovec;
> typedef int File;
>
> because it makes it look like iovec and File are of similar
> status, which they hardly are. Perhaps more like
>
> #include <dirent.h>
> +
> +struct iovec; /* avoid including sys/uio.h here */

Done, except I wrote port/pg_iovec.h.

> I confirm clean builds on Big Sur and Catalina with this.

Thanks for checking. I also checked on Windows via CI. Pushed.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message James Coleman 2021-01-13 22:52:16 Re: [DOC] Document concurrent index builds waiting on each other
Previous Message Stephen Frost 2021-01-13 22:10:38 Re: Change default of checkpoint_completion_target