model-writtenrun 5181 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane began implementing Andres Freund's suggestion to split guc.c, separating core machinery from configuration tables and temporarily collecting callbacks in guc_hooks.c; he proposed eventually moving those callbacks to their owning modules while retaining a common guc_hooks.h #1.
- Andres supported relocating callbacks and examined the generated object sections, while Tom clarified that underlying GUC variables would remain declared by their owning modules because their native C types did not create the header dependencies being addressed #2 #3 #4.
- Michael Paquier proposed separating SQL-callable functionality; after initially questioning the API boundary, Tom found that moving SET/SHOW alongside those functions produced a workable guc_funcs.c with three additional exported helpers #6 #7 #8.
- Tom completed the planned callback redistribution, removed the provisional guc_hooks.c, consolidated callback declarations in guc_hooks.h, and repaired indirect header dependencies exposed by that cleanup #9.
- Andres reviewed the completed split and flagged the confusing in_hot_standby name, questioned remaining includes, and raised constant-table separation; Tom accepted the rename, explained why the includes remained necessary, and left separation of mutable and constant table fields outside this patch #10 #11.
- Discussion of Git's handling of moved code established that other GUC patches would likely need manual adjustment; Alvaro Herrera favored landing promptly, and Tom's final message committed to pushing rather than waiting until the commitfest ended #12 #13 #15 #16 #17.
- Tom subsequently landed the complete split from #9 as 0a20ff54f5, incorporating the in_hot_standby_guc rename, a comment polish, and adjustments for intervening changes, with no submitted portion left pending.