model-writtenrun 3359 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane posted a fix for a problem reported by Robert Haas: an RLS condition on ctid could displace CURRENT OF as the TidScan condition and cause a runtime error; the patch prioritizes CurrentOfExpr and adds a regression test, although Tom questioned the practical value because such policies must accept an undocumented placeholder ctid #1.
- Robert Haas favored fixing the bug without back-patching and initially suggested considering it alongside planned work to remove reliance on disable_cost #2.
- Robert then concluded that his planned work needed Tom's fix first and endorsed proceeding independently #3.
- Tom confirmed that the regression test fails without accepting (InvalidBlockNumber,0), and explained that suppressing competing non-TidScan paths would not remove the need to construct a correct TidScan path #4.
- Tom announced agreement to apply the fix only to HEAD #5, then committed the sole patchset with explanatory test comments added 6572bd55b0; the fix landed without backports, while the broader disable_cost work remained separate.