model-writtenrun 6844 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dongpo Liu reproduced a defect previously reported by Noah Misch: custom scans replacing joins could cause pg_plan_advice to raise “plan node has no RTIs” or silently omit relations from advice #1.
- Dongpo proposed returning CustomScan.custom_relids from pgpa_relids(), matching ForeignScan handling, and demonstrated correct JOIN_ORDER advice with a test-only custom join provider; three relevant test suites passed on master #1.
- The patch omitted a regression test because the existing test_extensible provider supported only single-table scans, and Dongpo offered to add a join mode #1.
- Robert Haas committed the two-line fix with an edited commit message and confirmed back-patching it to v19 eaa5961efc #2.
- The thread ended with the fix landed and broader work open: Robert welcomed extending test coverage and suggested named custom scan providers selectable through advice, while cautioning that substantial redesign would need to target v20 or later #2.