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 1lFhRR-0000MS-AE for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 18:02:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFhRQ-0006Xm-8C for pgsql-general@arkaria.postgresql.org; Fri, 26 Feb 2021 18:02:16 +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 1lFhRP-0006No-Us for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 18:02:15 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lFhRN-0008Jv-LM for pgsql-general@lists.postgresql.org; Fri, 26 Feb 2021 18:02:15 +0000 Received: by mail-wr1-x430.google.com with SMTP id n4so9437846wrx.1 for ; Fri, 26 Feb 2021 10:02:13 -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=CDpmEbwWgvWy/HkCy/GnffJ+PIfw1VifPzoSCyvA2pg=; b=jDjyzFpu1zYP6wyCngyq0ESIlBpmXiF6yCZ9hcMstwcEkj4tJOuixmwaYT2b1+24lr pcdpKe18hE/k/ekLFdBuehPruXgQ0Jdfmkzeh/Vt4TeX7AtjQAX6fejCVYAgoIGL426f hWHruXTPov7DJUpeX/i2fe3Vgx2dRpDIHH7v+IomPF6qEebAtdyngtm6dkKxZEqOPyb4 DhizBRuBsQWjngXY7ZqgI+wF1V6syjiYXLCuPl/4+Bpvc6yF5D7Zi6pTD4cPVDZsrgGm elObltaLVA6Kd5WJjtw5xrtt+gHub6WHIcSKLKwI5ppnXZXJ3GiyKb9IVqP6+ivO/Wg/ ajrw== 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=CDpmEbwWgvWy/HkCy/GnffJ+PIfw1VifPzoSCyvA2pg=; b=i+6OJnLGpObBqgCA9iLsvsCfS9cNQpcDAVNCjSK/LqxcyVCc7F7E/FopZ7hzUAXNfr Je0TsE59ISYzImQAC5jZHK3QuxENsAng0KNX3XzEka/S3GT8WcKAZQA61a6hRH0dhWxc OFPbkkD8SoxBibvyeUKl8vms1qL9YiM5NWBh5e+hZLMgWYbt8I6IGfqVutgpCvu/y2N1 wQTwVm61DlJ4YG91M5qezuML1DDmx//w8qT6qTl2TzCAm6FAaUJx3LTruRGnGpwtK62E 975NuhOqO1Ou0ho3WnHwfH/XR3u4Z7rNRCAjmey8jrQBtAuNWRoQyBkclJ0MRsaEuACQ Hn6w== X-Gm-Message-State: AOAM533ZhgMOzKCaqEuNXa+rmzGT/kjb+dP0dJ8qc33YiTSTIO9bTiLp Y8eyfpLJkSeA/cKLvq6rxIc= X-Google-Smtp-Source: ABdhPJyNd+o5X2MTJH8b33b440pdomTHe36/WJprku0zozFwQGPjdU2Fc8VAUYbHZ453V6Mbd+IhDg== X-Received: by 2002:adf:df85:: with SMTP id z5mr4184750wrl.211.1614362532774; Fri, 26 Feb 2021 10:02:12 -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 d17sm14619997wrv.93.2021.02.26.10.02.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2021 10:02:11 -0800 (PST) From: =?utf-8?Q?Paul_F=C3=B6rster?= Message-Id: <5EC34115-3585-4B05-838F-E9E918D9E8D6@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_CADFCCE2-A841-4C69-A83C-E593039C6451" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: PostgreSQL URI Date: Fri, 26 Feb 2021 19:02:11 +0100 In-Reply-To: <284593.1614355983@sss.pgh.pa.us> Cc: Alvaro Herrera , pgsql-general list To: Tom Lane References: <20210226152035.GA4787@alvherre.pgsql> <284593.1614355983@sss.pgh.pa.us> 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=_CADFCCE2-A841-4C69-A83C-E593039C6451 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Tom, > On 26. Feb, 2021, at 17:13, Tom Lane wrote: >=20 > WFM. Who's going to write the patch? (I can, but if one of you > wants to, be my guest.) as I said, I don't know how to write a patch. But I played around with = diff & patch. However, does this do when applied to = https://www.postgresql.org/docs/current/libpq-connect.html? Would this = be what is needed? --Apple-Mail=_CADFCCE2-A841-4C69-A83C-E593039C6451 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=_CADFCCE2-A841-4C69-A83C-E593039C6451
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii



Cheers,
Paul
--Apple-Mail=_CADFCCE2-A841-4C69-A83C-E593039C6451--