model-writtenrun 8011 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed removing aggregate entries from fmgrtab.c and deleting the now-unused aggregate_dummy(), saving about 3KB; his patch also moved fmgr_info_cxt() initialization so it applied only to real window functions #1.
- Heikki Linnakangas suggested using NULL for aggregate functions' prosrc value instead of retaining the aggregate_dummy string #2.
- Isaac Morland objected that the replacement error message looked like a PostgreSQL bug, but Tom explained that reaching either message required erroneous C code #3 #4.
- Tom initially declined the NULL suggestion because he thought it should also require changing prolang, making the patch more invasive #5.
- Isaac withdrew his objection after recognizing that ordinary SQL misuse of aggregates already produced a separate, appropriate error #6.
- Tom committed #1 unchanged apart from rebasing as f21636e5d5, then confirmed that catalog contents remained unchanged because using NULL would require dropping prosrc's NOT NULL constraint; the proposed cleanup was fully landed #7.