Re: -f <output file> option for pg_dumpall

Tino Wildenhain <tino@wildenhain.de>

From: Tino Wildenhain <tino@wildenhain.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Page <dpage@postgresql.org>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2007-01-05T22:58:18Z
Lists: pgsql-hackers
Tom Lane schrieb:
> Dave Page <dpage@postgresql.org> writes:
>> As far as I can see, adding a -f option to pg_dumpall should be straight
>> forward, the only issue being that we'd need to pass pg_dump an
>> additional (undocumented?) option to tell it to append to the output
>> file instead of writing it as normal.
> 
> Wouldn't it be easier/better to re-point stdout at the -f file, and not
> touch pg_dump at all?

Yeah, and maybe have a modifier like %n or something which would instead
write different files and replaces %n with the name of the database...

Regards
Tino