Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJiPD-0001Qw-1T for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Oct 2019 18:15:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJiLx-0006fg-RO for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Oct 2019 18:12:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJiKr-0005Iv-7u for pgsql-hackers@lists.postgresql.org; Sun, 13 Oct 2019 18:11:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iJiKo-0004fU-Te for pgsql-hackers@postgresql.org; Sun, 13 Oct 2019 18:11:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9DIAiAl017021; Sun, 13 Oct 2019 14:10:44 -0400 From: Tom Lane To: Noah Misch cc: Michael Paquier , Andres Freund , Heikki Linnakangas , Konstantin Knizhnik , PostgreSQL Hackers , Bernd Helmle Subject: Re: [HACKERS] Deadlock in XLogInsert at AIX In-reply-to: <20191012225747.GB4131753@rfd.leadboat.com> References: <20180116071211.GB3679@paquier.xyz> <20180116165024.4j24kgfqmjmrrqf7@alap3.anarazel.de> <20180117083631.GB3885604@rfd.leadboat.com> <20190831071157.GA3251746@rfd.leadboat.com> <2525.1567276075@sss.pgh.pa.us> <20190831223026.GA3257395@rfd.leadboat.com> <20191005173400.GA3979129@rfd.leadboat.com> <5304.1570475195@sss.pgh.pa.us> <20191009063900.GA4066266@rfd.leadboat.com> <6444.1570641329@sss.pgh.pa.us> <20191012225747.GB4131753@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sat, 12 Oct 2019 15:57:47 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17019.1570990244.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 13 Oct 2019 14:10:44 -0400 Message-ID: <17020.1570990244@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Noah Misch writes: > On Wed, Oct 09, 2019 at 01:15:29PM -0400, Tom Lane wrote: >> * I still think that the added configure test is a waste of build cycle= s. >> It'd be sufficient to test "#ifdef HAVE__BUILTIN_CONSTANT_P" where you >> are testing HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P, because our previous >> buildfarm go-round with this showed that all supported compilers >> interpret "i" this way. > xlc does not interpret "i" that way: > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dhornet&d= t=3D2019-09-14%2016%3A42%3A32&stg=3Dconfig Hm, how'd I miss that while looking at the buildfarm results? Anyway, you're clearly right on this one --- objection withdrawn. >> * I really dislike building the asm calls with macros as you've done >> here. > For a macro local to one C file, I think readability is the relevant met= ric. > In particular, it would be wrong to add arguments to make these more lik= e > header file macros. I think the macros make the code somewhat more read= able, > and you think they make the code less readable. I have removed the macr= os. Personally I definitely find this way more readable, though I agree beauty is in the eye of the beholder. I've checked that this patch set compiles and passes regression tests on my old Apple machines, so it's good to go as far as I can see. regards, tom lane