Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Bad plan for join to aggregate of join.


  • From: Mischa Sandberg <mischa(at)ca(dot)sophos(dot)com>
  • To: pgsql-performance(at)postgresql(dot)org
  • Subject: Re: Bad plan for join to aggregate of join.
  • Date: Tue, 12 Sep 2006 17:51:27 -0700
  • Message-id: <4507560F(dot)9020906(at)ca(dot)sophos(dot)com>

Tom Lane wrote:
Mischa Sandberg <mischa(at)ca(dot)sophos(dot)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.



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group