model-writtenrun 2895 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Florents Tselai proposed documenting how C extensions call internal version-1 functions through DirectFunctionCall, including Datum conversions and a starts_with wrapper, and asked whether the tutorial also needed updating #1.
- Pavel Stehule requested a warning that NULL arguments and results are unsupported and suggested clearer conversion examples; Florents chose explicit text* conversions because illustrating conversions was the central teaching goal #2 #3 #4.
- Florents submitted those changes, and Pavel reported successful patching and compilation and marked the patch ready for a committer #5 #6.
- Tom Lane consolidated and edited the patch and added the example to src/tutorial; running it exposed missing collation information, prompting him to consider using a different target function #7.
- Pavel argued that demonstrating DirectFunctionCall2Coll would help beginners avoid the same trap, suggested DEFAULT_COLLATION_OID, and offered a separate bytea example for ordinary DirectFunctionCall #8.
- Tom retained the starts_with example, passed through PG_GET_COLLATION(), and documented why collation is required in 86e4efc52b; the extra bytea example was not included, and his final message confirmed that the patch had landed #9.