Re: WIP: Aggregation push-down
Andy Fan <zhihui.fan1213@gmail.com>
From: Andy Fan <zhihui.fan1213@gmail.com>
To: Antonin Houska <ah@cybertec.at>
Cc: legrand legrand <legrand_legrand@hotmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-04-21T08:37:25Z
Lists: pgsql-hackers
Attachments
- v2-0001-tiny-changes-for-init_grouping_targets.patch (application/octet-stream) patch v2-0001
On Thu, Feb 27, 2020 at 4:50 PM Antonin Houska <ah@cybertec.at> wrote: > legrand legrand <legrand_legrand@hotmail.com> wrote: > > > Antonin Houska-2 wrote > > > > Right now I recall two problems: 1) is the way I currently store > > > RelOptInfo for the grouped relations correct?, 2) how should we handle > > > types for which logical equality does not imply physical (byte-wise) > > > equality? > > > > > > Fortunately it seems now that I'm not the only one who cares about 2), > so > > > this > > > problem might be resolved soon: > > > > > > > https://www.postgresql.org/message-id/CAH2-Wzn3Ee49Gmxb7V1VJ3-AC8fWn-Fr8pfWQebHe8rYRxt5OQ%40mail.gmail.com > > > > > > But 1) still remains. > > > > > > > Hello > > would "pgsql: Add equalimage B-Tree support functions." > > > https://www.postgresql.org/message-id/E1j72NY-0002gi-2B@gemulon.postgresql.org > > Yes, it seems so. I'll adapt the patch soon, hopefully next week. Thanks > for > reminder. > > -- > Antonin Houska > Web: https://www.cybertec-postgresql.com > > Hi Antonin: The more tests on your patch, the more powerful I feel it is! At the same time, I think the most difficult part to understand your design is you can accept any number of generic join clauses, so I guess more explanation on this part may be helpful. At the code level, I did some slight changes on init_grouping_targets which may make the code easier to read. You are free to to use/not use it. Hope your patch get more attention soon! Best Regards Andy Fan
Commits
-
Move estimate_hashagg_tablesize to selfuncs.c, and widen result to double.
- 0c7d53793079 12.0 landed
-
Remove unnecessairly duplicated gram.y productions
- b9a3ef55b253 10.0 cited