Further cleanup for directory creation on pg_dump/pg_dumpall
Andrew Dunstan <andrew@dunslane.net>
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 <mahi6run@gmail.com> Discussion: https://postgr.es/m/CAKYtNApihL8X1h7XO-zOjznc8Ca66Aevgvhc9zOTh6DBh2iaeA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/dumputils.c | modified | +36 −0 |
| src/bin/pg_dump/dumputils.h | modified | +1 −0 |
| src/bin/pg_dump/pg_backup_directory.c | modified | +2 −34 |
| src/bin/pg_dump/pg_dumpall.c | modified | +1 −38 |
Discussion
- as per commit 643a1a61985bef2590496, move create/open dir code to function using switch case of pg_backup_directory.c file also 6 messages · 2025-04-07 → 2025-04-11