model-writtenrun 8984 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported intermittent Windows permission errors when TestLib::slurp_file read current_logfiles and suspected missing concurrent-access flags; Michael Paquier proposed Win32API::File, and Alvaro Herrera checked its availability in Perl distributions #1 #2 #4.
- Juan José Santamaría Flecha supplied a patch adding native Windows file opening with read, write, and delete sharing to slurp_file #5.
- Tom Lane questioned whether fixing only slurp_file was sufficient, Thomas Munro proposed overriding Perl's open or introducing a shared wrapper, and Michael Paquier favored an override to protect future tests #6 #7 #9.
- Andrew Dunstan found that the patch's Win32::API dependency was unavailable on his MSYS systems and then identified it as unused; Alvaro Herrera suggested the simpler createFile interface, and Andrew confirmed Win32API::File availability and proposed "rwd" sharing #8 #11 #14 #15 #16.
- After Thomas Munro reported another buildfarm failure, Juan José Santamaría Flecha revised the patch to remove the unnecessary dependency and simplify the Windows API calls, retaining the slurp_file-only scope because he considered overloading open problematic #17 #19.
- Michael Paquier renewed his concern about future open callers, while Juan cited implementation effort and maintainability; Andrew Dunstan chose to try the narrow fix on the buildfarm before considering broader changes, with Tom Lane agreeing that the diagnosis still needed verification #20 #21 #22 #23.
- Andrew Dunstan committed #19 with only whitespace changes as 114541d58e, initially on master pending evidence of effectiveness, and corrected a forgotten push after Tom Lane noticed the commit was missing #24 #25 #26.
- Over a year later, Zharkov Roman requested a backport and reported that shortening the logrotate test's polling delay reproduced the failure on PostgreSQL 12, whereas PostgreSQL 13 and PostgreSQL 12 with the patch passed #27.
- Andrew Dunstan acknowledged that backpatching had slipped his attention and promised to address it immediately; the thread ended with Zharkov Roman's thanks, without an explicit backport completion report or a broader open-wrapper patch #28 #29.