hi. $BIN6/pg_dumpall --format=directory --verbose --file=test1 pg_dumpall: executing SELECT pg_catalog.set_config('search_path', '', false); pg_dumpall: error: could not create directory "test1": File exists
we should first validate --file option, if not ok error out immediately. if ok then connect to db then run the sql query? create_or_open_dir also needs to change. The attached is the minor change I came up with.
v9-0001-minor-refactor-pg_dumpall.no-cfbot
Description: Binary data