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 1lFev6-0002sL-7v for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 15:20:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFev5-0005P2-5Y for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 15:20:43 +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 1lFev4-0005Ov-UE for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 15:20:42 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFev2-00050e-SV for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 15:20:41 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id CBA775C0156; Fri, 26 Feb 2021 10:20:39 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 26 Feb 2021 10:20:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=8GxE5LpeXyA08rOUW1l7mv+U2sBlzoqcehgflp4wZns=; b=BLxPmlxr JLHr61FoZphtOSKIQ0G7T2YJCTLdQ+AnQPA2W9ThkRYHuteYcJbDGp/TpFmkSlGR 5NErQea4P7g2w+7HLmMqSXUAGDMa9R+8pFOCrdBQmyAuIj3EprmI7kkfQ1vx+L/F q0nWUvj+b9GqVU0+J8bgcd7ersCHTTzLijosqtyz/H8/1itaWONP0898WR+FqS8R vgzkHwwESnWzJkUlsgjVEpE6J2Hk0aYKl5TEbJdpLkMcZWFCBZACBIMI1E60vQUq pRvUypyFqW905unqPgCCR6dDCtGiyNrY4ep/iGWt/64E1tv8UxKqD2cb0wRw+XIU EYekOXgWlCcR8A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrledugdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjggfsehtkeertddtredunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeufffhjeeiueeuffegvddukeegledtveeivdeiueefieei vefgteehueefteehvdenucfkphepudeltddrleehrdduledrleehnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id B66AF240057; Fri, 26 Feb 2021 10:20:38 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9F14A2A0FB1; Fri, 26 Feb 2021 12:20:35 -0300 (-03) Date: Fri, 26 Feb 2021 12:20:35 -0300 From: Alvaro Herrera To: Paul =?iso-8859-1?Q?F=F6rster?= Cc: Tom Lane , pgsql-general list Subject: Re: PostgreSQL URI Message-ID: <20210226152035.GA4787@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-Feb-26, Paul Förster wrote: > Hi Tom, > > > On 26. Feb, 2021, at 15:51, Tom Lane wrote: > > > > +1. I think you could lose the outer brackets in hostspec in > > this formulation, ie given that hostspec is already bracketed > > above, it should be enough to write > > > > hostspec is [host][:port][,...] > > 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]. > > Also, the paramspec is under-bracketed today. Should be > > more like > > > > paramspec is param=value[&...] True. -- Álvaro Herrera Valdivia, Chile "Estoy de acuerdo contigo en que la verdad absoluta no existe... El problema es que la mentira sí existe y tu estás mintiendo" (G. Lama)