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 1lFfjv-0004Vw-7y for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 16:13:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFfjs-0002PV-Ok for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 16:13:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFfjs-0002PO-HX for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 16:13:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFfjp-0007SF-A0 for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 16:13:11 +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 11QGD3DK284598; Fri, 26 Feb 2021 11:13:03 -0500 From: Tom Lane To: Alvaro Herrera cc: Paul =?iso-8859-1?Q?F=F6rster?= , pgsql-general list Subject: Re: PostgreSQL URI In-reply-to: <20210226152035.GA4787@alvherre.pgsql> References: <20210226152035.GA4787@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 26 Feb 2021 12:20:35 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <284592.1614355983.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 26 Feb 2021 11:13:03 -0500 Message-ID: <284593.1614355983@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2021-Feb-26, Paul Förster wrote: >> if you remove the outer brackets of host spec, then that means that >> only the port may be repeated. The repeat is always meant to refer to >> its immediate preceding argument. The outer brackets make sure that it >> refers to either of both host *and* port. > I think an easier fix is to move the repeat to the main line, i.e., make > it "hostspec[,...]" and then hostspec is only [host][:port]. WFM. Who's going to write the patch? (I can, but if one of you wants to, be my guest.) regards, tom lane