model-writtenrun 451 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread with #1, proposing fixes for an hstore null-pointer dereference and an unbounded SETOF array loop that had been excluded from a recent security patch; his reproductions still returned SQL NULL instead of tied-object contents.
- Andrew Dunstan questioned the missing-value behavior in #2, and Andrey Rachitskiy supplied #4, explaining that hv_iterval() and SvGETMAGIC() are needed to invoke FETCH and providing regression tests with inline classes that avoid optional Tie modules.
- After Tom confirmed the array fix and questioned coverage and null-pointer preconditions in #5, Andrey expanded the implementation and tests through #8 and #9 to cover jsonb, composites, triggers, and tied scalars containing references.
- Tom requested uniform hash and array traversal before adding tied-object support in #10 and questioned the GETMAGIC usage in #11; Andrey defended the approach using Perl documentation and examples in #12 and explained tied-array proxies in #16.
- Tom separated array safety into #15, adopting av_count(), correctly sized counters, and an overflow check, then committed it unchanged as ede3188e11 with backports through PostgreSQL 14 and announced the push in #19.
- Tom proposed a separate hash cleanup in #20, sharing hek2cstr() with the contrib modules, standardizing iteration, and removing redundant iterator resets; Andrey approved it in #21.
- Andrey supplied the remaining FETCH implementation on top of that cleanup in #22, introducing plperl_materialize_sv(); Tom challenged its claimed FREETMPS ordering requirement in #23, and Andrey agreed to remove the comment in #24.
- Tom extracted the original hstore null guard from #1 and added further null defenses in PL/Perl and jsonb conversion, committing ec24237a40 and backpatching it through PostgreSQL 14.
- Tom committed the hash cleanup from #20 unchanged as 5bf8fee543; in #25 he explained that encoding changes and full tied-object support would remain on master because their behavioral changes lacked sufficient justification for backpatching.
- Tom committed the FETCH implementation from #22 with the earlier tests from #9 as ccab6d36d0, adding recursive-reference materialization and adjusting the helper, comments, and test organization; he announced completion in #26.
- After the four changes had landed, Kirill Reshke reported in #28 that a tied SETOF array without FETCHSIZE could terminate the backend; Andrey replied in #29 that he, Tom, and the security team already knew and that he had proposed a fix, but this thread ends without that follow-up patch or a confirmed resolution.