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-23T01:51:17Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > Except for the annoying issue that that we pervasively use Lists as > expressions, I'd argue that we should actually cache "subtree > volatility" in Expr nodes, similar to the way we use OpExpr.opfuncid > etc. That'd allow us to make contain_volatile_functions() very cheap ... and completely break changing volatility with ALTER FUNCTION. The case of OpExpr.opfuncid is okay only because we don't provide a way to switch an operator's underlying function. (See also 9f1255ac8.) It'd certainly be desirable to reduce the number of duplicated function property lookups in the planner, but I'm not convinced that that is a good way to go about it. 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