model-writtenrun 5111 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bharath Rupireddy proposed replacing pg_resetwal's manual WAL filename parsing with XLogFromFileName(), which could now accept the segment size from the control file and eliminate duplicate calculations #1.
- Kyotaro Horiguchi supported the cleanup, requested XLByteToSeg() for the existing segment-number calculation, and recommended TimeLineID for timeline variables; Michael Paquier also endorsed the cleanup, while Kyotaro raised similar type inconsistencies elsewhere #2 #4 #5 #6.
- Bharath incorporated XLByteToSeg() into a revised three-patch submission and added separate changes to shrink WAL filename buffers to MAXFNAMELEN and use XLogFileNameById() in pg_upgrade, leaving broader type cleanup unresolved #7.
- Kyotaro approved the revised pg_resetwal cleanup and buffer reductions but opposed enlarging pg_upgrade's filename buffer unnecessarily, suggesting XLOG_FNAME_LEN + 1 instead; Bharath remained open to either approach pending further feedback #8 #9.
- Michael committed the pg_resetwal component of the revised submission, adding TimeLineID for two timeline variables and simplifying a comment #7 9a30e154b3.
- At the thread's close, Michael confirmed the pg_resetwal change had landed but left the other two patches unapplied: buffer reductions offered limited benefit and potential backpatch complications, while pg_upgrade's new xlog_internal.h dependency should wait for better separation of backend and frontend definitions #10.