Re: Memory-Bounded Hash Aggregation
Melanie Plageman <melanieplageman@gmail.com>
On Tue, Feb 18, 2020 at 10:57 AM Tomas Vondra <tomas.vondra@2ndquadrant.com> wrote: > Hi, > > I wanted to take a look at this thread and do a review, but it's not > very clear to me if the recent patches posted here are independent or > how exactly they fit together. I see > > 1) hashagg-20200212-1.patch (2020/02/13 by Jeff) > > 2) refactor.patch (2020/02/13 by Jeff) > > 3) v1-0001-aggregated-unaggregated-cols-together.patch (2020/02/14 by > Melanie) > > I suppose this also confuses the cfbot - it's probably only testing (3) > as it's the last thing posted here, at least I think that's the case. > > And it fails: > > nodeAgg.c: In function ‘find_aggregated_cols_walker’: > nodeAgg.c:1208:2: error: ISO C90 forbids mixed declarations and code > [-Werror=declaration-after-statement] > FindColsContext *find_cols_context = (FindColsContext *) context; > ^ > nodeAgg.c: In function ‘find_unaggregated_cols_walker’: > nodeAgg.c:1225:2: error: ISO C90 forbids mixed declarations and code > [-Werror=declaration-after-statement] > FindColsContext *find_cols_context = (FindColsContext *) context; > ^ > cc1: all warnings being treated as errors > <builtin>: recipe for target 'nodeAgg.o' failed > make[3]: *** [nodeAgg.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > > Oops! Sorry, I would fix the code that those compiler warnings is complaining about, but that would confuse the cfbot more. So, I'll let Jeff decide what he wants to do about the patch at all (e.g. include it in his overall patch or exclude it for now). Anyway it is trivial to move those declarations up, were he to decide to include it. -- Melanie Plageman
Commits
-
Fix costing for disk-based hash aggregation.
- 7351bfeda33b 13.0 landed
-
Fixes for Disk-based Hash Aggregation.
- 64fe60227909 13.0 landed
-
Disk-based Hash Aggregation.
- 1f39bce02154 13.0 landed
-
Extend ExecBuildAggTrans() to support a NULL pointer check.
- c954d4904650 13.0 landed
-
Save calculated transitionSpace in Agg node.
- c11cb17dc55a 13.0 landed
-
Minor refactor of nodeAgg.c.
- 5b618e1f48ae 13.0 landed
-
Logical Tape Set: lazily allocate read buffer.
- 7fdd919ae755 13.0 landed
-
Introduce TupleHashTableHash() and LookupTupleHashEntryHash().
- 4eaea3db150a 13.0 landed
-
Logical Tape Set: use min heap for freelist.
- c02fdc922301 13.0 landed
-
Fix comments in execGrouping.c
- 30d47723fd15 13.0 landed
-
Avoid integer overflow while sifting-up a heap in tuplesort.c.
- 512f67c8d02c 10.0 cited
-
Make the overflow guards in ExecChooseHashTableSize be more protective.
- 8442317beb8f 9.0.0 cited
-
Improve performance of our private version of qsort. Per recent testing,
- a3f0b3d68f9a 8.2.0 cited