model-writtenrun 5406 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David G. Johnston proposed documenting that array_length returns NULL for empty or missing dimensions, adding a contrasting jsonb_array_length example returning zero while leaving other unsurprising length functions alone #1.
- Aleksander Alekseev demonstrated that the empty-array example needed an explicit type cast to execute #2, and David agreed to correct it #3.
- Bruce Momjian committed the documentation from #1 with the explicit int[] cast as 2373fe78df, backpatching through PostgreSQL 13 and declining older branches because their documentation formatting differed substantially #4.
- The thread then shifted to unrelated Solaris work: Ibrar Ahmed submitted a patch defining __STDC_WANT_LIB_EXT1__ to expose memset_s and eliminate an implicit-declaration warning #5.
- Tom Lane recommended setting CPPFLAGS instead of using AC_DEFINE without a configuration test #6, and Ibrar supplied that revision in configure.ac #7.
- Thomas Munro suggested defining the macro locally in explicit_bzero.c and investigated why the fallback was needed #8; Ibrar identified his Solaris version and favored moving the flag into src/template/solaris, but supplied no further patch #9.
- Thomas Munro traced the warning to an old Solaris release predating its explicit_bzero implementation and questioned a permanent compiler flag for that narrow case #10; Tom Lane favored updating affected systems and raised possible side effects of enabling the macro #11.
- John Naylor marked the Solaris proposal rejected #12, leaving the array documentation committed and the unrelated Solaris patches unaccepted at the end of the thread.