Re: Instability in partition_prune test?

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Instability in partition_prune test?
Date: 2018-04-13 01:21:45
Message-ID: CAKJS1f_3A42A8qmpSFGqXtuXtsnCmGVwZQeKbotaSJUL1MCjbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 13 April 2018 at 10:29, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> wrote:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=elver&dt=2018-04-12%2018%3A18%3A05
>
> partition_prune ... FAILED
>
> Subplans Removed: 6
> -> Parallel Seq Scan on ab_a2_b1 (actual rows=0 loops=1)
> Filter: ((a >= $1) AND (a <= $2) AND (b < 4))
> ! -> Parallel Seq Scan on ab_a2_b2 (actual rows=0 loops=1)
> Filter: ((a >= $1) AND (a <= $2) AND (b < 4))
> -> Parallel Seq Scan on ab_a2_b3 (actual rows=0 loops=1)
> Filter: ((a >= $1) AND (a <= $2) AND (b < 4))
> --- 1608,1614 ----
> Subplans Removed: 6
> -> Parallel Seq Scan on ab_a2_b1 (actual rows=0 loops=1)
> Filter: ((a >= $1) AND (a <= $2) AND (b < 4))
> ! -> Parallel Seq Scan on ab_a2_b2 (actual rows=0 loops=2)
> Filter: ((a >= $1) AND (a <= $2) AND (b < 4))
> -> Parallel Seq Scan on ab_a2_b3 (actual rows=0 loops=1)
> Filter: ((a >= $1) AND (a <= $2) AND (b < 4))
>
> This is a Parallel Append with three processes working on three
> subplans. It looks like one of the subplans got executed twice?

Hi Thomas,

Thanks for the report. If you're able to run the scripts in [1] and
confirm you can reproduce the failure, if so, then revert the code
back to 5c0675215 and see if you still get the additional loop.

You'll need to update the expected results once back in 5c0675215 as
the 6 subplans will no longer be removed.

I've been unable to reproduce this so keen to get results from a
machine that can.

[1] https://www.postgresql.org/message-id/CAKJS1f8o2Yd%3DrOP%3DEt3A0FWgF%2BgSAOkFSU6eNhnGzTPV7nN8sQ%40mail.gmail.com

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-04-13 01:29:52 Re: Problem while setting the fpw with SIGHUP
Previous Message Peter Geoghegan 2018-04-13 00:26:33 MinIndexTupleSize seems slightly wrong