Re: Bad plan for join to aggregate of join. - Mailing list pgsql-performance

From Mischa Sandberg
Subject Re: Bad plan for join to aggregate of join.
Date
Msg-id 4507560F.9020906@ca.sophos.com
Whole thread Raw
In response to Re: Bad plan for join to aggregate of join.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Tom Lane wrote:
> Mischa Sandberg <mischa@ca.sophos.com> writes:
>> can PG see that a join on an grouped-by field
>> can be pushed down into the query as an indexable filter?
>
> No.  The GROUP BY serves as a partial optimization fence.  If you're
> concerned about the speed of this query, I recommend making a different
> view in which 'message' is joined inside the GROUP BY.

Thanks.

pgsql-performance by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: Poor performance on seq scan
Next
From: "Jim C. Nasby"
Date:
Subject: Re: