From: | Joachim Wieland <joe(at)mcknight(dot)de> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: parallel pg_dump |
Date: | 2012-04-04 09:03:01 |
Message-ID: | CACw0+11VOZ=5LtSrJMPzwgxd3xjtA1icLHufD-_F+n6AJhji_Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Apr 3, 2012 at 9:26 AM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> First, either the creation of the destination directory needs to be delayed
> until all the sanity checks have passed and we're sure we're actually going
> to write something there, or it needs to be removed if we error exit before
> anything gets written there.
pg_dump also creates empty files which is the analogous case here.
Just try to dump a nonexistant database for example (this also shows
that delaying won't help...).
> Maybe pg_dump -F d should be prepared to accept an empty directory as well as a
> non-existent directory, just as initdb can.
That sounds like a good compromise. I'll implement that.
> Second, all the PrintStatus traces are annoying and need to be removed, or
> perhaps better only output in debugging mode (using ahlog() instead of just
> printf())
Sure, PrintStatus is just there for now to see what's going on. My
plan was to remove it entirely in the final patch.
Joachim
From | Date | Subject | |
---|---|---|---|
Next Message | Yeb Havinga | 2012-04-04 09:47:43 | bugfix for cursor arguments in named notation |
Previous Message | Dave Page | 2012-04-04 08:51:49 | Re: Switching to Homebrew as recommended Mac install? |