Re: [PATCH] Caching for stable expressions with constant arguments v3

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Marti Raudsepp <marti(at)juffo(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>
Subject: Re: [PATCH] Caching for stable expressions with constant arguments v3
Date: 2011-12-05 19:04:03
Message-ID: 4EDD15A3.5020703@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2011-12-05 19:27:03 Re: hiding variable-length fields from Form_pg_* structs
Previous Message Marti Raudsepp 2011-12-05 18:53:11 Re: [PATCH] Caching for stable expressions with constant arguments v3