Re: [sqlsmith] ERROR: partition missing from subplans

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Andreas Seltenreich <seltenreich@gmx.de>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-08-16T16:01:30Z
Lists: pgsql-hackers
On 2018-Aug-11, David Rowley wrote:

> On 11 August 2018 at 14:09, David Rowley <david.rowley@2ndquadrant.com> wrote:
> > So my best idea on a
> > fix is simply to remove the code that raises the error.
> 
> Here's a patch to do that. I've also included a further simplified
> test to ensure this case performs run-time pruning correctly.

Looks good, pushed.  I edited the comment a little bit.

Thanks!

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


Commits

  1. Fix executor prune failure when plan already pruned