Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnJni-00Aaxw-Pm for pgsql-general@arkaria.postgresql.org; Mon, 02 Oct 2023 14:21:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qnJnh-00FZ0H-ER for pgsql-general@arkaria.postgresql.org; Mon, 02 Oct 2023 14:21:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnJnh-00FZ09-32 for pgsql-general@lists.postgresql.org; Mon, 02 Oct 2023 14:21:33 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnJne-007nWf-P1 for pgsql-general@lists.postgresql.org; Mon, 02 Oct 2023 14:21:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 392ELTDj2018731; Mon, 2 Oct 2023 10:21:30 -0400 From: Tom Lane To: Wim Bertels cc: "pgsql-general@lists.postgresql.org" Subject: Re: specifying multiple options in URI psql behaviour? In-reply-to: References: Comments: In-reply-to Wim Bertels message dated "Mon, 02 Oct 2023 12:48:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2018729.1696256489.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 02 Oct 2023 10:21:29 -0400 Message-ID: <2018730.1696256489@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wim Bertels writes: > * but if you put more than 1 option, then it doesn't?: > #psql postgresql://myuser@myserver/mydb?connect_timeout=3D10&target_sess= ion_attrs=3Dany Maybe you forgot to quote that? Ampersand is a shell metacharacter. (It does seem to work for me, as long as I put quotes around the URL.) regards, tom lane