unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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 19:53:04 -0600	[thread overview]
Message-ID: <bd5e76ed-1996-0b45-6414-2d51ecb4702e@xmission.com> (raw)
In-Reply-To: <Y1rwc/3oPJiopQCu@protected.localdomain>



On 10/27/22 14:56, Jean Louis wrote:
> * Rob Sargent <rsargent@xmission.com> [2022-10-27 23:05]:
>> I need to be able to supple option TCP options in my sql-postgres sessions.
>>
>> I've tried the following, without effect so far.
>>
>> |(setq sql-connection-alist '(db (sql-product 'postgres) (sql-database
>> ("postgresql://myusername@host/dbname?keepalives_idle=69?other=...")))|
> I think PostgreSQL listens on TCP port by default, so what you need to
> supply are variables
>
> (setq sql-database "my-db")
> (setq sql-password "my-pass")
> (setq sql-postgres-login-params (quote (user password server database)))
> (setq sql-postgres-program "psql")
> (setq sql-product (quote postgres))
> (setq sql-server "my-remote-server")
> (setq sql-user "my-user")
>
>
Yeah, that follows the expected pattern and my usual usage but I need to 
use the URL style connection string.  I don't believe the command line 
args include keepalives*



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

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=bd5e76ed-1996-0b45-6414-2d51ecb4702e@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.
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).