Re: Prepared statements considered harmful - Mailing list pgsql-hackers

From Csaba Nagy
Subject Re: Prepared statements considered harmful
Date
Msg-id 1157026279.3033.22.camel@coppola.muc.ecircle.de
Whole thread Raw
In response to Prepared statements considered harmful  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Prepared statements considered harmful
List pgsql-hackers
> - Redefine "prepared" to mean "parsed" rather than "parsed and planned".

How about "prepared" means really "prepared"... in the sense of parsed,
analyzed all sensible plans, and save a meta-plan which based on current
statistics and parameter values chooses one of the considered (and
cached) plans ?

That would be immune both to statistics changes and parameter value
changes in certain limits. It would be also a lot more complex too than
a simple plan...

Cheers,
Csaba.






pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Prepared statements considered harmful
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: Prepared statements considered harmful