pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arcady Genkin <a.genkin@utoronto.ca>
To: pgsql-interfaces@hub.org
Subject: emacs and postgres on another host
Date: 21 May 2000 23:41:39 -0400
Message-ID: <87zopjgsjw.fsf@tea.thpoon.com> (raw)

How would I specify for M-x sql-postgres that I want to connect to
postgres running on another host? (I use "psql -u -h host dbname"
command in a terminal window...)

I tried modified call to sql-get-login in sql.el, supplying symbols
'user and 'password, and now I am prompted for user and password, but
still I can't connect, getting this:

,----[ *SQL* buffer ]
| Connection to database 'antipode' failed.
| fe_sendauth: no password supplied
| 
| 
| Process SQL exited abnormally with code 1
`----

I'm using sql.el 1.4.11 with psql 6.5.3.

Any ideas?
-- 
Arcady Genkin                                 http://www.thpoon.com
Nostalgia isn't what it used to be.



Message-ID: <87zopjgsjw.fsf@tea.thpoon.com>
Permalink:  ../87zopjgsjw.fsf@tea.thpoon.com/
Also on:    postgresql.org/message-id/87zopjgsjw.fsf@tea.thpoon.com

 · 

reply

Reply instructions:

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

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: a.genkin@utoronto.ca, pgsql-interfaces@hub.org
  Subject: Re: emacs and postgres on another host
  In-Reply-To: <87zopjgsjw.fsf@tea.thpoon.com>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox