Re: tsearch2 queries faster than expected

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tsearch2 queries faster than expected
Дата
Msg-id 22296.1086568617@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tsearch2 queries faster than expected  (Jeffrey Melloy <jmelloy@visualdistortion.org>)
Список pgsql-general
Jeffrey Melloy <jmelloy@visualdistortion.org> writes:
> The other day I was playiing around with a query, and randomly changed
> a few things.  I noticed a 10 times speedup and didn't know why.  Both
> queries return identical results.

It looks like the planner's overestimate of the number of rows returned
by the function causes it to insert a Materialize step in the inside of
the nestloop join, so as to avoid recomputing the inner scan multiple
times.  Which is a good idea.  I wonder why it didn't do it in both
cases?

            regards, tom lane

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

Предыдущее
От: Jeffrey Melloy
Дата:
Сообщение: tsearch2 queries faster than expected
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: COPY error handling