model-writtenrun 83 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nikolay Samokhvalov opened the thread with two defects found while testing the batching revert: valid column-level SELECT grants were rejected, and replacing a cast left RI checks using a dropped function; Amit Langote confirmed the permission problem and investigated whether the cast problem predated the fast path #1 #2.
- Nikolay submitted permission and cast-cache fixes with regression tests #3; Amit revised them to enforce FOR KEY SHARE's UPDATE privilege through executor permission checks and demonstrated that the stale comparison cache also affected older releases #4.
- The initial cast fix retained invalidated call information until transaction end to protect reentrant calls; Amit questioned whether reparenting could avoid a new cleanup hook, while Nikolay recommended retaining the dead list after testing and correcting an overly broad memory-context test #4 #6.
- Further testing exposed invalidation and nested initialization during cache construction, so Nikolay supplied an incremental patch with generation counters and retries to prevent stale publication and leaked replacement entries #7.
- Nikolay then reported a separate operator-family problem and supplied standalone fixes: pg_amop changes needed to invalidate metadata, and a stored operator no longer belonging to the family required SPI fallback #8 #9.
- After Melanie Plageman asked whether the fixes would be combined, Amit chose to resolve the release-blocking operator-family issue separately from cast caching; his final submission combined permission and per-row operator-family fixes while reserving batching-specific operator-family work for another series #11 #12 #13.
- Amit committed the permission component as 2fc654e113 and the per-row operator-family component as c86738fd4a, crediting Nikolay's authorship and announcing both open items closed #14; extraction failures prevent exact comparison with their final submission #13.
- Nathan Bossart subsequently asked about the remaining ExecutorCheckPerms_hook item; Amit clarified that it was a separate issue with an incorrect tracking link and later reported it completed #15 #16 #17.
- Amit returned to cast handling with a different design after finding additional NULL-result and expression-semantics failures: route non-binary coercions through SPI, remove unused fast-path cast machinery, and separately replace UPDATE key casts with image comparisons #18.
- Matheus Alcantara reviewed and tested the first two patches, requested INOUT coverage, and noticed that existing cast-based tests would stop exercising the fast path; Amit revised those tests to use custom-opclass equality functions, simplified coercion checks, and added INOUT coverage before Matheus tested and endorsed the revision #20 #21 #23.
- The first two revised patches landed as a18d2bfc1d and 964d88fac4, with light explanatory edits and unchanged submitted logic; Amit confirmed the pushes in #26, while the third UPDATE-comparison patch from #21 has no confirmed landing in this thread.
- Fujii Masao reported a buildfarm crash in the reentrant-cast test after the SPI-routing commit a18d2bfc1d; Amit explained that the changed execution path exposed an older SPI-plan bug affecting stable releases and pointed to repair work in other threads #27 #28 #29 #30.
- Amit proposed temporarily removing the crashing test while the underlying SPI-plan fix was developed, promised to restore it with that fix, and confirmed the removal at the thread's end; the lasting crash repair and restoration remained outside this thread's completed work #31 #32.