On November 21, 2017 6:49:26 AM PST, Tom Lane <t...@sss.pgh.pa.us> wrote: >Zakhar Shapurau <z...@zvs.no> writes: > >Presumably, we could examine the grouping sets to identify column(s) >present in all sets, and then allow the optimization for clauses that >reference only such columns. Or maybe I'm misreading the comment >(but then it needs clarification).
By memory that sounds about right. IIRC we'd some slightly more elaborate logic when GS were introduced, but had to take it out as buggy, and it was too late in the development cycle to come up with something better. Andres Andres -- Sent from my Android device with K-9 Mail. Please excuse my brevity.