Re: Hybrid Hash/Nested Loop joins and caching results from subplans
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-11-02T07:43:54Z
Lists: pgsql-hackers
Attachments
- resultcache_basic_deforming.png (image/png)
- resultcache_full_deforming.png (image/png)
On Tue, 20 Oct 2020 at 22:30, David Rowley <dgrowleyml@gmail.com> wrote: > > So far benchmarking shows there's still a regression from the v8 > version of the patch. This is using count(*). An earlier test [1] did > show speedups when we needed to deform tuples returned by the nested > loop node. I've not yet repeated that test again. I was disappointed > to see v9 slower than v8 after having spent about 3 days rewriting the > patch I did some further tests this time with some tuple deforming. Again, it does seem that v9 is slower than v8. Graphs attached Looking at profiles, I don't really see any obvious reason as to why this is. I'm very much inclined to just pursue the v8 patch (separate Result Cache node) and just drop the v9 idea altogether. David
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