all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rob Sargent <rsargent@xmission.com>
To: help-gnu-emacs@gnu.org
Subject: Re: sql-postgres connect using URL
Date: Thu, 27 Oct 2022 23:36:09 -0600	[thread overview]
Message-ID: <cc6cf168-ae84-54fd-ed35-0ceffd0aff21@xmission.com> (raw)
In-Reply-To: <Y1tnxyYKMyiMjMJk@protected.localdomain>



On 10/27/22 23:25, Jean Louis wrote:
> * Rob Sargent <rsargent@xmission.com> [2022-10-28 07:48]:
>> This clearly works from the command line:
>>
>>     psql
>>     postgresql://postgres@csgsdb/postgres?&keepalives_idle=60&keepalives_interval=30&keepalives_count=10
> I had no idea about it.
>
>> I do get connected to the database, at least.  I'll have to wait for the
>> time out to NOT happen :). Meanwhile I'm connecting with emacs in the usual
>> way, then once connected I issue a
>>
>>     \c host=hostname user=rolename keepalives_idle=60
>>     keepalives_interval=30 keepalives_count=10
> Then use variable sql-postgres-options to add extra arguments to
> psql.
>
> You can also use ~/.psqlrc to set things up.
>
>
But question becomes How to stop emacs from prompting for all the usual 
args (host, etc).


Null the alist of prompts I suppose.  Let me dig in.




  reply	other threads:[~2022-10-28  5:36 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 [this message]
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

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

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

  git send-email \
    --in-reply-to=cc6cf168-ae84-54fd-ed35-0ceffd0aff21@xmission.com \
    --to=rsargent@xmission.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.