model-writtenrun 7006 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Joel Jacobson proposed error_on_null() in #1, a polymorphic function that rejects a null input and otherwise returns its argument unchanged, motivated by checking single-row results in SQL function bodies.
- Vik Fearing explained in #2 that the function distinguishes the null value from a row containing only null fields, requested more precise documentation and a ROW(NULL,NULL) test, and Tom Lane endorsed that distinction in #3.
- Joel incorporated the wording and all-null row example and test in #4, and Vik confirmed that the revision resolved his concerns and was ready for a committer in #5.
- Michael Paquier took up the patch in #8, accepting its simple approach and revisiting its intended use for detecting exactly one returned row in SQL bodies.
- Michael committed #4 as 2b75c38b70, with a pg_ prefix on the C function, documentation cleanup, and additional array tests, and announced the application in #9.
- Michael immediately corrected the omitted catalog-version bump in 2519fa8362 and acknowledged the oversight in #9, leaving the proposed feature and its catalog update committed.