From: Andres Freund <andres@anarazel.de>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Add some regression tests that exercise hash join code.
Date: Sun, 3 Dec 2017 10:39:28 -0800
Message-ID: <20171203183928.pbfygs26kyhroo2r@alap3.anarazel.de> (raw)
In-Reply-To: <20171130160644.6oh5jcaipfjxmze2@alap3.anarazel.de>
References: <E1eKCX6-0006hA-GV@gemulon.postgresql.org>
<84690.1512011601@sss.pgh.pa.us>
<CAEepm=3DUQC2-z252N55eOcZBer6DPdM=FzrxH9dZc5vYLsjaA@mail.gmail.com>
<CAEepm=2KnpBvyYvpaBxivaou7wrtfeOAOgqydwYp6KMRP9X80w@mail.gmail.com>
<20171130160644.6oh5jcaipfjxmze2@alap3.anarazel.de>
On 2017-11-30 08:06:44 -0800, Andres Freund wrote:
> Hi,
>
> On 2017-11-30 23:53:55 +1300, Thomas Munro wrote:
> > On Thu, Nov 30, 2017 at 4:47 PM, Thomas Munro
> > <thomas.munro@enterprisedb.com> wrote:
> > > On Thu, Nov 30, 2017 at 4:13 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > >> Andres Freund <andres@anarazel.de> writes:
> > >>> Add some regression tests that exercise hash join code.
> > >>
> > >> At least one buildfarm member doesn't like this ...
> > >
> > > $$);
> > > initially_multibatch | increased_batches
> > > ----------------------+-------------------
> > > ! t | f
> > > (1 row)
> > >
> > > rollback to settings;
> > > --- 6002,6008 ----
> > > $$);
> > > initially_multibatch | increased_batches
> > > ----------------------+-------------------
> > > ! |
> > > (1 row)
> > >
> > > Hmm. aholehole didn't give me the hash join EXPLAIN ANALYZE output.
> > > All other animals are fine so far. Gah. My guess is that this is the
> > > following unlikely sequence:
> > >
> > > 1. Worker launched.
> > > 2. Leader descheduled.
> > > 3. Worker runs whole join.
> > > 4. Leader awakes from slumber, begins running plan and tries to scan
> > > outer relation, sees EOF, takes empty-outer optimisation and skips
> > > building hash table.
> > > 5. Explain has no data.
> > >
> > > It's arguably a bug that EXPLAIN ANALYZE can fail to give you what you
> > > asked for because of details of timing and I have a patch in
> > > development to fix that but it's not yet baked. Hmm. Wondering if
> > > there is a quick way to avoid that case in the meantime...
> >
> > A couple more have failed in the same way. If my theory above is
> > correct, the attached should fix the problem by skipping the affected
> > bits of the test for now. Once we fix EXPLAIN so that it reliably
> > prints hash table info no matter what (for which I should have a patch
> > fairly soon), we can uncomment them again. Is that an acceptable
> > solution for now? BTW this commit tipped nodeHash.c from yellow to
> > green on coverage.postgresql.org :-)
>
> At the current rate of failure I'm slightly inclined to just leave the
> occasionally failing test, which sounds like an actual bug imo, in place
> till we have the fix. But if there's any pushback I'll go with your
> disablign patch till then.
Thomas, any updates on the status of that explain fix?
Greetings,
Andres Freund
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: andres@anarazel.de, thomas.munro@enterprisedb.com, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add some regression tests that exercise hash join code.
In-Reply-To: <20171203183928.pbfygs26kyhroo2r@alap3.anarazel.de>
References: <E1eKCX6-0006hA-GV@gemulon.postgresql.org> <84690.1512011601@sss.pgh.pa.us> <CAEepm=3DUQC2-z252N55eOcZBer6DPdM=FzrxH9dZc5vYLsjaA@mail.gmail.com> <CAEepm=2KnpBvyYvpaBxivaou7wrtfeOAOgqydwYp6KMRP9X80w@mail.gmail.com> <20171130160644.6oh5jcaipfjxmze2@alap3.anarazel.de> <20171203183928.pbfygs26kyhroo2r@alap3.anarazel.de>
* 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