Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsx1n-00ADt2-Hq for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2023 03:15:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qsx1l-00Gd1P-7K for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2023 03:15:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsx1k-00Gd1H-U1 for pgsql-hackers@lists.postgresql.org; Wed, 18 Oct 2023 03:15:21 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsx1i-0011MP-PO for pgsql-hackers@lists.postgresql.org; Wed, 18 Oct 2023 03:15:20 +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 39I3FE0K3032038; Tue, 17 Oct 2023 23:15:14 -0400 From: Tom Lane To: Thomas Munro cc: Michael Paquier , Noah Misch , Vik Fearing , cary huang , pgsql-hackers@lists.postgresql.org Subject: Re: Add support for AT LOCAL In-reply-to: References: <2188264.1697425365@sss.pgh.pa.us> <2191749.1697427017@sss.pgh.pa.us> <20231016045804.c0@rfd.leadboat.com> <20231016055051.3a@rfd.leadboat.com> <2208907.1697435663@sss.pgh.pa.us> <20231016060510.72@rfd.leadboat.com> <2659915.1697521218@sss.pgh.pa.us> <2726901.1697556666@sss.pgh.pa.us> <2820407.1697561128@sss.pgh.pa.us> <2995973.1697583273@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Wed, 18 Oct 2023 12:11:35 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3032036.1697598914.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 17 Oct 2023 23:15:14 -0400 Message-ID: <3032037.1697598914@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Wed, Oct 18, 2023 at 11:54 AM Tom Lane wrote: >> Should we be testing against xlclang instead? > I hesitated to suggest it because it's not my animal/time we're > talking about but it seems to make more sense. It appears to be IBM's > answer to the nothing-builds-with-this-thing phenomenon, since it > accepts a lot of GCCisms via Clang's adoption of them. From a quick > glance at [1], it lacks the atomics builtins but we have our own > assembler magic for POWER. So maybe it'd all just work™. FWIW, I tried a test build with xlclang 16.1 on cfarm111, and it does seem like it Just Works, modulo a couple of oddities: * fails to compile, due to references to struct in6_addr, unless is included first. Most of our references to tcp.h already do that, but not libpq-be.h and fe-protocol3.c. I'm a bit at a loss why we've not seen this with the existing BF animals on this machine, because AFAICS they're all using the same /usr/include tree. * configure recognizes this as gcc but not Clang, which may or may not be fine: ... checking whether we are using the GNU C compiler... yes ... checking whether xlclang is Clang... no ... This doesn't seem to break anything, but it struck me as odd. configure seems to pick a sane set of compiler options anyway. Interestingly, xlclang shows the same failure with the pre-19fa97731 versions of timetz_zone/timetz_izone as plain xlc does. I guess this is not so astonishing since they presumably share the same codegen backend. But maybe somebody ought to file a bug with IBM? regards, tom lane