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 1l0ETt-0002eW-9l for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jan 2021 02:04:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0ETs-0006SL-6m for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jan 2021 02:04:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0ETr-0006SD-ST for pgsql-hackers@lists.postgresql.org; Fri, 15 Jan 2021 02:04:52 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0ETq-00049P-1n for pgsql-hackers@postgresql.org; Fri, 15 Jan 2021 02:04:51 +0000 Received: from Sergeys-MacBook-Pro.local (unknown [62.217.185.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 2809D21C36C7; Fri, 15 Jan 2021 05:04:49 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1610676289; bh=Bg6AkEXOrqjwpba6c+1VtnWhHPOIjFe+3UT9ogWPIZk=; h=Subject:From:To:Cc:References:Date:In-Reply-To; b=mbFrojDhk2ud3amy6KTXgE3u/tDAvdnGttq2LNG0Iy1fx23RN7ptCC0MKQwSXyAmY oncUhZ8Kovj3cIHk+mqscVpfNVnuTIlLi9dUsLBiNgxWwht/zyt5DDetCPNaLuUPWu Ckht859n+j6VLnLfFaKuysgvRAyKzy2hfxu0MAYA= Subject: Re: pg_preadv() and pg_pwritev() From: Sergey Shinderuk To: Tom Lane Cc: Thomas Munro , pgsql-hackers References: <448b3cb5-0ba0-6dc5-63c7-789e4eebc40b@postgrespro.ru> <1283127.1610554395@sss.pgh.pa.us> <1286060.1610558607@sss.pgh.pa.us> <1297389.1610562046@sss.pgh.pa.us> <1341608.1610580122@sss.pgh.pa.us> <1410650.1610638974@sss.pgh.pa.us> <1418166.1610647514@sss.pgh.pa.u! s> <1419199.1610649100@sss.pgh.pa.us> <1612230.1610662425@sss.pgh.pa.us> <7848499f-488e-4402-a5d5-e1395efca523@postgrespro.ru> Message-ID: Date: Fri, 15 Jan 2021 05:04:48 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <7848499f-488e-4402-a5d5-e1395efca523@postgrespro.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 15.01.2021 04:53, Sergey Shinderuk wrote: > I see that "xcrun --sdk macosx --show-sdk-path" really calls > "/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk > macosx -version Path" under the hood. > ... and caches the result. xcodebuild not called without --no-cache. So it still make sense to fall back on xcodebuild. % sudo dtrace -n 'pid$target::popen:entry { trace(copyinstr(arg0)) }' -c 'xcrun --sdk macosx --show-sdk-path' dtrace: description 'pid$target::popen:entry ' matched 1 probe /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk dtrace: pid 26981 has exited