model-writtenrun 1701 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan proposed documenting why nbtree represents row comparisons with a header and separate subkeys, when the header can behave like a scalar inequality, and how NULLs complicate that behavior, with plans to commit on master and PostgreSQL 18 #1.
- Chao Li praised the parameter renaming and assertions but found parts of the new commentary harder to understand than the code and questioned why index ordering belonged in the explanation #2.
- Victor Yegorov considered the comments valuable, particularly their treatment of NULLs, approved committing the patch, and suggested extending the user documentation #3.
- Peter explained that index ordering determines safe scan termination and that NULLs in lower-order columns can create nonmatching gaps between matching tuples, making the distinction from scalar inequalities essential to other nbtree routines #4.
- Peter welcomed the user-documentation suggestion and supplied a SQL example showing how NULLs can make keyset pagination return different rows depending on page boundaries; user-facing guidance remained a separate opportunity outside the attached patch #5.
- Peter committed a cleaned-up version of #1 as 6c3b1df878, with revised comments, assertion refinements, and formatting changes, and the change was backpatched to PostgreSQL 18; his final message confirmed the push, leaving the submitted patch complete #6.