From: | jian he <jian(dot)universality(at)gmail(dot)com> |
---|---|
To: | Mahendra Singh Thalor <mahi6run(at)gmail(dot)com> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
Subject: | Re: Non-text mode for pg_dumpall |
Date: | 2025-01-16 08:44:18 |
Message-ID: | CACJufxGOy1kAot+SAD9siKB797rj9K-bqeZOrS4fDYFFLo31bA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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.
Attachment | Content-Type | Size |
---|---|---|
v9-0001-minor-refactor-pg_dumpall.no-cfbot | application/octet-stream | 3.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | vignesh C | 2025-01-16 08:47:08 | Re: Pgoutput not capturing the generated columns |
Previous Message | Nazir Bilal Yavuz | 2025-01-16 08:40:51 | Re: Show WAL write and fsync stats in pg_stat_io |