Re: Query slow as Function

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Query slow as Function
Дата
Msg-id 20120218173255.GA29781@tux
обсуждение исходный текст
Ответ на Re: Query slow as Function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Andreas Kretschmer <akretschmer@spamfence.net> writes:
> > You can check the plan with the auto_explain - Extension, and you can
> > force the planner to create a plan based on the actual input-value by
> > using dynamic SQL (EXECUTE 'your query string' inside the function)
>
> Steve *is* using EXECUTE, so that doesn't seem to be the answer.  I'm

Ohhh yes, my fault, sorry...


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query slow as Function
Следующее
От: Steve Horn
Дата:
Сообщение: Query slow as function