diff options
author | Andrew Dunstan | 2025-04-10 16:11:36 +0000 |
---|---|---|
committer | Andrew Dunstan | 2025-04-10 16:11:36 +0000 |
commit | 4170298b6ecff7ce697b81e13d9a81e3b825798c (patch) | |
tree | 547611e21e494dbebefc70ff96b9becfe1598916 /src/bin/pg_dump/dumputils.h | |
parent | 4909b38af034fa4d2c67c5c71fd8509f870c1695 (diff) |
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
Diffstat (limited to 'src/bin/pg_dump/dumputils.h')
-rw-r--r-- | src/bin/pg_dump/dumputils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/dumputils.h b/src/bin/pg_dump/dumputils.h index a4bd16857ce..91c6e612e28 100644 --- a/src/bin/pg_dump/dumputils.h +++ b/src/bin/pg_dump/dumputils.h @@ -62,5 +62,6 @@ extern void makeAlterConfigCommand(PGconn *conn, const char *configitem, const char *type, const char *name, const char *type2, const char *name2, PQExpBuffer buf); +extern void create_or_open_dir(const char *dirname); #endif /* DUMPUTILS_H */ |