Re: Subplan result caching - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Subplan result caching
Date
Msg-id 1527069810.7039.1.camel@cybertec.at
Whole thread Raw
In response to Subplan result caching  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Subplan result caching
Re: Subplan result caching
List pgsql-hackers
Heikki Linnakangas wrote:
> I've been working on a patch to add a little cache to SubPlans, to speed 
> up queries with correlated subqueries, where the same subquery is 
> currently executed multiple times with the same parameters. The idea is 
> to cache the result of the subplan, with the correlation vars as the 
> cache key.

I like the idea.

I think the cache should be limited in size, perhaps by work_mem.
Also, there probably should be a GUC for this, defaulting to "off".

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Subplan result caching
Next
From: Vladimir Sitnikov
Date:
Subject: Re: Subplan result caching