model-writtenrun 9012 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Kapila reported that reordered includes exposed incompatible bool definitions in c.h and pgtypeslib_extern.h, temporarily restored the include order, and relayed Andrew Gierth's suggestion to remove the private header's definition #1.
- Tom Lane tested the removal on the affected host and committed deletion of the private bool, TRUE, and FALSE definitions as 1408d5d869, backpatched to v12, while identifying similar unresolved definitions in the client-visible ecpglib.h and DTrace probes #2 #3 #4.
- Amit Kapila suggested matching the exposed definitions to c.h #5, and Tom Lane demonstrated another include-order failure and proposed a configure-selected PG_USE_STDBOOL symbol #6; Andrew Gierth instead advocated a separate frontend boolean type, prompting discussion of compatibility risks #7 #8.
- Tom Lane tested a DTrace _Bool alternative and posted unsigned char as a simpler alternative #10; after Amit Kapila expressed his preference #11, Tom selected the lower-risk option #12 and committed it with matching documentation as ff43b3e88e, backpatched to v12.
- Tom Lane explored Andrew Gierth's approach in an attached patch that used pqbool for ECPG interfaces and required clients to supply bool themselves, but judged its client compilation failures and uncertain behavior on platforms with larger _Bool unattractive despite passing PPC Mac regression tests #13.
- The experimental patch also exposed an independent public-header defect in ecpg_gettext(), whose declaration depended on a private attribute macro and sat outside the C++ linkage wrapper #13; Tom Lane extracted its unchanged relocation to ecpglib_extern.h as c8cb98ec41 and backpatched it.
- Tom Lane replaced the pqbool experiment with a patch retaining public bool definitions while making ecpglib.h and c.h share the PG_USE_STDBOOL configuration decision, and raised whether it should be backpatched #14.
- At the thread's last message, the replacement boolean patch remained pending and backpatching remained unsettled: Amit Kapila questioned the assumption that affected platforms had no users, but accepted landing in HEAD first and revisiting stable branches if complaints arose #15.
- Tom Lane subsequently committed the replacement as 7a0574b50e, adding a fallback guard against duplicate bool typedefs and comment refinements to #14; it landed only in HEAD because compatibility risks discouraged backpatching, leaving the pqbool redesign abandoned.