unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rob Sargent <rsargent@xmission.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: sql-postgres connect using URL
Date: Fri, 28 Oct 2022 06:51:55 -0600	[thread overview]
Message-ID: <44a90cd0-2749-50d7-4c8b-f35de0cce0f5@xmission.com> (raw)
In-Reply-To: <CAP_d_8Xadw4+Cbp-A0uryoE+qMiHCoJYD-TS_0qS+k0wNi3fEw@mail.gmail.com>



On 10/28/22 00:18, Yuri Khan wrote:
> On Fri, 28 Oct 2022 at 11:46, Rob Sargent <rsargent@xmission.com> wrote:
>
>> This clearly works from the command line:
>>
>>      psql postgresql://postgres@csgsdb/postgres?&keepalives_idle=60&keepalives_interval=30&keepalives_count=10
> If you ran literally this without quoting or escaping the &s, I don’t
> see how it could work. Here, you run four commands:
>
> * ‘psql postgresql://postgres@csgsdb/postgres?’ in background
> * empty command with environment variable ‘keepalives_idle’ set to
> ‘60’, in background
> * empty command with environment variable ‘keepalives_interval’ set to
> ‘30’, in background
> * empty command with environment variable ‘keepalives_count’ set to ‘10’
>
> The last three have no effect and complete immediately. The first one
> runs without any keepalive-related settings, and you can’t interact
> with it because it’s in background.
You're right.  single quote the whole argument



      reply	other threads:[~2022-10-28 12:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-26 22:43 sql-postgres connect using URL Rob Sargent
2022-10-27 20:19 ` Emanuel Berg
2022-10-27 20:56 ` Jean Louis
2022-10-28  1:53   ` Rob Sargent
2022-10-28  4:11     ` Jean Louis
2022-10-28  4:45       ` Rob Sargent
2022-10-28  5:25         ` Jean Louis
2022-10-28  5:36           ` Rob Sargent
2022-10-28  7:05             ` Jean Louis
2022-10-28 12:42               ` Rob Sargent
2022-10-28  6:18         ` Yuri Khan
2022-10-28 12:51           ` Rob Sargent [this message]

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44a90cd0-2749-50d7-4c8b-f35de0cce0f5@xmission.com \
    --to=rsargent@xmission.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).