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 1lFeZ7-000205-1o for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 14:58:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFeZ4-0007JR-MI for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 14:57:58 +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 1lFeZ4-0007JJ-CV for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 14:57:58 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lFeZ2-0006o5-0T for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 14:57:57 +0000 Received: by mail-wm1-x335.google.com with SMTP id w7so7655573wmb.5 for ; Fri, 26 Feb 2021 06:57:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K8q/GBXOawCKhKcDe7Vjs6gpLY1BmUgsbAwDo5CwK/k=; b=eIG96DZlfbrSDSyTui2y/A3f6j+dtnjdcPpXMFTXbCbvhLzKamr9UsFVATBIuPaLQg Zej8vjNen4fbKYnPmHQmUubVzkqEFWMtGBiUILPA1v+/qEgmezBsW9Wr2NVQXeEMFCu8 AdTFeiGm1K3PN+ctB0ca8nTw+wocqHO8jVBzh88ZDcYj2TwLrgBnYAjMBH7mltDng3aM +IC+2Mhe0OBmcFnAsqwlA/LVPk68La0PFEB1Xdwu7hjQQtdVCiY6lt/g9Hwp8Z0PVF1B pC6sx055o2hO5A9Wj7VbkUX+4ecNVWhxNRNb3owYJeh6/ilnQmlLmdnIDgqPClBUgeTs zwjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K8q/GBXOawCKhKcDe7Vjs6gpLY1BmUgsbAwDo5CwK/k=; b=WLhJB8mzjhf0SV373X4r/7ZTaD/FJKiMgOwxluF/sFvW/3kc9Ol8esEWS1m/7umNdT /8kFXXL2QwXNDBcTwINhVLpWYwuAftvXBJeebjxgeNEa0XliO6pLC8GWFWpmqJNJc//Z 6I0x0wbv0ZKsoa3vLtExrCrpDdzK/WWJIRMYf3pgKQtieKDquTvSuYNxHh+KSY3gffLH tk5MAA1AZMk+EhPSPQY9l5GFvsQ10D05ePRr+COU+t/RI52HdCegHI/+awcPs1eBMD9o FirBFsl+f2vORL28+lmFW20dv69vVE5rX6Z+OJ0VFyu55blDmleaNKfFBD4SgBIhg7lv y4KQ== X-Gm-Message-State: AOAM533X5Y8Us1M1+f29Wb+hLfRC7niRyFvDN0jqEqosAgHdq8HTz1HC M/27Q6k4Z1LW/H18CEW1pc8= X-Google-Smtp-Source: ABdhPJwyg1edVq26KuiGg4JgqBsu9ha8c8QWsu5IO7mMSSF8jF67GNH3DFTHlWbNHiYacEab6aK/Ow== X-Received: by 2002:a1c:2ed4:: with SMTP id u203mr3337693wmu.45.1614351474863; Fri, 26 Feb 2021 06:57:54 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id t14sm14308959wru.64.2021.02.26.06.57.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2021 06:57:54 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: PostgreSQL URI From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <249146.1614351074@sss.pgh.pa.us> Date: Fri, 26 Feb 2021 15:57:53 +0100 Cc: Alvaro Herrera , pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210226143050.GA875@alvherre.pgsql> <249146.1614351074@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3654.60.0.2.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Tom, > On 26. Feb, 2021, at 15:51, Tom Lane wrote: >=20 > +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 >=20 > hostspec is [host][:port][,...] >=20 > Also, the paramspec is under-bracketed today. Should be > more like >=20 > paramspec is param=3Dvalue[&...] 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. This is exactly what I was initially confused about. So I consider the = outer brackets essential for that. Cheers, Paul=