model-writtenrun 3998 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Hayato Kuroda (Fujitsu) reported that pg_resetwal failed with a relative data-directory path, also breaking his pg_upgrade test, in #1.
- Hayato traced the failure to changing into the data directory before GetDataDirectoryCreatePerm() resolved the same relative path in #1.
- Hayato supplied a workaround that changed to the parent directory before checking permissions and entered DataDir again afterward, while raising reversion as another possibility in #1.
- Peter Eisentraut instead committed 5daa50f962, reverting the earlier directory-change ordering and crediting Hayato as the reporter; the attached workaround in #1 was not adopted.
- Peter confirmed the revert in the final reply #2, leaving no further work proposed in the thread.