Re: backend/nodes cleanup: Move loop variables definitions into for statement - Mailing list pgsql-hackers

From Chao Li
Subject Re: backend/nodes cleanup: Move loop variables definitions into for statement
Date
Msg-id B5231580-8EA3-4FC3-9585-5BE5132D70D7@gmail.com
Whole thread Raw
In response to Re: backend/nodes cleanup: Move loop variables definitions into for statement  (Chao Li <li.evan.chao@gmail.com>)
List pgsql-hackers
Added to CF: https://commitfest.postgresql.org/patch/6227/

> On Nov 14, 2025, at 21:52, Chao Li <li.evan.chao@gmail.com> wrote:
>
>
>
> On Wed, Nov 12, 2025 at 4:00 PM Chao Li <li.evan.chao@gmail.com> wrote:
> Hi Hackers,
>
> While working on the other patch [1] that touched tbm_add_tuples() under src/backend/nodes, I moved a loop variable
intofor statement by the way as I knew Peter Eisentraut had done some efforts about that, see [2]. 
>
> However, Peter removed that change from the patch and he said that should belong to a separate cleanup patch. So I am
followingup and moving loop variables into for statements wherever possible under src/backend/nodes. 
>
> [1] https://www.postgresql.org/message-id/flat/CAEoWx2m2E0xE8Kvbkv31ULh_E+5zph-WA_bEdv3UR9CLhw+3vg@mail.gmail.com
> [2] https://git.postgresql.org/cgit/postgresql.git/commit/?id=03fbb0814c5015ab79e670ab97bb6a3349269e4b
>
>
> Rebased to V2.
>
> Best regards,
> Chao Li (Evan)
> ---------------------
> HighGo Software Co., Ltd.
> https://www.highgo.com/
>
>  <v2-0001-backend-nodes-cleanup-Move-loop-variables-definit.patch>

--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/







pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: Extended Statistics set/restore/clear functions.
Next
From: Daniel Gustafsson
Date:
Subject: Re: [PATCH] jit: fix build with LLVM-21