Re: Automatic function replanning

Поиск
Список
Период
Сортировка
От Lukas Smith
Тема Re: Automatic function replanning
Дата
Msg-id 43AB12B2.1080803@pooteeweet.org
обсуждение исходный текст
Ответ на Re: Automatic function replanning  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Automatic function replanning
Re: Automatic function replanning
Список pgsql-hackers
Bruce Momjian wrote:

>> Maybe I am mixing up separate concepts (are bound variables and prepared 
>> statements different concepts?) here. I also do not really understand if 
>> that means that oracle does not store a query plan for a prepared query 
>> or if it just does some special handling in case it knows that a 
>> prepared statement column is known to have a highly varying selectivity 
>> per value.
> 
> What the Oralce manual means I think is that the plan of the query is
> delayed until the _first_ EXECUTE, so it has some values to use in the
> optimizer.  The problem is that later queries might use constants of
> greatly different cardinality.

ok .. which just goes to tell to not use prepared statements for a 
column with highly varying selectivity ..?

or is there a realistic shot at fixing this use case?

regards,
Lukas



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Automatic function replanning
Следующее
От: David Fetter
Дата:
Сообщение: Re: PL/pgSQL proposal: using list of scalars in assign stmts, fore and fors stmts