Re: dummy relation in partitionwise join

2021-10-28 Thread Zhihong Yu
On Thu, Oct 28, 2021 at 2:19 PM David Rowley wrote: > On Fri, 29 Oct 2021 at 04:43, Zhihong Yu wrote: > > I noticed that the dummy relation is skipped in the loop over > rel->live_parts. > > I wonder if the following change is sensible. > > I made the definition of live_parts to be partitions th

Re: dummy relation in partitionwise join

2021-10-28 Thread David Rowley
On Fri, 29 Oct 2021 at 04:43, Zhihong Yu wrote: > I noticed that the dummy relation is skipped in the loop over rel->live_parts. > I wonder if the following change is sensible. I made the definition of live_parts to be partitions that survived partition pruning. There's a few reasons why a RELOP

dummy relation in partitionwise join

2021-10-28 Thread Zhihong Yu
Hi, I was looking at: commit 475dbd0b718de8ac44da144f934651b959e3b705 Author: David Rowley Date: Tue Aug 3 11:47:24 2021 +1200 Track a Bitmapset of non-pruned partitions in RelOptInfo I noticed that the dummy relation is skipped in the loop over rel->live_parts. I wonder if the following