Re: pg_get_prepared?

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: pg_get_prepared?
Дата
Msg-id 7104a73705071500171babd4ff@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_get_prepared?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
On 7/15/05, Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote:
> > You're mentioning about PHP PostgreSQL API, right?
>
> No, I'm talking about a PostgreSQL backend function.

Sorry, when you give a name like pg_get_prepared() (which is used in
PHP PostgreSQL API functions), I thought it's for PHP too.

> The use case is when you want to prepare a query, but only if it's not
> already prepared on that connection.

As Neil Conway explained on IRC - this feature can be useful for
connection pools. E.g. avoid re-preparing a stmt. if a previous client
using the conn. already prepared it.

> Same way that the EXECUTE command checks.

If it'll be done from backend, then there's no problem. I wondered the
PHP side of it. Anyway, it wasn't a PHP function.

Regards.


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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: pg_get_prepared?
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [Bizgres-general] A Guide to Constraint Exclusion