Volkan YAZICI wrote:
Hi,

On 7/15/05, Christopher Kings-Lynne <[EMAIL PROTECTED]> 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


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
      choose an index scan if your joining column's datatypes do not
      match

Reply via email to