model-writtenrun 5961 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- After announcing a headerscheck fix in replication/worker_internal.h #1, Alvaro Herrera reported another failure caused by missing GSSAPI headers and proposed either excluding be-gssapi-common.h from checking or guarding its contents with ENABLE_GSS #2.
- Stephen Frost pointed to existing conditional inclusion in auth.c #3, and Alvaro submitted a patch wrapping the GSSAPI includes and pg_GSS_error declaration in ENABLE_GSS #4.
- Stephen questioned placing the guard inside the header #5; Alvaro clarified that the problem concerned standalone header checking and reconsidered an exclusion #6 #7, which Stephen preferred #8.
- Tom Lane supported the attached guard because headers should work independently of their inclusion context and rejected adding a headerscheck exclusion #9; Stephen accepted that approach in the thread's final message #10.
- Alvaro subsequently committed the patch from #4 with an identical code diff and a fuller commit explanation, backpatching it through PostgreSQL 12 and completing the proposed fix f744519326.