pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wim Bertels <wim.bertels@ucll.be>
To: tgl@sss.pgh.pa.us <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: specifying multiple options in URI psql behaviour?
Date: Mon, 2 Oct 2023 15:21:33 +0000
Message-ID: <d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be> (raw)
In-Reply-To: <2018730.1696256489@sss.pgh.pa.us>
References: <e43d805a2fdf29d5e587fd9fe2358b7a92000d51.camel@ucll.be>
	<2018730.1696256489@sss.pgh.pa.us>

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

> 
> (It does seem to work for me, as long as I put quotes around the
> URL.)
> 
>                         regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be>
Permalink:  ../d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be/
Also on:    postgresql.org/message-id/d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be

 · 

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: wim.bertels@ucll.be, tgl@sss.pgh.pa.us
  Subject: Re: specifying multiple options in URI psql behaviour?
  In-Reply-To: <d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be>
  References: <e43d805a2fdf29d5e587fd9fe2358b7a92000d51.camel@ucll.be> <2018730.1696256489@sss.pgh.pa.us> <d22e148fdc6cc02e47e4e28d63ed88eb30548ae6.camel@ucll.be>

* 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