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 CAEoWx2myNR++aMEvA9=+_-bFaGHzoAtU1aZviQXe6xb925h6Sg@mail.gmail.com
Whole thread Raw
In response to backend/nodes cleanup: Move loop variables definitions into for statement  (Chao Li <li.evan.chao@gmail.com>)
List pgsql-hackers


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 into for 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 following up and moving loop variables into for statements wherever possible under src/backend/nodes.



Rebased to V2.

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

 
Attachment

pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Report replica identity in pg_publication_tables
Next
From: Daniel Gustafsson
Date:
Subject: Uncommented GUC in postgresql.conf.sample