model-writtenrun 3384 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robert Haas followed up on Andres Freund's observation that tablespace handling lacked test coverage, discovered incorrect incremental-file pathname reconstruction, and submitted test infrastructure plus a bug fix and regression tests #1.
- Andres Freund questioned OID-based mapping and proposed simpler tests using in-place tablespaces; Robert retained explicit relocation to exercise real tablespace behavior and prioritized fixing the bug, while Andres said his suggestions should not block merging #2 #4 #5 #6.
- Robert committed both patches from the original submission unchanged: the restoration infrastructure as 6bf5c42b55 and the pathname fix with tests as cd64dc42d1 #1.
- Tom Lane reported buildfarm failures caused by tar's limit on symbolic-link target length; Robert identified the existing short-temporary-path workaround, and their discussion clarified that the limitation belonged to longstanding pg_basebackup behavior #7 #8 #9 #10 #11.
- Robert reverted the new restoration infrastructure, dependent tests, and an intervening Linux test adjustment because the infrastructure could not work on Windows, while retaining the actual pg_combinebackup bug fix 82023d47de.
- Thomas Munro investigated Windows junction handling and found that stripping the NT pathname prefix did not resolve the failures; Alexander Lakhin then identified that Perl's -l test rejected junction points #13 #14.
- Thomas supplied portable symlink-test and readlink helpers plus a delta against Robert's original infrastructure, but reported that readlink() still failed, and Alexander reproduced differences between manually created junctions and PostgreSQL-created ones #15 #16.
- Robert replaced the failed symlink-dependent approach with OID-keyed plain-backup mappings and copying through pg_tblspc paths, also using short temporary paths, and resubmitted the reverted infrastructure and tests together #17.
- Thomas welcomed the revision, and he and Andres discussed eventually replacing tablespace symlinks with explicit path metadata; Robert deferred that broader redesign and reported green CI results with plans to commit, which Andres accepted in the thread's final reply #18 #19 #20 #21.
- The revised patch subsequently landed unchanged as 89ad3e1316, restoring tablespace test coverage from #17; Thomas's helper-based alternative remained unused, and the broader symlink redesign remained deferred.