| From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
|---|---|
| To: | Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: pg_get_prepared? |
| Date: | 2005-07-15 07:06:10 |
| Message-ID: | 42D76062.3040504@familyhealth.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Volkan YAZICI wrote:
> Hi,
>
> On 7/15/05, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Neil Conway | 2005-07-15 07:12:39 | Re: pg_get_prepared? |
| Previous Message | Volkan YAZICI | 2005-07-15 06:54:18 | Re: pg_get_prepared? |