Fix outdated comments for IndexInfo

Started by Japin Li12 months ago6 messageshackers
Jump to latest
#1Japin Li
japinli@hotmail.com

Hi, all

While working on [1]/messages/by-id/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com, I found outdated comments in IndexInfo.
The attached patch corrects them.

[1]: /messages/by-id/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com

--
Regrads,
Japin Li

Attachments:

0001-Fix-outdated-comments-for-IndexInfo.patchtext/x-diffDownload+2-2
#2Richard Guo
guofenglinux@gmail.com
In reply to: Japin Li (#1)
Re: Fix outdated comments for IndexInfo

On Thu, May 1, 2025 at 12:49 AM Japin Li <japinli@hotmail.com> wrote:

While working on [1], I found outdated comments in IndexInfo.
The attached patch corrects them.

Nice catch. LGTM.

Thanks
Richard

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Japin Li (#1)
Re: Fix outdated comments for IndexInfo

On 30.04.25 17:48, Japin Li wrote:

While working on [1], I found outdated comments in IndexInfo.
The attached patch corrects them.

[1] /messages/by-id/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com

Maybe these per-column comments should be moved inline, similar to, for
example, ResultRelInfo later in the file. That would make maintaining
them easier.

#4Japin Li
japinli@hotmail.com
In reply to: Peter Eisentraut (#3)
Re: Fix outdated comments for IndexInfo

Hi, Peter and Richard

On Thu, 01 May 2025 at 12:13, Peter Eisentraut <peter@eisentraut.org> wrote:

On 30.04.25 17:48, Japin Li wrote:

While working on [1], I found outdated comments in IndexInfo.
The attached patch corrects them.
[1]
/messages/by-id/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com

Maybe these per-column comments should be moved inline, similar to,
for example, ResultRelInfo later in the file. That would make
maintaining them easier.

Thank you for the review. The v2 patch set is attached.

v2-0001 remains unchanged; v2-0002 has been modified according to your feedback.

--
Regrads,
Japin Li

Attachments:

v2-0001-Fix-outdated-comments-for-IndexInfo.patchtext/x-diffDownload+2-2
v2-0002-Use-per-column-comments-for-IndexInfo.patchtext/x-diffDownload+32-33
#5Peter Eisentraut
peter_e@gmx.net
In reply to: Japin Li (#4)
Re: Fix outdated comments for IndexInfo

On 01.05.25 15:47, Japin Li wrote:

On Thu, 01 May 2025 at 12:13, Peter Eisentraut <peter@eisentraut.org> wrote:

On 30.04.25 17:48, Japin Li wrote:

While working on [1], I found outdated comments in IndexInfo.
The attached patch corrects them.
[1]
/messages/by-id/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com

Maybe these per-column comments should be moved inline, similar to,
for example, ResultRelInfo later in the file. That would make
maintaining them easier.

Thank you for the review. The v2 patch set is attached.

v2-0001 remains unchanged; v2-0002 has been modified according to your feedback.

I have committed your patch 0001 and backpatched it appropriately, so
that each branch should now have approximately correct comments. And
then I have applied your 0002 to master. Thanks.

#6Japin Li
japinli@hotmail.com
In reply to: Peter Eisentraut (#5)
Re: Fix outdated comments for IndexInfo

On Wed, 02 Jul 2025 at 09:57, Peter Eisentraut <peter@eisentraut.org> wrote:

On 01.05.25 15:47, Japin Li wrote:

On Thu, 01 May 2025 at 12:13, Peter Eisentraut <peter@eisentraut.org> wrote:

On 30.04.25 17:48, Japin Li wrote:

While working on [1], I found outdated comments in IndexInfo.
The attached patch corrects them.
[1]
/messages/by-id/2A40921D-83AB-411E-ADA6-7E509A46F1E4@logansw.com

Maybe these per-column comments should be moved inline, similar to,
for example, ResultRelInfo later in the file. That would make
maintaining them easier.

Thank you for the review. The v2 patch set is attached.
v2-0001 remains unchanged; v2-0002 has been modified according to
your feedback.

I have committed your patch 0001 and backpatched it appropriately, so
that each branch should now have approximately correct comments. And
then I have applied your 0002 to master. Thanks.

Thanks a lot.

--
Regards,
Japin Li