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 1l2zyr-0001TY-Ex for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Jan 2021 17:12:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2zyq-00011z-Ap for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Jan 2021 17:12:16 +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 1l2zyq-00011s-4D for pgsql-hackers@lists.postgresql.org; Fri, 22 Jan 2021 17:12:16 +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 1l2zyo-0004mC-3o for pgsql-hackers@lists.postgresql.org; Fri, 22 Jan 2021 17:12:15 +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 10MHCB441166797; Fri, 22 Jan 2021 12:12:12 -0500 From: Tom Lane To: Sergey Shinderuk cc: James Hilliard , pgsql-hackers@lists.postgresql.org, Thomas Munro Subject: Re: [PATCH 1/1] Fix detection of pwritev support for OSX. In-reply-to: <6d43a157-e51a-6449-0b47-94d133829afc@postgrespro.ru> References: <20210119111625.20435-1-james.hilliard1@gmail.com> <479372.1611070041@sss.pgh.pa.us> <480660.1611071845@sss.pgh.pa.us> <483800.1611076636@sss.pgh.pa.us> <522433.1611089678@sss.pgh.pa.us> <559755.1611106628@sss.pgh.pa.us> <791992.1611184078@sss.pgh.pa.us> <915981.1611254324@sss.pgh.pa.us> <6d43a157-e51a-6449-0b47-94d133829afc@postgrespro.ru> Comments: In-reply-to Sergey Shinderuk message dated "Fri, 22 Jan 2021 02:32:46 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1166795.1611335531.1@sss.pgh.pa.us> Date: Fri, 22 Jan 2021 12:12:11 -0500 Message-ID: <1166796.1611335531@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sergey Shinderuk writes: > I rejected to install CLT and abandoned Homebrew. Then I just cloned and > built Postgres successfully. So it looks like Xcode is really enough, at > least on a recent macOS version. Hm. I seem to recall having had to install CLT as well as Xcode back in the day, but maybe Apple improved that. On the other side of the coin, it also seems to be possible to build PG with only CLT and not Xcode. I didn't try to verify that with a scorched-earth test, but I did trash Xcode (and empty trash) on my wife's Mac, and I could still build and "make check" with only the CLT in place. [ pokes more carefully... ] Ah-hah, I see why I needed the CLT. I bet you'll find that you can't build from "git clean -dfx" state with only Xcode, because comparing the contents of /Applications/Xcode.app/Contents/Developer/usr/bin and /Library/Developer/CommandLineTools/usr/bin on my own Mac, I observe that only the CLT provides bison and flex. I also see install_name_tool only in the CLT; we don't depend on that today, but may soon (see the latest thread about coping with SIP). On the whole it looks like we should recommend installing the CLT and not bothering with Xcode, which is about 10X the size: $ du -hs /Library/Developer/CommandLineTools 1.1G /Library/Developer/CommandLineTools $ du -hs /Applications/Xcode.app 15G /Applications/Xcode.app regards, tom lane