model-writtenrun 5661 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Simon Riggs proposed documenting retryable error codes, rerunning application logic, and the possibility of repeated failures; Robert Haas favored application-managed retries, while Greg Stark argued that automatic retry could be useful if the server knew the complete transaction #1 #2 #3.
- Thomas Munro identified unique and exclusion constraint errors that can mask serialization problems and explained how prepared transactions can prevent retry progress; Simon incorporated the discussion into an initial documentation patch #4 #5.
- Simon continued asking whether automatic retry could be correct for single-statement transactions, but the thread established no implementation; Tom Lane later revised the documentation's wording, SQLSTATE markup, and warnings about retrying constraint failures #6 #7.
- Simon questioned how broadly unique violations needed to be covered, and Thomas identified another isolation-test case; Simon then supplied an UPDATE comparison test and an incomplete index-level fix requiring snapshot plumbing through the index API #8 #9 #10.
- Tom explained that the server cannot infer the relationship between application-selected insert values and earlier reads, so reporting a serialization failure could provoke endless retries; Simon accepted the distinction but requested narrower wording, which Tom declined because the known corner cases might change or be incomplete #11 #12 #13 #14 #15.
- Tom's final patch explained the application-selected-key example and cautioned that constraint failures can be persistent; Simon approved it, and Tom committed it with small wording changes as 0adb3dc68b #15 #16.
- The thread ended with Tom confirming the documentation was pushed; Simon's separate isolation test and incomplete index-level experiment were not included in that commit, and no completed implementation followed in this thread #10 #17 0adb3dc68b.