Re: Prepared statement already exists - Mailing list pgsql-general

From Sam Mason
Subject Re: Prepared statement already exists
Date
Msg-id 20081120134503.GM2459@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Prepared statement already exists  (WireSpot <wirespot@gmail.com>)
Responses Re: Prepared statement already exists  (WireSpot <wirespot@gmail.com>)
List pgsql-general
On Wed, Nov 19, 2008 at 09:42:33PM +0200, WireSpot wrote:
> I also imagined some workarounds in the code (PHP), such as defining a
> global/static hash table and registering statement names with it. But
> I'd like to know if there's a better way.

Have you thought about using stored procedures instead of prepared
statements?  No need to register them or keep track of that state.


  Sam

pgsql-general by date:

Previous
From: WireSpot
Date:
Subject: Re: Prepared statement already exists
Next
From: WireSpot
Date:
Subject: Re: join with redundant results VS simpler join plus multiple selects