Re: Hybrid Hash/Nested Loop joins and caching results from subplans
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Rowley <dgrowleyml@gmail.com>,
Konstantin Knizhnik <k.knizhnik@postgrespro.ru>,
Andy Fan <zhihui.fan1213@gmail.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-02-23T05:43:47Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > We could add a wrapper node around "planner expressions" that stores > metadata about them during planning, without those properties leaking > over expressions used at other times. E.g. having > preprocess_expression() return a PlannerExpr that that points to the > expression as preprocess_expression returns it today. That'd make it > easy to cache information like volatility. But it also seems > prohibitively invasive :(. I doubt it's that bad. We could cache such info in RestrictInfo for quals, or PathTarget for tlists, without much new notational overhead. That doesn't cover everything the planner deals with of course, but it would cover enough that you'd be chasing pretty small returns to worry about more. regards, tom lane
Commits
-
Add Result Cache executor node (take 2)
- 9eacee2e62d8 14.0 landed
-
Add Result Cache executor node
- b6002a796dc0 14.0 landed
-
Allow estimate_num_groups() to pass back further details about the estimation
- ed934d4fa30f 14.0 landed
-
Allow users of simplehash.h to perform direct deletions
- ff53d7b159b9 14.0 landed
-
Cache if PathTarget and RestrictInfos contain volatile functions
- f58b230ed0db 14.0 landed
-
Fix pull_varnos' miscomputation of relids set for a PlaceHolderVar.
- 55dc86eca70b 14.0 cited