model-writtenrun 8757 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Banck reported that pg_checksums scanned another PostgreSQL version's tablespace after pg_upgrade and supplied a directory-filter patch with a regression test, also raising the separate problem of leftover pg_internal.init.PID files #1.
- Michael Paquier reproduced the temporary-file failure in base backups and proposed prefix-based exclusions across base backups, pg_checksums and pg_rewind, initially questioning whether old tablespaces needed support #2.
- Kyotaro Horiguchi identified excessive exclusions caused by blanket prefix matching, while Michael Banck and Bernd Helmle explained that sharing a tablespace location across versions is supported independently of pg_upgrade #3 #4 #5 #6.
- Michael Paquier accepted the tablespace problem, identified a fragile string-length comparison and the need to restrict handling to pg_tblspc, and proposed landing the temporary-file fix separately first #7.
- David Steele opposed blanket prefix exclusions because they could discard unrelated backup files; Michael Paquier responded with per-entry prefix flags while leaving broader exclusion changes and shared-code refactoring outside the backpatchable fix #9 #11.
- Bernd Helmle replaced directory-name filtering with a dedicated scan_tablespaces() helper that resolves the current version directory directly, but Michael Paquier requested integrating that logic into scan_directory() and adding a focused TAP test #13 #15.
- David Steele reported that temporary relcache files survive restart and discussed cleanup and shared exclusion infrastructure with Michael Paquier, but those broader changes remained separate proposals #12 #14 #17.
- Kyotaro Horiguchi proposed simplifying exact and prefix matching into one length-controlled comparison; Michael Paquier incorporated it in #19, which landed with whitespace-only differences as bf883b211e and was backpatched through PostgreSQL 11 #16 #22.
- Bernd Helmle expressed concern about special-casing pg_tblspc inside the generic scanner but agreed to revise the patch, while Michael Paquier maintained that consistent handling of unexpected files and avoiding duplicate scanning logic were preferable #21 #24.
- David Steele supplied a separate pgBackRest patch using a narrower numeric-suffix check for temporary relcache files, explaining that third-party tools should be conservative about future filename changes #23.
- Bernd Helmle submitted the integrated tablespace traversal and TAP test, choosing a fatal error when the expected tablespace location could not be resolved #25.
- Michael Paquier landed #25 with comment, formatting and error-message adjustments as 428a2609ef, retaining fatal errors and backpatching through PostgreSQL 11; the final message confirms both PostgreSQL fixes had landed, while broader cleanup and refactoring remained outside them #26.