model-writtenrun 429 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrei Lepikhov reported that extensions could not attach planner support functions to aggregates through SQL and proposed CREATE AGGREGATE SUPPORT plus ALTER AGGREGATE SUPPORT, with privilege checks and dependency tracking, in #1.
- David Rowley suggested deferring the feature until PostgreSQL 20 because it was late in the PostgreSQL 19 cycle in #2, and Andrei initially accepted using manual catalog and dependency updates in #3.
- Andrei separately supplied missing SupportRequestSimplifyAggref documentation in #4, limiting that patch to this request despite noticing other undocumented requests.
- Tom Lane argued that an extension hook unusable by extensions required fixing for PostgreSQL 19 and supplied an alternative allowing ALTER FUNCTION SUPPORT on aggregates, with clearer attribute errors, in #5.
- Andrei combined Tom's implementation with the documentation patch and new regression tests in #6, while pointing out that pg_dump and pg_upgrade would lose the support-function setting.
- That omission prompted Tom to replace the ALTER FUNCTION approach with CREATE AGGREGATE SUPPORT and pg_dump handling in #7, retaining Andrei's support-request documentation and using CREATE OR REPLACE AGGREGATE for subsequent changes; he then added a missing superuser check in #8.
- Andrei endorsed the revised implementation for extension-defined aggregates but requested ALTER AGGREGATE SUPPORT for modifying built-in aggregates without restating their definitions or creating extension-membership problems, and questioned duplicated validation code, in #9.
- Tom declined to expand the design late in beta, citing existing aggregate alteration policy and conflicts between extensions modifying the same built-in aggregate in #10; Andrei accepted the current patch and deferred the broader issue pending more practical evidence in #11.
- Tom committed #8 as 165aa5040a, with only a documentation parameter rename and a backpatch through PostgreSQL 19, and confirmed the push in #12; CREATE AGGREGATE support and dump preservation landed, while the requested ALTER form remained deferred.