Re: [PATCH] Caching for stable expressions with constant arguments v3 - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: [PATCH] Caching for stable expressions with constant arguments v3
Date
Msg-id 4EDD15A3.5020703@enterprisedb.com
Whole thread Raw
In response to Re: [PATCH] Caching for stable expressions with constant arguments v3  (Marti Raudsepp <marti@juffo.org>)
Responses Re: [PATCH] Caching for stable expressions with constant arguments v3  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [PATCH] Caching for stable expressions with constant arguments v3  (Marti Raudsepp <marti@juffo.org>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Marti Raudsepp
Date:
Subject: Re: [PATCH] Caching for stable expressions with constant arguments v3
Next
From: Peter Eisentraut
Date:
Subject: Re: hiding variable-length fields from Form_pg_* structs