Re: Allow pooled connections to list all prepared queries

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Allow pooled connections to list all prepared queries
Дата
Msg-id 41CE2BC4.4040000@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Allow pooled connections to list all prepared queries  (Kris Jurka <books@ejurka.com>)
Список pgsql-patches
> I don't see this as all that helpful for a client interface that does the
> preparation itself.  Possibly it could be used for libpq, but you
> mentioned DBI which should already know what it has or has not prepared.
> The idea of adding a network round trip to detect a prepared statement
> seems like a performance loss, not a gain.  If this is just to avoid
> repreparing the same statement then perhaps something like PREPARE OR
> REPLACE would be more useful.

Yes, PREPARE OR REPLACE was the other thing I thought would be useful.
However, in my example that still means preparing everytime, wasting the
benefits.

You could have:

PREPARE IF NOT EXISTS

:P

Chris

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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Allow pooled connections to list all prepared queries
Следующее
От: Andrew Dunstan
Дата:
Сообщение: MSVC compile errors