Re: pg_dump throws too many command-line arguments in Postgres 10

From: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dump throws too many command-line arguments in Postgres 10
Date: 2017-10-18 15:11:07
Message-ID: CA+renyVcu9F-ExJzMKe7PUVAk3CMMjJzKmVQ4Y6J+ioRTT2ghQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 18, 2017 at 8:05 AM, Andrus <kobruleht2(at)hot(dot)ee> wrote:
> pg_dump.exe -b -f b.backup -Fc -h -U admin -p 5432 mydb
>
> causes error
>
> pg_dump: too many command-line arguments (first is "-p")

Don't you need a hostname after -h? I think right now pg_dump thinks
your hostname is "-U", your database is "admin", and everything after
that is extra.

Yours,
Paul

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igal @ Lucee.org 2017-10-18 15:16:27 Re: Finally upgrading to 9.6!
Previous Message Andrus 2017-10-18 15:05:24 pg_dump throws too many command-line arguments in Postgres 10