pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Etsuro Fujita <efujita@postgresql.org>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Fix some issues with step generation in partition pruning.
Date: Sat, 01 Aug 2020 14:16:30 -0400
Message-ID: <1934344.1596305790@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPmGK15=c8Q-Ac3ogzZp_d6VsfRYSL2tD8zLwy_WYdrMXQhiCQ@mail.gmail.com>
References: <E1k0EwA-0005a6-6C@gemulon.postgresql.org>
	<CA+hUKG+2MEYJ5k5jTd5ttT==TJMXSxy9H-uvhf=+F00Kr1P5XQ@mail.gmail.com>
	<1914116.1596291190@sss.pgh.pa.us>
	<CAPmGK15=c8Q-Ac3ogzZp_d6VsfRYSL2tD8zLwy_WYdrMXQhiCQ@mail.gmail.com>

Etsuro Fujita <etsuro.fujita@gmail.com> writes:
> On Sat, Aug 1, 2020 at 11:13 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Sure looks that way, doesn't it?  I'm just now working to reproduce
>> on gaur's host and poke into it with a debugger.  More news in an
>> hour or two (it's slow :-().

> Thanks for that!

I've concluded that this is probably a compiler bug.  It doesn't fail
at optimization level -O0 or -O2, only -O1; and trying to step through
gen_partprune_steps_internal() suggests that the part_scheme local
variable is changing value, which it surely should not.  Since gaur
is running an ancient gcc version, and -O1 is doubtless a pretty
under-tested optimization level, bugs there are not so surprising.

There wasn't any amazingly good reason to be using -O1 for gaur,
so I've switched the animal to use -O2.  I expect it'll go back
to green in a few hours.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <1934344.1596305790@sss.pgh.pa.us>
Permalink:  ../1934344.1596305790@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1934344.1596305790@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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, etsuro.fujita@gmail.com, thomas.munro@gmail.com, efujita@postgresql.org
  Subject: Re: pgsql: Fix some issues with step generation in partition pruning.
  In-Reply-To: <1934344.1596305790@sss.pgh.pa.us>
  References: <E1k0EwA-0005a6-6C@gemulon.postgresql.org> <CA+hUKG+2MEYJ5k5jTd5ttT==TJMXSxy9H-uvhf=+F00Kr1P5XQ@mail.gmail.com> <1914116.1596291190@sss.pgh.pa.us> <CAPmGK15=c8Q-Ac3ogzZp_d6VsfRYSL2tD8zLwy_WYdrMXQhiCQ@mail.gmail.com> <1934344.1596305790@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