model-writtenrun 9856 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Paul van der Linden reported that PostgreSQL 11 on Windows failed to create indexes and primary keys on large tables with a temporary-file size error #1, then established that disabling parallel workers allowed index creation #4.
- Peter Geoghegan investigated file-size discovery and considered restoring size transfer through shared memory #2 #23, but he and Tom Lane agreed to identify the underlying failure before choosing a fix #25.
- Paul's diagnostic logs exposed a second failure removing a temporary directory #9 #10; he found the directory empty afterward #12 and reported that amcheck completed without errors #15.
- Tom Lane identified misleading file names and missing errno information in the error message #20, and objected that trace_sort output failed to identify what its numbers represented #21 #27.
- Peter explained that worker -1 denotes the leader and agreed to label worker numbers explicitly #26 #28; commit cb6f8a9a72 implemented that discussion directly, retaining the numbering convention.
- Thomas Munro reproduced the directory-removal failure on Windows and traced it to open handles on already-unlinked files: error cleanup detached DSM before closing those handles #33. He proposed reordering resource cleanup but deferred it from the imminent minor release because the consequences needed more study #33.
- Thomas then identified 32-bit off_t overflow as the likely index-build failure #34 and posted an int64 patch, avoiding pgoff_t because it can also be 32 bits on some platforms #35; Peter supported int64 and proposed a separate diagnostic patch #36.
- Thomas considered preserving the stable-branch ABI through a separate BufFileSize64() function #37, but commit aa55183042 accepted the direct type change because the function was new and already broken on affected systems, landing the code from #35 unchanged.
- Thomas announced the overflow fix on master and PostgreSQL 11 and supplied a large-table reproducer, requesting Windows verification #38.
- Peter posted the separate diagnostic patch, moving failure reporting into BufFileSize(), including the underlying file name and errno, and aligning BufFileOpenShared() diagnostics #39; Tom gave a bare approval #40, and commit 1a990b207b landed the patch unchanged, as Peter confirmed #41.
- The thread ended with Thomas's draft moving DSM detachment after file closure #42; the overflow and diagnostic fixes had landed, while Windows testing and the safety of backpatching the changed cleanup order for extension DSM hooks remained unresolved.