model-writtenrun 1699 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Marcus Gartner proposed removing duplicate negative-offset adjustment from ltree subpath(), so offsets below minus the number of labels would correctly fail rather than receive a second adjustment #1.
- The patch included a regression test requiring subpath('Top.Child1.Child2',-4) to report invalid positions #1.
- Tom Lane confirmed the bug and said his examination of git history suggested it had existed since the original implementation #2.
- Tom Lane favored applying the fix only to master because it repaired no valid use case and existing users might depend on the erroneous behavior #2.
- Tom Lane committed the patch with additional end-calculation cleanup, a named limit constant, and test comments in ff8aba65d4; the submitted fix landed, and no backports are recorded.