Re: Question about explain of index scan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about explain of index scan
Дата
Msg-id 14586.1125675109@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about explain of index scan  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Hannu Krosing <hannu@skype.net> writes:
> On R, 2005-09-02 at 10:31 -0400, Tom Lane wrote:
>> Yes.  However, I don't understand how you got that result; AFAIK the
>> planner should have eliminated the duplicate subclauses.

> the query was similar to this:
> [snip]

Oh, the OR arms are actually *not* equivalent because of the log_tableid
subclauses.  So that explains why canonicalize_qual() didn't eliminate
them.

[ experiments... ]  It looks like 8.0 and up are smart enough to
consolidate the identical extracted indexquals, but not 7.4.
        regards, tom lane


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

Предыдущее
От: "Zeugswetter Andreas DAZ SD"
Дата:
Сообщение: Re: Call for 7.5 feature completion
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Question about explain of index scan