pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Bernd Helmle <mailings@oopsware.de>
Subject: Re: [HACKERS] Deadlock in XLogInsert at AIX
Date: Sun, 13 Oct 2019 14:10:44 -0400
Message-ID: <17020.1570990244@sss.pgh.pa.us> (raw)
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>

Noah Misch <noah@leadboat.com> 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 cycles.
>> 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=hornet&dt=2019-09-14%2016%3A42%3A3...

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 metric.
> In particular, it would be wrong to add arguments to make these more like
> header file macros.  I think the macros make the code somewhat more readable,
> and you think they make the code less readable.  I have removed the macros.

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





view thread (51+ messages)

Message-ID: <17020.1570990244@sss.pgh.pa.us>
Permalink:  ../17020.1570990244@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17020.1570990244@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, noah@leadboat.com, michael.paquier@gmail.com, andres@anarazel.de, hlinnaka@iki.fi, k.knizhnik@postgrespro.ru, mailings@oopsware.de
  Subject: Re: [HACKERS] Deadlock in XLogInsert at AIX
  In-Reply-To: <17020.1570990244@sss.pgh.pa.us>
  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> <17020.1570990244@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox