model-writtenrun 8328 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ram Pratap Maurya reported that upgrading PostgreSQL 11 to 12 failed the WAL segment-size check; Michael Paquier explained that the destination cluster must be initialized with a matching segment size #1 #2.
- Jeff Janes proposed letting pg_upgrade handle differing segment sizes using pg_resetwal, while Bruce Momjian favored conservative checks and Tom Lane defended requiring compatible initialization settings #4 #5 #6.
- Stephen Frost questioned whether matching segment sizes was necessary, and Bruce subsequently identified pg_upgrade's use of the old WAL filename in pg_resetwal; Stephen confirmed that this would need adjustment to support different sizes #8 #12 #14.
- Jeff also proposed automatically initializing the destination cluster with suitable settings, but Bruce noted that configuration migration would need consideration; no implementation followed in this thread #11 #13.
- The discussion exposed an overly restrictive documentation instruction to set wal_level to replica: Stephen explained why the new cluster needs a level above minimal and suggested saying replica or higher, which Michael supported #12 #16 #18.
- After Ram reported that reinstalling PostgreSQL 12 had not resolved the failure, Bruce reiterated that the segment sizes must match during the upgrade and should be set using initdb #20 #21.
- Bruce submitted a documentation patch that instead explicitly excludes minimal; Michael's subsequent response was a bare approval and does not establish substantive patch review #22 #23.
- Ram confirmed that reinitializing the destination cluster with --wal-segsize=64 resolved the original upgrade failure #24.
- Bruce committed the documentation patch unchanged as 2a06cb86db and announced backpatching through PostgreSQL 9.5; the thread ended with the reported upgrade problem resolved and no implementation of automatic segment-size handling #22 #25.