Re: Prepared statements considered harmful

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Prepared statements considered harmful
Дата
Msg-id 200608311519.23296.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Prepared statements considered harmful  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: Prepared statements considered harmful
Re: Prepared statements considered harmful
Список pgsql-hackers
Am Donnerstag, 31. August 2006 14:52 schrieb Csaba Nagy:
> So for the like query case you could save 2 plans, one for the indexable
> case, one for the not indexable case. Then at runtime you choose the
> proper one based on the pattern value.

OK, why don't you work out an example.  Let's look at this query:

SELECT * FROM t1 WHERE a LIKE $1;

What two plans would you prepare?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: Prepared statements considered harmful
Следующее
От: "Zeugswetter Andreas DCP SD"
Дата:
Сообщение: Re: Prepared statements considered harmful