Re: pg_get_prepared?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: pg_get_prepared?
Дата
Msg-id 42D76062.3040504@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: pg_get_prepared?  (Volkan YAZICI <volkan.yazici@gmail.com>)
Ответы Re: pg_get_prepared?  (Volkan YAZICI <volkan.yazici@gmail.com>)
Re: pg_get_prepared?  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-hackers

Volkan YAZICI wrote:
> Hi,
> 
> On 7/15/05, Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote:
> 
>>Would it be useful to have a pg_get_prepared(name) function that returns
>>true or false depending on whether or not there is a prepared query of
>>that name?
> 
> 
> (You're mentioning about PHP PostgreSQL API, right?) I couldn't see
> any proper usage area for this. Can you give some examples?

No, I'm talking about a PostgreSQL backend function.

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

> Furthermore, I wondered the steps you'll follow to achieve this. How
> will you check if a prepared stmt exists or not?

Same way that the EXECUTE command checks...

Chris



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

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