Re: sub-select with aggregate

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: sub-select with aggregate
Date: 2002-10-24 15:19:32
Message-ID: 20021024081033.U20230-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 24 Oct 2002, Tomasz Myrta wrote:

> Now I know the solution - to speed up this query I have to manually
> expose field from sub-query. It works fine, but I still don't know why I
> can't do this opposite way.

The system doesn't realize that it can limit the subquery when the only
things it has is the join clause and the limiting clause on the other
table. Like Tom's message about the other view, it won't imply that
X.foo=12345 from foo=12345 when the exposed foo is B.foo.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Good 2002-10-24 15:20:35 Re: from postgres to oracle
Previous Message Carlos Sousa 2002-10-24 15:01:05 from postgres to oracle