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 <mahi6...@gmail.com>

Discussion: 
https://postgr.es/m/cakytnapihl8x1h7xo-zojznc8ca66aevgvhc9zoth6dbh2i...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4170298b6ecff7ce697b81e13d9a81e3b825798c

Modified Files
--------------
src/bin/pg_dump/dumputils.c           | 36 ++++++++++++++++++++++++++++++++
src/bin/pg_dump/dumputils.h           |  1 +
src/bin/pg_dump/pg_backup_directory.c | 36 ++------------------------------
src/bin/pg_dump/pg_dumpall.c          | 39 +----------------------------------
4 files changed, 40 insertions(+), 72 deletions(-)

Reply via email to