Re: Prepared statements considered harmful
От | Martijn van Oosterhout |
---|---|
Тема | Re: Prepared statements considered harmful |
Дата | |
Msg-id | 20060831191432.GL27851@svana.org обсуждение исходный текст |
Ответ на | Re: Prepared statements considered harmful (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Prepared statements considered harmful
|
Список | pgsql-hackers |
On Thu, Aug 31, 2006 at 02:58:48PM -0400, Tom Lane wrote: > The protocol does let you use OOL parameters without retaining a > prepared plan, thanks to the hack introduced later to not plan the > unnamed statement at Parse time, but that's definitely a bit of a wart > on the original protocol design. Maybe it's good enough, or maybe not. Urk, so it was a hack. Unfortunatly it seems something you can't really change without changing the protocol. So what are the options now? A GUC like so: prepare_means_plan = [true|false] So then a prepare will always parse straightaway, but you can choose whether or not you want to plan straightaway or at bind time. Would this be acceptable? Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
В списке pgsql-hackers по дате отправления: