model-writtenrun 4171 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Rui Zhao reported that pg_rewind misclassified in-place tablespaces as symbolic links and supplied a directory-classification fix with a reproducing TAP test in #1.
- Michael Paquier reproduced the failure but initially questioned the proposed fix in #2.
- Michael confirmed that local sources already handled these tablespaces correctly, retained the fix in the remote-source traversal, replaced prefix matching with absolute-path detection for consistency, and expanded testing to verify rewound data in #3.
- The revised patch in #3 landed unchanged as bf227926d2; Michael announced the commit in #4 and explained that no backpatch was made because in-place tablespaces are intended for developers.
- After the commit, Rui endorsed the solution and reported a separate pg_upgrade problem in #5; Michael requested a separate thread and suggested regression coverage in #6, leaving the pg_rewind fix complete.