Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3tjT-0002DC-AB for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 03:39:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3tjR-0006Qo-Ud for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 03:39:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3tjR-0006PY-J0 for pgsql-bugs@lists.postgresql.org; Tue, 18 Feb 2020 03:39:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3tjL-0004HA-2y for pgsql-bugs@postgresql.org; Tue, 18 Feb 2020 03:39:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01I3dGZL032737; Mon, 17 Feb 2020 22:39:16 -0500 From: Tom Lane To: "David G. Johnston" cc: Andre Lucas , "pgsql-bugs@postgresql.org" Subject: Re: PSQL Help In-reply-to: References: <20200217203834.2D6937A0211@proxy.email-ssl.com.br> Comments: In-reply-to "David G. Johnston" message dated "Mon, 17 Feb 2020 20:06:13 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <32735.1581997156.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 17 Feb 2020 22:39:16 -0500 Message-ID: <32736.1581997156@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Monday, February 17, 2020, Andre Lucas > 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