Re: FE/BE protocol vs. parameterized queries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FE/BE protocol vs. parameterized queries
Дата
Msg-id 13214.1157405404@sss.pgh.pa.us
обсуждение исходный текст
Ответ на FE/BE protocol vs. parameterized queries  (Andrew - Supernews <andrew+nonews@supernews.com>)
Ответы Re: FE/BE protocol vs. parameterized queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Andrew - Supernews <andrew+nonews@supernews.com> writes:
> I believe this could usefully (and transparently to clients) be changed
> so that Bind on the unnamed statement does _not_ store the plan back in
> the unnamed statement's context, but instead produces a plan which is
> only used _for that specific portal_.

That seems OK to me, since we document the unnamed statement/portal as
being optimized for one-shot execution.  Unfortunately it's probably
less than a trivial change, because the planner never assumes that
Params are constants; that would have to be changed somehow.
        regards, tom lane


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

Предыдущее
От: Andrew - Supernews
Дата:
Сообщение: FE/BE protocol vs. parameterized queries
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Unable to post to -patches (was: Visual C++