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: Jean Louis
Subject: Re: sql-postgres connect using URL
Date: Fri, 28 Oct 2022 08:25:27 +0300
User-agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02)

* 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.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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