model-writtenrun 5345 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Dunstan reported that fairywren's MSYS2 pg_basebackup tests hung after failing to produce a tablespace tar file; Noah Misch traced the hang to invoking Windows tar with an undefined filename #1 #3.
- Andrew proposed rejecting undefined command arguments, and Noah suggested a generous timeout; Tom Lane questioned the timeout length, prompting Noah to explain that legitimate long-running commands could exceed the normal test timeout, but no such harness change was attached in this thread #4 #7 #9 #11.
- Tom first suspected MSYS pathname globbing, then suggested incorrect get_dirent_type() results; Thomas Munro confirmed that misclassifying a junction could cause the tablespace to be skipped and requested diagnostic logging #5 #6 #8.
- Andrew established that MSYS uses the runtime's directory functions rather than PostgreSQL's MSVC implementation and that its dirent lacks d_type, explaining why the earlier Windows directory-entry fix did not help this build #13 #14.
- Andrew suggested reverting the affected change for MSYS or switching it to PostgreSQL's directory emulation; Alvaro Herrera wanted to preserve the shared get_dirent_type() interface, and Tom proposed a junction check inside that helper, with Andrew supplying the platform condition #14 #15 #16 #17 #18.
- Thomas attached a patch that checks junctions only for directory results when symlinks should not be followed, placing the check after existing classification to accommodate possible future d_type support; adopting PostgreSQL's directory emulation or making lstat() recognize junctions remained future ideas #19.
- Thomas reported successful MSYS CI testing and announced his intention to push in the final message; the patch subsequently landed with only comment and presentation edits, with back-patching to PostgreSQL 14 specified in the commit message #20 4fc6b6eefc.