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 1lFiOq-0002CQ-HU for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 19:03:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFiOo-0006DY-Ob for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 19:03:38 +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 1lFiOo-0006DQ-Fd for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 19:03:38 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lFiOi-000732-3L for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 19:03:37 +0000 Received: by mail-wr1-x42e.google.com with SMTP id e10so9345478wro.12 for ; Fri, 26 Feb 2021 11:03:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=V8uWExKaWgvpMhVn1CZDj8RGFXJgzgrTS17PrI7qHBQ=; b=m0UkgKNOTGn84EnvIMHaVG7nSsMtLzQP0DNK7ih4DWhEK3xNX/w+RpV10p/kw6xzOF RurILPZykiHqa7Xt4AcGxqJwz5vEPjiLXbP3l4emWVjQEfFkOz062LubdQyV/W71CyR2 c78efe/7maKD7o821hZiWz/ATAnwvipD7MFvK/ac/dNpwYBnq2QDBoSn4q046IgxzZa+ FLLyq6GjMWjAmvjaGmmj6k5e3RpM3mYbDAYOXqYuNo68kEfG5OSG2KBilnR3Nox5ARcE u8TN+xrL/Eqdpz744aJnHnAWgrE3vt9DN0ouOFzzHmUdgDMZ2WOmksprvo0cKkoaGNW0 MdBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=V8uWExKaWgvpMhVn1CZDj8RGFXJgzgrTS17PrI7qHBQ=; b=p98dVd0fWyIwnWoDNQYf9ZjnvRUnKWDLOAzD3XfC83TUX51BlV30MVnUGFBVO6eVZB IR/7l2wnOzuoiVfjJ8aD6b8Bw516B+LdBCNZZXlTD/i35V7n3USD2emaAocYH3FehpKO 5uXJZH20AjiDtZVM92CAjqTvWTiRrbiQgDPMCJK9q7D13Xh0dyQp7HwA9xy8eCPKmJQZ 4pf/oJe0TeDV3rr3PpxLjld6FRA6xd8ntohTANoRYFa8VpADvj2fB/gwp/m3iVkY7dLO 8yd6THPNnBX5Mn22fCKYJ5RAzodDzS7APYvKff6dSLQ+UlrR5FJ4SErN9FLwuVDjHlFG PyMg== X-Gm-Message-State: AOAM53007Wdw8HCLPWgmzmllwoi9icPqp9Ck6rZacSSvt8NjjusK/Usi XtLVaideIA+S5kb62nGY+CQ= X-Google-Smtp-Source: ABdhPJwR6IUReFHkM8AhB/R1BBYopM/lxoQHAeKz9hSx5Vo8D78lDFcq21NTTPjTrKxskit/sV3a9g== X-Received: by 2002:adf:edc3:: with SMTP id v3mr4548565wro.79.1614366210797; Fri, 26 Feb 2021 11:03:30 -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 a198sm5042481wmd.11.2021.02.26.11.03.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2021 11:03:30 -0800 (PST) From: =?utf-8?Q?Paul_F=C3=B6rster?= Message-Id: <2F9DD553-0163-4576-A8D0-3F8CE13CABE4@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_4DD49FAE-2395-4FF2-B4A8-311EC9A93D3E" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: PostgreSQL URI Date: Fri, 26 Feb 2021 20:03:28 +0100 In-Reply-To: <5EC34115-3585-4B05-838F-E9E918D9E8D6@gmail.com> Cc: Alvaro Herrera , pgsql-general list To: Tom Lane References: <20210226152035.GA4787@alvherre.pgsql> <284593.1614355983@sss.pgh.pa.us> <5EC34115-3585-4B05-838F-E9E918D9E8D6@gmail.com> X-Mailer: Apple Mail (2.3654.60.0.2.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_4DD49FAE-2395-4FF2-B4A8-311EC9A93D3E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Tom, > On 26. Feb, 2021, at 19:02, Paul F=C3=B6rster = wrote: >=20 > as I said, I don't know how to write a patch. But I played around with = diff & patch. >=20 > However, does this do when applied to = https://www.postgresql.org/docs/current/libpq-connect.html? Would this = be what is needed? sorry, I just realized I used a redundant @ character. So here's the = corrected version. --Apple-Mail=_4DD49FAE-2395-4FF2-B4A8-311EC9A93D3E Content-Disposition: attachment; filename=libpq-connect.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="libpq-connect.patch" Content-Transfer-Encoding: 7bit --- libpq-connect.html 2021-02-26 18:31:27.000000000 +0100 +++ libpq-connect.html 2021-02-26 18:43:31.000000000 +0100 @@ -523,7 +523,13 @@

The general form for a connection URI is:

-postgresql://[user[:password]@][host][:port][,...][/dbname][?param1=value1&...]
+postgresql://[userspec@][hostspec][/dbname][?paramspec]
+
+

where

+
+userspec := user[:password]
+hostspec := ([host][:port])[,...]
+paramspec := name=value[&...]
 

The URI scheme designator can be either postgresql:// or postgres://. Each of the remaining URI parts is optional. The following examples illustrate valid URI syntax:


--Apple-Mail=_4DD49FAE-2395-4FF2-B4A8-311EC9A93D3E
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii



Cheers,
Paul
--Apple-Mail=_4DD49FAE-2395-4FF2-B4A8-311EC9A93D3E--