Re: Transient plans versus the SPI API - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Transient plans versus the SPI API
Date
Msg-id m2y5z6i8zc.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Transient plans versus the SPI API  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> A control knob sounds limited. For instance, what if the application
> knows that some parameters will be constant over the time that the plan
> is saved? It would be nice to be able to bind some parameters to come up
> with a generic (but less generic) plan, and then execute it many times.
> Right now that can only be done by inlining such constants in the SQL,
> which is what we want to avoid.

+1

I was already thinking in those term at the application level for the
example I've been using before in this thread, and only reading your
mail I realize that maybe the backend should be able to do that itself.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: mosbench revisited
Next
From: Josh Kupershmidt
Date:
Subject: Re: vacuumlo patch