model-writtenrun 4549 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Lucas Jeffrey reported that an allocation failure during postgres_fdw option initialization leaves a non-NULL pointer to an incomplete array, and demonstrated a subsequent crash using fault injection in #1.
- Lucas Jeffrey supplied #2, building the option array through a local pointer and publishing it to postgres_fdw_options only after initialization succeeds.
- Fujii Masao approved the patch and proposed backpatching to v19, identifying the introduction of keyword copying as the source of the failure path in #3.
- Lucas Jeffrey confirmed that MemoryContextStrdup() introduced the possibility of an error inside the initialization loop and agreed with the v19 backpatch in #4.
- Fujii Masao landed 1d4324a2a3 from #2 with only naming and formatting edits, then confirmed that the fix was pushed and backpatched to v19 in #5, leaving no outstanding work in the thread.