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 1lFILa-0007P2-04 for pgsql-general@arkaria.postgresql.org; Thu, 25 Feb 2021 15:14:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFILY-0000q7-Um for pgsql-general@arkaria.postgresql.org; Thu, 25 Feb 2021 15:14:32 +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 1lFILY-0000pJ-KO for pgsql-general@lists.postgresql.org; Thu, 25 Feb 2021 15:14:32 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lFILV-00026Z-Ja for pgsql-general@lists.postgresql.org; Thu, 25 Feb 2021 15:14:31 +0000 Received: by mail-wr1-x42b.google.com with SMTP id b3so5599804wrj.5 for ; Thu, 25 Feb 2021 07:14:29 -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=DSd+hj6MZHdQXF3lxkS4p0Fdln4vwH+eYyzO9yBmFhQ=; b=CxkdynrVKpsFKsD+1CsOm/XW3a80fLrhbggSnTz7HFbQbPMaYaNsQFibHSTsGkC0dF bKk8sybHW7ifDbu9rQzPZWnxnvUXtyN4vr+4xi6ho7c11A8GQss3+fZlEq+f+X+ZTJXT RqC+5PBUJOHl1hBPeOVXx58pfRF0xIkUt0EJ0z2gRJDWfZVJnb306z5usae/vAVyN1ky 8yzpbHAqVyKkpdIsXGGA1JgCimp68o7TRCL3OBdm3pWlALyk3RT5cnkwYq7wbNCrD8ef a5YWqQlj/GGlfHV2MYTAXsxdgQpKI2gOCwHHOOrxi45iW4UYSYb0IVaGR4cbZq9xnzP9 Tu8Q== 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=DSd+hj6MZHdQXF3lxkS4p0Fdln4vwH+eYyzO9yBmFhQ=; b=c6LuJ59b8H4Scn7JKUCtAAvodwlcGzJqajD4kMJytf4XMDgOZVVBpHYlh64zTTmLmg LPgNtgUggN8lzSKSGAZwLKfp/RPA4KZY/cbqXm6X6k4YT8/Nh7BkzIibVEZcYG/Nj7BU NejJ7wIyEk13NLeL9E8br2y1aeSVvPXjcwPISTDBeMwJnZbOLpt4vPAncuWhHyeXRvuJ qqP/c9SnB6r97UJg2ff1h90CYyBPI3gBgQEavOr5AfdPZk9kOG+uw10LkCZvdYVmzaHH ZGTLDxmNEpDLyhIjs01HBavdvB3QeAGN3L0bDFtfMPi8XmEVp0UN6KF8OA4aTbShM976 XnmQ== X-Gm-Message-State: AOAM531YzZ94UlvELlKj5zLFcQioOLMQw8MWg+sYZkC7dM41bNJcsCtZ r1SIxW+Z964R88eVAX+5uz0= X-Google-Smtp-Source: ABdhPJxpNA9L5OuXDGEV+4PyNg0ZgMqUaQ2nl0F8vcqVQ7wdLXaIWyRSQnlVsRa8prvNO+2HV7Kuxg== X-Received: by 2002:adf:aa08:: with SMTP id p8mr3934340wrd.232.1614266068156; Thu, 25 Feb 2021 07:14:28 -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 s2sm9216566wrt.33.2021.02.25.07.14.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Feb 2021 07:14:27 -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: <109141.1614265768@sss.pgh.pa.us> Date: Thu, 25 Feb 2021 16:14:27 +0100 Cc: pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: References: <6E752D6B-487C-463E-B6E2-C32E7FB007EA@gmail.com> <109141.1614265768@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 25. Feb, 2021, at 16:09, Tom Lane wrote: >=20 > =3D?utf-8?Q?Paul_F=3DC3=3DB6rster?=3D = writes: >> in = https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRIN= G it says that the syntax for a PostgreSQL URI is: >=20 >> = postgresql://[user[:password]@][host][:port][,...][/dbname][?param1=3Dvalu= e1&...] >=20 >> What I don't understand is the [,...] part, i.e. optionally repeating = argument. >=20 > You can repeat the host[:port] part, no more. I suspected this already. Still the position of the closing angle = bracket behind the "host" part in the syntax is IMHO wrong in the doc. It currently says: = postgresql://[user[:password]@][host][:port][,...][/dbname][?param1=3Dvalu= e1&...] But shouldn't it say instead: = postgresql://[user[:password]@][host[:port]][,...][/dbname][?param1=3Dvalu= e1&...] Thanks very much. Cheers, Paul=