model-writtenrun 5083 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Smith proposed a common ReplicationOriginName() helper to replace repeated subscription-origin formatting and accommodate more forthcoming callers, initially keeping the existing tablesync helper separate #1.
- Aleksander Alekseev approved the proposal but noted that snprintf() takes a size_t length; Amit Kapila endorsed using Size and requested a preparatory conversion of existing helpers, which Aleksander supplied alongside Peter's revised helper #2 #3 #4.
- Peter approved the series, and Amit committed its preparatory tablesync Size conversion unchanged as a932824dfe, leaving the new helper for further discussion #5 #6.
- Amit proposed one helper for both origin formats, using InvalidOid to distinguish non-tablesync callers; Peter initially questioned that convention, then accepted it after Amit explained that apply workers already use an invalid relation OID #6 #7 #8 #9.
- Peter implemented ReplicationOriginNameForLogicalRep() for both origin formats and removed the old tablesync-specific helper; Aleksander approved this implementation and corrected its formatting #10 #12.
- Peter also identified a similar buffer-size declaration in pg_dump, prompting Aleksander to attach a separate 13-file Size/size_t cleanup, while explicitly questioning whether some casts added value #11 #12.
- Amit approved and committed the unified origin helper from #12 without code changes as 776e1c8a5d; Aleksander then resent the unchanged broader type cleanup as the remaining work #13 #14 #15.
- Tom Lane opposed the remaining cleanup because the affected buffers did not realistically need multi-gigabyte lengths and the changes created churn and backpatch hazards; Aleksander accepted that conclusion and closed the commitfest entry, ending the thread with both targeted changes committed and the broader cleanup rejected #16 #17.