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 1loyBG-0004zP-16 for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Jun 2021 00:59:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1loyBF-00028I-1c for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Jun 2021 00:59:21 +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 1loy8A-0004fU-8G for pgsql-bugs@lists.postgresql.org; Fri, 04 Jun 2021 00:56:11 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loy85-0000wZ-E4 for pgsql-bugs@lists.postgresql.org; Fri, 04 Jun 2021 00:56:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 837BB5C01C7; Thu, 3 Jun 2021 20:56:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 03 Jun 2021 20:56:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=x2dz0JzM18pz3MnA0w0VR09CMQA VPknKWn4Aa0Zkzck=; b=NBX5sy/yrTn2WR3F9vaRbk2F8LAzHYApW8CIi4oXhhq T4dhE20PptxuKk3U8XsEAK2t5K3nVl8YT1guMv5dq1EUY/392BtlcshWO1vDVDQw RcidZ+NQdfehOnXb8OtWlQ6eHD23VBu5gopcbPzvz/H9XMtrxwxGsU/KbsQMuXcn ORSGa9OLYoQ4hoGMKkDpjvUEWnR9ihqLb+/NWJm7bW+QW0/42FhIDgLcyKypz+RI 7o0D0NIxNvYsi1FhsI/Lt6gSLvzd17plhRgjJEvU2/L2/KtWBIfWP1m8TfQi4KiC 6RWOyHAbt1P20Ee5XAGV5dREhovRXpegBy7+0XXVz3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=x2dz0J zM18pz3MnA0w0VR09CMQAVPknKWn4Aa0Zkzck=; b=oE9kOoZC94PcF0+fB/CyQG HBYVcwh/LjTv4Op0XYTVnHYHOJ/C17u6N3alD3SRdRT/KpdjINnilY6Wzdo2srab Rh7kOhxtVSmcpdpNluVfSCNVKPZj+j7x8Fp43vcBjAKXxdz7A8kZdFOVL5zN6wc0 AbJUbTXUmYUIaw6NDhvJmfizF9o1av4YYbTALw+yh/5P4OOea58wm5AuUG042iC+ e27quVzeh3hK6KJ1xBQ02HuWi2LtlzjhvRhGg6WfPS9V3mTHFK5EYg/UH4nFVdjr 3tduLOlCgJSDgFy1gWqou0LOZNNYR8bmUiLrEAumcq+di6YV8LS9Qpt6p09wEpCw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedttddgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpeevfefgueegvdejfeejffekhfefteekledvgedvfeegfedujeeutdekheeigfelueen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthh grvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Jun 2021 20:56:02 -0400 (EDT) Date: Fri, 4 Jun 2021 09:55:59 +0900 From: Michael Paquier To: Tom Lane Cc: long Allen , pgsql-bugs@lists.postgresql.org Subject: Re: windows psql connection error Message-ID: References: <272708.1622728914@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="so0xnGSbr+ET4NMn" Content-Disposition: inline In-Reply-To: <272708.1622728914@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --so0xnGSbr+ET4NMn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 03, 2021 at 10:01:54AM -0400, Tom Lane wrote: > long Allen writes: > > When I execute commands "psql postgres -p 5433" in Windows, the system > > reported an error =E2=80=9C"extra command-line argument **** ignored=E2= =80=9C. >=20 > 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. Just to bring in a bit more context.. Any code compiled with MSVC on Windows would use the fallback implementation of getopt_long() in src/port/getopt_long.c, which only supports the case where the extra argument is at the end of the command. -- Michael --so0xnGSbr+ET4NMn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmC5eh8ACgkQnvQgOdby QH1ttA//esOXksbWxY75ITMK4GZLFj+7c+5zBxnIJUUz8uWytTEKn7VmWj3p8HrV xbHBz2IzL2DYzqJHLTCvaNiaL4Ex1heCk1NILXPpI65+ylwdfnYzKCp9ffgctAEx LfMdl3X7KI2+bobRPxwtLlW4nRqKyntlLnxh0FxAug9kPyqMkPIfQTLo8OgXQ067 nKOI4EBcS+DAiMKk5TGsGwVaW4L/Mph9u+5mmchEhJG//ItbzHJmo0r2FO92rvxZ 8uJa60Gp7queLDRagCpRVUxO0Z6ueCWWGlIKfPRfSuFAwpTFRlXvHQQaUZGO62uQ W/1Vc+pSl85fgCqXnFEhIQZILnYESsyCNZEgti0V4QbtzQUL7DSJCOe0aAVU0VK5 TJcL+Im1ETeTTu2/1zuFK7z0uU2KvyblG9sI5yRrN+NZM/h/59zInDArP+huSjJW km590HLVN5uYNeQ2B5EywDjqTpwcFU8qHifJNA9jRGUjQJEWI39v48ucJ2H8dIRT uw0podmrGhTxlUIsL9B3uYhFcgn2oFSLj4mE8xKEsSHoMUvBa/hXQMiSGiMqwtID HVSN/dQGuePQMtKpsp9b4KmtB0zeuCsYpWoOonlO1S7R2brIDEHTDh6XkYHEvuck m0Zp8y7MVWIS2v66WDiehWQgfsvRD2E74k0z35C+IKfUHoyXy2Q= =tuuB -----END PGP SIGNATURE----- --so0xnGSbr+ET4NMn--