• Tom Lane's avatar
    Fix partial aggregation for the case of a degenerate GROUP BY clause. · e1b449be
    Tom Lane authored
    The plan generated for sorted partial aggregation with "GROUP BY constant"
    included a Sort node with no sort keys, which the executor does not like.
    
    Per report from Steve Randall.  I'd add a regression test case if I could
    think of a compact one, but it doesn't seem worth expending lots of cycles
    on.
    
    Report: <CABVd52UAdGXpg_rCk46egpNKYdXOzCjuJ1zG26E2xBe_8bj+Fg@mail.gmail.com>
    e1b449be
planner.c 165 KB