Re: Query performs badly with materialize node

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query performs badly with materialize node
Дата
Msg-id 17038.1316444469@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query performs badly with materialize node  (Ingmar Brouns <swingi@gmail.com>)
Ответы Re: Query performs badly with materialize node
Список pgsql-general
Ingmar Brouns <swingi@gmail.com> writes:
> What I find strange is that there is a conditionless index scan on
> participates, retrieving all its rows, and then a nested loop over all those
> rows and a materialize node.

Yeah, that indexscan looks pretty odd to me too, but it's likely
explained by the context that you didn't provide.  The indexscan might
have been chosen because it provides output that's pre-sorted in the
order required by some higher-level part of the plan.  Or maybe you've
disabled seqscans, or done some other fooling with the planner cost
parameters.  There is certainly no way that a condition-free indexscan
will look cheaper than a seqscan with anything close to the default cost
settings.

In short: if you want to get useful commentary on your problem, you
need to provide a more complete picture.

            regards, tom lane

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: How to pass array from .pgc to sql function
Следующее
От: David Johnston
Дата:
Сообщение: Re: General guidance if there is an in dadabase solution or should stay as excel vba solution.