Fix outdated code comments in nodeAgg.c

Started by Zhang Minglialmost 2 years ago4 messageshackers
Jump to latest
#1Zhang Mingli
zmlpostgres@gmail.com

Hi,

By reading the codes in nodeAgg.c, I found that some comments are outdated.
The comments referred to the function lookup_hash_entry(), which has been removed in commit b563594.
I've adjusted the comments to refer to the correct function to make it clear.

--
Zhang Mingli
HashData

Attachments:

v0-0001-fix-update-outdated-comments-in-nodeAgg.c.patchapplication/octet-streamDownload+2-5
#2Richard Guo
guofenglinux@gmail.com
In reply to: Zhang Mingli (#1)
Re: Fix outdated code comments in nodeAgg.c

On Sun, Feb 9, 2025 at 11:15 PM Zhang Mingli <zmlpostgres@gmail.com> wrote:

By reading the codes in nodeAgg.c, I found that some comments are outdated.
The comments referred to the function lookup_hash_entry(), which has been removed in commit b563594.
I've adjusted the comments to refer to the correct function to make it clear.

LGTM. This seems to be an oversight from 200f6100a, in which the
function lookup_hash_entry() was removed.

Thanks
Richard

#3Zhang Mingli
zmlpostgres@gmail.com
In reply to: Richard Guo (#2)
Re: Fix outdated code comments in nodeAgg.c

On Feb 10, 2025 at 16:45 +0800, Richard Guo <guofenglinux@gmail.com>, wrote:

On Sun, Feb 9, 2025 at 11:15 PM Zhang Mingli <zmlpostgres@gmail.com> wrote:

By reading the codes in nodeAgg.c, I found that some comments are outdated.
The comments referred to the function lookup_hash_entry(), which has been removed in commit b563594.
I've adjusted the comments to refer to the correct function to make it clear.

LGTM. This seems to be an oversight from 200f6100a, in which the
function lookup_hash_entry() was removed.

Thanks
Richard

Hi,

Thanks for review, added it to commitfest https://commitfest.postgresql.org/patch/5580/

--
Zhang Mingli
HashData

#4Jeff Davis
pgsql@j-davis.com
In reply to: Zhang Mingli (#3)
Re: Fix outdated code comments in nodeAgg.c

On Tue, 2025-02-18 at 20:11 +0800, Zhang Mingli wrote:

Thanks for review, added it to
commitfest https://commitfest.postgresql.org/patch/5580/

Committed. Thank you!

Regards,
Jeff Davis