Re: Prepared statement already exists

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Prepared statement already exists
Date: 2008-11-20 13:45:03
Message-ID: 20081120134503.GM2459@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message WireSpot 2008-11-20 13:56:06 Re: join with redundant results VS simpler join plus multiple selects
Previous Message WireSpot 2008-11-20 13:39:01 Re: Prepared statement already exists