model-writtenrun 2930 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported a reproducible planner error caused by inconsistent serial numbers across cloned qualifications and proposed restoring the serial counter after constructing a replacement constant-FALSE RestrictInfo, with a regression test in #1.
- Ashutosh Bapat questioned creating a replacement RestrictInfo and suggested moving simplification or modifying the existing object in #2 and #6; Richard retained the existing placement because inheritance-parent handling needs the relation identity and considered manually updating the object's derived fields too fragile in #7.
- Andrei Lepikhov agreed the fix would work but suggested a helper function in #4; Richard declined additional abstraction or changes to make_restrictinfo's callers for this straightforward operation in #5.
- Ashutosh proposed resetting the counter per qualification and adding an assertion in #8; Richard explained that different clone variants create different numbers of RestrictInfos and requested a concrete alternative patch in #9.
- Richard announced plans to commit before the next minor release in #10, and Ashutosh said he lacked time to implement his alternative and invited Richard to proceed if satisfied in #11.
- Richard committed #1 as f00ab1fd15 with unchanged code and tests and an expanded commit message, including the PostgreSQL 17 backpatch rationale and omission of its regression test because no reproducer was found there; #12 confirmed completion, with no replacement patch submitted.