From: | XueJing Zhao <zxuejing(at)vmware(dot)com> |
---|---|
To: | Richard Guo <guofenglinux(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Reply: Remove useless param for create_groupingsets_path |
Date: | 2022-06-15 06:03:59 |
Message-ID: | DM6PR05MB649293473534B1E4AE17B226B7AD9@DM6PR05MB6492.namprd05.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi, Richard
You are right, The patch is incorrect, and I generate a patch once more, It is sent as as attachment named new,patch, please check, thanks!
Best regards!
Zxuejing
From: Richard Guo <guofenglinux(at)gmail(dot)com>
Date: 2022-06-15 12:12
To: XueJing Zhao <zxuejing(at)vmware(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Remove useless param for create_groupingsets_path
On Wed, Jun 15, 2022 at 11:33 AM XueJing Zhao <zxuejing(at)vmware(dot)com<mailto:zxuejing(at)vmware(dot)com>> wrote:
Recently I work on grouping sets and I find the last param numGroups of create_groupingsets_path is not used.
In create_groupingsets_path we use rollup->numGroups to do cost_agg.
Yes indeed. The param 'numGroups' was used originally when we first
introduced in create_groupingsets_path(), and then all its references
inside that function were removed and replaced with the numGroups inside
RollupData in b5635948.
I generate a diff.patch, which is sent as an attachment.
BTW, the patch looks weird to me that it seems operates in the inverse
direction, i.e. it's adding the param 'numGroups', not removing it.
Thanks
Richard
________________________________
Attachment | Content-Type | Size |
---|---|---|
new.diff | application/octet-stream | 2.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Smith | 2022-06-15 06:39:29 | Re: Handle infinite recursion in logical replication setup |
Previous Message | Michael Paquier | 2022-06-15 05:57:43 | Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL |