model-writtenrun 9397 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- TAKATSUKA Haruka reported that PostgreSQL 12beta1 COPY into partitioned tables produced indexes that missed existing rows, while REINDEX restored the expected results and INSERT worked correctly #1.
- Ashutosh Sharma diagnosed that buffer flushing left the executor's result relation pointing to the last partition processed, causing index entries to target the wrong partition even though heap insertion used the correct relation #2.
- Ashutosh Sharma submitted a patch that sets the executor's result relation to the partition being flushed and adds a regression test checking indexed lookups after COPY #2.
- David Rowley committed the fix as 56b3b38382, retaining the assignment from #2, adapting the tests to reuse an existing table, and adding an assertion that the indexed tuple and result relation belong to the same table #3.
- The thread ended with Ashutosh Sharma thanking David Rowley after the fix landed, with no outstanding work raised #4.