Re: Problem getting plpgsql to choose the right query plan

Поиск
Список
Период
Сортировка
От Niklas Johansson
Тема Re: Problem getting plpgsql to choose the right query plan
Дата
Msg-id 0A3909E6-6D27-40D7-9AF0-380D1A2BC20C@tele2.se
обсуждение исходный текст
Ответ на Problem getting plpgsql to choose the right query plan  ("Helge Elvik" <helge.elvik@gispartner.no>)
Список pgsql-general
On 13 mar 2006, at 11.35, Helge Elvik wrote:
> Is there any way for me to force plpgsql not to use a cached query
> plan, but instead figure out what’s best based on the LIKE-string
> that actually get passed to the function?
You can build the query as a string and EXECUTE it. This will force a
new plan to be prepared.

http://www.postgresql.org/docs/8.1/interactive/plpgsql-
statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN

Sincerely,

Niklas Johansson





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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Wal -long transaction
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Wal -long transaction