model-writtenrun 2352 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mahendra Singh Thalor proposed replacing pg_backup_directory.c's directory-checking code with a switch-based helper matching pg_dumpall's implementation, initially retaining separate helpers in each file #1.
- Andrew Dunstan requested a common helper to avoid duplicating the implementation #2.
- Mahendra supplied a revised patch moving create_or_open_dir() into dumputils.c and sharing it between pg_dump and pg_dumpall #3.
- Andrew committed the revised patch as 4170298b6e, additionally replacing the hardcoded databases-subdirectory permissions with pg_dir_create_mode, and announced the push in #4; Mahendra acknowledged it in #5.
- After the commit, Alvaro Herrera questioned the helper's name and raised a possible directory-replacement and symlink race that could overwrite files with pg_dumpall's privileges; the thread ends with the patch landed and these concerns unanswered #6.