Re: Fixing Grittner's planner issues

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fixing Grittner's planner issues
Дата
Msg-id 21640.1233855433@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fixing Grittner's planner issues  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote: 
>> If it referred to any variables of the left side of the upper join
>> (ie, "C" here) then we couldn't convert it to a separate join at
> all.
> The only thing that comes to mind for me that seems possibly helpful
> is that we have typically considered it obvious that in the context of
> the NOT EXISTS clause we have already established that ("CD"."caseNo"
> = "C"."caseNo") AND ("CD"."countyNo" = "C"."countyNo") and have not
> been at all consistent about whether we used C or CD to compare to
> CD2.  Our operating assumption has been that it didn't matter in that
> context.

Yeah, I had thought about suggesting that you could use that to
determine which type of plan got chosen, but immediately dismissed it
as too bletcherous for words.  In any case the same type of problem
could occur in scenarios where the upper and lower join conditions
aren't so neatly related.
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Fixing Grittner's planner issues
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Hot standby, recovery infra