Hi Tom,
> There are other calls to create_append_path in prepunion.c, and I
> think they may all need to do likewise, but I didn't analyze them.
The EXCEPT ALL one needs it too. With only your patch this still
fails:
set enable_hashagg = off;
(select a from d where a = 1 intersect select a from d where a = 1)
except all select a from d where false;
The v2-0001 I posted upthread changes both places. The partial
Append looks safe, its children always have NIL pathkeys.
Thanks,
Shihao