Re: Query plan question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query plan question
Дата
Msg-id 20619.1056595996@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query plan question  ("Maksim Likharev" <mlikharev@aurigin.com>)
Список pgsql-general
"Maksim Likharev" <mlikharev@aurigin.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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Maksim Likharev"
Дата:
Сообщение: Query plan question
Следующее
От: "Maksim Likharev"
Дата:
Сообщение: Re: Query plan question