PREPARE and stuff

From: PFC <lists(at)peufeu(dot)com>
To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: PREPARE and stuff
Date: 2007-06-23 21:30:06
Message-ID: op.tud8ogmscigqcu@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


Suppose a web application with persistent database connections.
I have some queries which take longer to plan than to execute !

I with there was a way to issue a PREPARE (like "PERSISTENT PREPARE").
Now all Postgres connections would know that prepared statement foo( $1,
$2, $3 ) corresponds to some SQL query, but it wouldn't plan it yet. Just
like a SQL function.
When invoking EXECUTE foo( 1,2,3 ) on any given connection the statement
would get prepared and planned. Then on subsequent invocations I'd just
get the previously prepared plan.

Is this planned ?

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2007-06-23 21:51:00 Re: PREPARE and stuff
Previous Message Greg Smith 2007-06-23 19:44:04 Re: PostgreSQL Configuration Tool for Dummies - feedback adjustable control