model-writtenrun 9404 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- George Tarasov reported that including plpgsql.h in a C++ plugin failed because parameters used the reserved words new and typeid, and supplied a patch renaming them in both declarations and definitions #1.
- Tom Lane redirected the discussion to pgsql-hackers after discovering that cpluspluscheck omitted src/pl and contrib, proposed scanning both src and contrib, and identified missing header dependencies in PL/Python and PL/Perl; he proposed keeping that cleanup on HEAD while backpatching the PL/pgSQL fix #2.
- Further investigation led Tom Lane to retain exclusions for pg_dump headers because renaming public and namespace fields would be invasive with little immediate benefit, while accepting a smaller rename for ecpg's new field #3.
- The expanded checks led to an explicit pointer cast in generated perfect-hash functions 9e58705a7f and a separate collection of standalone-header dependency fixes, GSS guards and an inline annotation 7640f93123, both developed beyond the attached patch.
- George Tarasov's PL/pgSQL patch #1 landed with naming and formatting edits as 3f61b3205f and was backpatched to all supported versions.
- The ecpg field renaming discussed in #3 landed as 4f67858d3f, without backpatching because C++ use inside the preprocessor was considered unlikely.
- The broader cpluspluscheck scan landed with explicit exclusions, dependency include paths and configurable compiler settings as 6f54b80edd; its commit message credits Andres Freund with suggesting the compiler-option improvement.
- Tom Lane confirmed that the submitted patch, additional fixes and expanded checking had all been pushed #4, and George Tarasov closed the thread with thanks and clarification of his sender name #5, leaving no patch pending.