model-writtenrun 2150 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ranier Vilela proposed guarding fpextra before reading limit_tuples in estimate_path_cost_size(), supplying a patch that substitutes 0.0 when the pointer is NULL #1.
- Fujii Masao supported defensive checking despite finding no triggering query #2, while Etsuro Fujita explained that the relevant path is reached only from callers that supply a non-NULL pointer #3.
- Ranier cited postgresGetForeignRelSize() as a caller passing NULL #4, but Fujii explained that its NIL pathkeys prevent it from reaching the dereference, while still favoring a defensive guard #5.
- Etsuro established the upper-relation and pathkeys conditions that guarantee a non-NULL pointer, then supplied a replacement patch adding an assertion and explanatory comment instead of a runtime fallback #6.
- Ranier reviewed the replacement and objected that it harmed readability and maintainability, but said to proceed if there was consensus #7; Etsuro maintained that the runtime check was unnecessary and announced plans to commit the assertion as a master-only improvement #8.
- Etsuro committed #6 as 21c9756db6 with only minor comment and formatting changes, then confirmed the push in the thread's final message #9; the original runtime guard was not adopted.