model-writtenrun 3579 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alena Rybakina reported an assertion failure while running postgres_fdw regression SQL manually in #1; Tom Lane reduced it to MERGE ... DO NOTHING against an empty partitioned table and initially suspected the permission-information refactoring in #2.
- Alvaro Herrera established in #5 that the underlying bug dated to MERGE itself: DO NOTHING requested no target permissions, while the later assertion merely exposed that omission; his patch required SELECT privileges, allowing permission on any target column, and added a regression test.
- Tom Lane approved the fix in #6, and it landed as 4989ce7264, with listed branch variant 90ad85db6a; the committed tests restored the preceding test role correctly, and the branch variant added a subquery alias.
- After confirming the code fix had been pushed, Alvaro Herrera proposed documenting the DO NOTHING privilege requirement and moving the privilege-check timing sentence to the paragraph's end in #7.
- Tom Lane supplied revised wording in #8 that described DO NOTHING in parallel with the other actions, and proposed replacing references to privileges on a table's name with references to the table itself; Alvaro Herrera accepted both suggestions in #9.
- At the thread's last message, Alvaro Herrera promised to push the documentation later that day in #11; it subsequently landed as 6979ea2638, with listed branch variant 172d7f7e66, incorporating #8, broader target-table terminology cleanup, and explicit mention of join_condition, completing both changes.