Re: Query plan question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Maksim Likharev" <mlikharev(at)aurigin(dot)com>
Cc: "GENERAL" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query plan question
Date: 2003-06-26 02:53:16
Message-ID: 20619.1056595996@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Maksim Likharev" <mlikharev(at)aurigin(dot)com> writes:
> I was trying to force PG do inner join 2 small tables calcs. necessary
> aggregates per id
> and only after that left outer join with the rest.

AFAICS you're contorting your query to force the evaluation order.
Why are you complaining that PG follows what you told it to do?

I'm having a hard time figuring out exactly what the query's intent
is. What does it look like when you express it in the simplest way
possible, with minimum use of subselects?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Maksim Likharev 2003-06-26 03:45:55 Re: Query plan question
Previous Message Maksim Likharev 2003-06-26 01:56:58 Query plan question