Re: Query much slower when run from postgres function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query much slower when run from postgres function
Дата
Msg-id 355.1236705647@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query much slower when run from postgres function  (fche@redhat.com (Frank Ch. Eigler))
Ответы Re: Query much slower when run from postgres function
Список pgsql-performance
fche@redhat.com (Frank Ch. Eigler) writes:
> For a prepared statement, could the planner produce *several* plans,
> if it guesses great sensitivity to the parameter values?  Then it
> could choose amongst them at run time.

We've discussed that in the past.  "Choose at runtime" is a bit more
easily said than done though --- you can't readily flip between plan
choices part way through, if you've already emitted some result rows.

            regards, tom lane

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

Предыдущее
От: henk de wit
Дата:
Сообщение: Re: When does sequential performance matter in PG?
Следующее
От: Greg Smith
Дата:
Сообщение: Re: When does sequential performance matter in PG?