From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Andre Lucas <andre@amazoniasistemas.com.br>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: PSQL Help
Date: Mon, 17 Feb 2020 22:39:16 -0500
Message-ID: <32736.1581997156@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYqfLqw-Q3fuUTACC9KKjGmwqNG0tenb7_6p+WEYQ+7OQ@mail.gmail.com>
References: <20200217203834.2D6937A0211@proxy.email-ssl.com.br>
<CAKFQuwYqfLqw-Q3fuUTACC9KKjGmwqNG0tenb7_6p+WEYQ+7OQ@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Monday, February 17, 2020, Andre Lucas <andre@amazoniasistemas.com.br>
> wrote:
>> psql -h localhost -U postgres NovoBD -f Backup17.sql
>> “psql: warning: extra command-line argument "-f" ignored
>> psql: warning: extra command-line argument "Backup17.sql" ignored
> You command doesn’t match the documented syntax:
> psql [option...] [dbname [username]]
> Hint: NovoBD is the “dbname”
FWIW, Andres' example *will* work on some platforms, because glibc's
getopt_long() takes it upon itself to rearrange the arguments.
But it doesn't work everywhere, which is why we only document/recommend
the stricter argument order.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, andre@amazoniasistemas.com.br
Subject: Re: PSQL Help
In-Reply-To: <32736.1581997156@sss.pgh.pa.us>
References: <20200217203834.2D6937A0211@proxy.email-ssl.com.br> <CAKFQuwYqfLqw-Q3fuUTACC9KKjGmwqNG0tenb7_6p+WEYQ+7OQ@mail.gmail.com> <32736.1581997156@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox