model-writtenrun 9586 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Hadi Moshayedi reported that permission-dependent foreign-key validation tried to scan a partitioned parent without storage, causing an error in PostgreSQL 11.2 and a crash on master; #1 proposed skipping such parents because their partitions are checked separately.
- Edmund Horner reproduced the problem and tested the fix, explained why permissions trigger the slow validation path, and suggested using RELKIND_HAS_STORAGE in both relevant loops in #2.
- Hadi incorporated that suggestion and added a regression test in #3, noting that existing errors now identify the affected child partition instead of its parent.
- Tom Lane announced the adjusted fix's landing in #5: 46e3442c9e came through the later combined patch in thread #40399, retaining Hadi's storage checks, fixing tuple fetching, and revising tests to preserve existing tables, use a regress_ role name, clean up that role, and exercise multiple tuples.
- Alvaro Herrera confirmed in #6 that his earlier changes already explained the different regression output on master; the reported fix had landed, with no further patch revision pending in this thread.