Обсуждение: emacs and postgres on another host

Поиск
Список
Период
Сортировка

emacs and postgres on another host

От
Arcady Genkin
Дата:
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.