Dave Page wrote:
>> I agree with Peter: specifying the database name as implemented seems
>> like it would be prone to confusion.
>
> OK, updated patch attached. This has
>
> -E <dbname> or --default-database=<dbname>
Ouch. This calls for confusion with the -E flag of pg_dump,
which means 'encoding'. Something else might be better.
It would be nice to be able to specify the encoding for
pg_dumpall, though, rather than having to set PG_CLIENTENCODING.
Yours,
Laurenz Albe