Jim Nasby <jim(at)nasby(dot)net> writes:> FWIW, it's definitely an issue of not being able to push down past the GROUP BY:
I think it's not that so much as the EXISTS inside a LEFT JOIN.
regards, tom lane