model-writtenrun 8453 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that an array return type could incorrectly create a shell type and produce a duplicate-key error when the command was repeated, proposing consolidated eligibility checks and regression tests in #1.
- The patch in #1 also changed the error for a nonexistent type with typmod decoration to “type does not exist”; Heikki explicitly deferred broader checks that the function signature resembles a type input function.
- Heikki committed #1 unchanged as 2866d8c7db on August 27, with backpatches through PostgreSQL 14.
- Ewan Young subsequently reported that RETURNS SETOF still created unwanted shell types that survived dropping the function and propagated through dump/restore, supplying an additional setof check and regression test and reporting that make check passed in #2.
- Heikki committed Ewan's follow-up #2 as 555d97c318 with only condition-placement and comment edits, backpatching through PostgreSQL 15 because PostgreSQL 14 was no longer supported.
- Heikki confirmed the SETOF fix had landed in #3 and questioned the value of further tightening; both submitted fixes were committed, while broader input-function signature validation remained deferred.