Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lonvC-0005TK-C0 for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jun 2021 14:02:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lonvB-0007c9-6Z for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jun 2021 14:02:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lonvA-0007bs-W5 for pgsql-bugs@lists.postgresql.org; Thu, 03 Jun 2021 14:02:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lonv8-0003mQ-NB for pgsql-bugs@lists.postgresql.org; Thu, 03 Jun 2021 14:02:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 153E1s8n272709; Thu, 3 Jun 2021 10:01:54 -0400 From: Tom Lane To: long Allen cc: pgsql-bugs@lists.postgresql.org Subject: Re: windows psql connection error In-reply-to: References: Comments: In-reply-to long Allen message dated "Thu, 03 Jun 2021 17:11:40 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <272707.1622728914.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 03 Jun 2021 10:01:54 -0400 Message-ID: <272708.1622728914@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk long Allen writes: > When I execute commands "psql postgres -p 5433" in Windows, the system > reported an error “"extra command-line argument **** ignored“. We do not document nor support writing switches (i.e. "-p 5433") after non-switch arguments. Some versions of getopt_long make that magically work anyway, but others do not. regards, tom lane