pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: specifying multiple options in URI psql behaviour?
Date: Tue, 3 Oct 2023 08:35:54 -0500
Message-ID: <5440513c-9d1b-8b45-9023-e2ebc97b6d19@gmail.com> (raw)
In-Reply-To: <d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be>
References: <e43d805a2fdf29d5e587fd9fe2358b7a92000d51.camel@ucll.be>
	<2018730.1696256489@sss.pgh.pa.us>
	<d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be>

On 10/2/23 10:21, Wim Bertels wrote:
> Tom Lane schreef op ma 02-10-2023 om 10:21 [-0400]:
>> Wim Bertels <wim.bertels@ucll.be> writes:
>>> * but if you put more than 1 option, then it doesn't?:
>>> #psql
>>> postgresql://myuser@myserver/mydb?connect_timeout=10&target_session
>>> _attrs=any
>> Maybe you forgot to quote that?  Ampersand is a shell metacharacter.
> yes indeed, & bg and fg, thank you Tom
>
> # psql
> 'postgresql://myuser@myserver/mydb?connect_timeout=10&target_session_at
> trs=any'
>
> or just
>
> # psql
> postgresql://myuser@myserver/mydb?connect_timeout=10'&'target_session_a
> ttrs=any

Escaping the & using \ should also work.

-- 
Born in Arizona, moved to Babylonia.





view thread (4+ messages)

Message-ID: <5440513c-9d1b-8b45-9023-e2ebc97b6d19@gmail.com>
Permalink:  ../5440513c-9d1b-8b45-9023-e2ebc97b6d19@gmail.com/
Also on:    postgresql.org/message-id/5440513c-9d1b-8b45-9023-e2ebc97b6d19@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: specifying multiple options in URI psql behaviour?
  In-Reply-To: <5440513c-9d1b-8b45-9023-e2ebc97b6d19@gmail.com>
  References: <e43d805a2fdf29d5e587fd9fe2358b7a92000d51.camel@ucll.be> <2018730.1696256489@sss.pgh.pa.us> <d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be> <5440513c-9d1b-8b45-9023-e2ebc97b6d19@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox