model-writtenrun 4370 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kieran McCusker reported that passing zero to plpy.execute returned every row instead of the empty sample he expected, supplying a reproducer #1.
- Daniel Gustafsson initially explained that the behavior was intentional #2; after Kieran identified the missing documentation #3, Daniel agreed it needed clarification and corrected his recollection so that specifically zero means unlimited #4.
- Kieran proposed making zero return no rows #5, but Tom Lane rejected changing the decades-old SPI behavior for compatibility reasons and proposed documenting it consistently in PL/Python, PL/Perl and PL/Tcl #6.
- Daniel supplied a patch borrowing SPI's explanation #7, while Tom independently supplied broader documentation edits that also renamed max-rows to limit and covered PL/Perl's prepared-query limit #8.
- Tom explained that limit matches PL/Perl's caller-visible prepared-query hash key #9, and Daniel accepted that naming and either patch's wording #10.
- Tom announced that he would compare, merge and commit the patches #11, and Daniel agreed in the thread's final message #12; both were contributors to the resulting patch, with no independent patch reviewer established.
- The documentation fix subsequently landed as 6489875ce6, following Tom's patch with light wording and markup changes; 0e0463fc59 is the same change backported to REL_11_STABLE, despite also appearing as a separate candidate in the supplied index.