From: | 謝東霖 <douenergy(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Improve join_search_one_level readibilty (one line change) |
Date: | 2023-06-03 09:24:43 |
Message-ID: | CANWNU8x9P9aCXGF=aT-A_8mLTAT0LkcZ_ySYrGbcuHzMQw2-1g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello hackers
Attached is my first patch for PostgreSQL, which is a simple one-liner
that I believe can improve the code.
In the "join_search_one_level" function, I noticed that the variable
"other_rels_list" always refers to "joinrels[1]" even when the (level
== 2) condition is met. I propose changing:
"other_rels_list = joinrels[level - 1]" to "other_rels_list = joinrels[1]"
This modification aims to enhance clarity and avoid unnecessary instructions.
I would greatly appreciate any review and feedback on this patch as I
am a newcomer to PostgreSQL contributions. Your input will help me
improve and contribute effectively to the project.
I have followed the excellent guide "How to submit a patch by email,
2023 edition" by Peter Eisentraut.
Additionally, if anyone has any tips on ensuring that Gmail recognizes
my attached patches as the "text/x-patch" MIME type when sending them
from the Chrome client, I would be grateful for the advice.
Or maybe the best practice is to use Git send-email ?
Thank you for your time.
Best regards
Alex Hsieh
Attachment | Content-Type | Size |
---|---|---|
0001-Improve-left-deep-tree-dp-algorithm-s-readability.patch | application/x-patch | 876 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Ranier Vilela | 2023-06-03 10:14:57 | Avoid unused value (src/fe_utils/print.c) |
Previous Message | Marco Atzeri | 2023-06-03 05:35:51 | Re: PostgreSQL 16 Beta 1 Released! |