Further cleanup for directory creation on pg_dump/pg_dumpall
authorAndrew Dunstan <[email protected]>
Thu, 10 Apr 2025 16:11:36 +0000 (12:11 -0400)
committerAndrew Dunstan <[email protected]>
Thu, 10 Apr 2025 16:11:36 +0000 (12:11 -0400)
commit4170298b6ecff7ce697b81e13d9a81e3b825798c
tree547611e21e494dbebefc70ff96b9becfe1598916
parent4909b38af034fa4d2c67c5c71fd8509f870c1695
Further cleanup for directory creation on pg_dump/pg_dumpall

Instead of two separate (and different) implementations, refactor to use
a single common routine.

Along the way, remove use of a hardcoded file permissions constant in
favor of the common project setting for directory creation.

Author: Mahendra Singh Thalor <[email protected]>

Discussion: https://postgr.es/m/CAKYtNApihL8X1h7XO-zOjznc8Ca66Aevgvhc9zOTh6DBh2iaeA@mail.gmail.com
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_dump/pg_dumpall.c