help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sql-postgres connect using URL


From: Rob Sargent
Subject: Re: sql-postgres connect using URL
Date: Thu, 27 Oct 2022 23:36:09 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2



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 via email to

[Prev in Thread] Current Thread [Next in Thread]