Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzilx-0005st-Qq for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 16:13:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzilw-0008S6-Nj for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 16:13:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzilw-0008Rz-H0 for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 16:13:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzilr-0003vj-Jf for pgsql-hackers@postgresql.org; Wed, 13 Jan 2021 16:13:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10DGDF7J1283128; Wed, 13 Jan 2021 11:13:15 -0500 From: Tom Lane To: Sergey Shinderuk cc: Thomas Munro , pgsql-hackers Subject: Re: pg_preadv() and pg_pwritev() In-reply-to: <448b3cb5-0ba0-6dc5-63c7-789e4eebc40b@postgrespro.ru> References: <341497.1608420857@sss.pgh.pa.us> <20201220224040.evr5pduibvm6dze5@alap3.anarazel.de> <448b3cb5-0ba0-6dc5-63c7-789e4eebc40b@postgrespro.ru> Comments: In-reply-to Sergey Shinderuk message dated "Wed, 13 Jan 2021 13:17:36 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1283126.1610554395.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Jan 2021 11:13:15 -0500 Message-ID: <1283127.1610554395@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sergey Shinderuk writes: > On 13.01.2021 12:56, Thomas Munro wrote: >> On Wed, Jan 13, 2021 at 10:40 PM Sergey Shinderuk >> wrote: >>> note: 'pwritev' has been marked as being introduced in macOS 11.0 here= , >>> but the deployment target is macOS 10.15.0 >> Hrm... So why did "configure" think you have pwritev, then? It seems >> like you must have been using different compilers or options at >> configure time and compile time, no? > No, i've just rerun configure from clean checkout without any options. = > It does think that pwritev is available. I'll try to figure this out = > later and come back to you. Thanks. The symptoms sound consistent with using bleeding-edge Xcode on a Catalina machine ... please report exact OS and Xcode versions. I have a different complaint, using Big Sur and Xcode 12.3: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc= hain/usr/bin/ranlib: file: libpgport.a(pread.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc= hain/usr/bin/ranlib: file: libpgport_shlib.a(pread_shlib.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc= hain/usr/bin/ranlib: file: libpgport_srv.a(pread_srv.o) has no symbols Looks like we need to be more careful about not including pread.c in the build unless it actually has code to contribute. regards, tom lane