On 05.12.2011 20:53, Marti Raudsepp wrote:
> I considered stripping CacheExpr nodes later in PL/pgSQL, but I can't
> remember right now why I rejected that approach (sorry, it's been 2
> months).
Yet another idea would be to leave the CacheExprs there, but provide a
way to reset the caches. PL/pgSQL could then reset the caches between
every invocation. Or pass a flag to ExecInitExpr() to skip through the
CacheExprs.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com