From: Pascal c <pch.netz@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Emacs + sql-postgres
Date: Wed, 29 May 2013 11:56:11 +0200 [thread overview]
Message-ID: <CA+vYbk4Tm4XbPT=pxTc7DUp5-_=SA-cn4DKshuq25UzvWFHrFA@mail.gmail.com> (raw)
In-Reply-To: <86ip229nt7.fsf@w2139spb.ru.yotateam.com>
hi Filipp,
thank you for your reply.
As you can read into my email I'm using psql from cygwin :
>Password for user postgres:
>psql: FATAL: Passwort-Authentifizierung f³r Benutzer ╗ postgres½
fehlgeschlagen
>Into my .emacs I have written the line :
>(setq sql-postgres-program "C:\\cygwin\\bin\\psql.exe")
or mybe this is not the psql from cygwin ?
Thank you,
Cheers,
Pascal
2013/5/29 Filipp Gunbin <fgunbin@fastmail.fm>
> On 29/05/2013 11:22 +0400, Pascal c wrote:
>
> > If I use sql-postgres, I got the prompt to entry my user, host and
> database.
> > Then I got the prompt from psql to entry my password. But this doesn't
> > work.
> > I got the following state :
> >
> > Password for user postgres:
> > psql: FATAL: Passwort-Authentifizierung f³r Benutzer ╗ postgres½
> > fehlgeschlagen
>
> The simplest case is using cygwin Postgres (with psql) from cygwin
> Emacs. Try that, if that does not work then probably you have some
> authentication problems.
>
> As for issuing commands, you can do that either from interactive sql
> buffer, which runs psql and therefore accepts its commands, or from any
> sql buffer which have an associated interactive buffer (then commands
> like `C-c C-r' for sending a query to the interactive buffer apply).
>
> `sql-set-sqli-buffer' allows to choose such an interactive buffer.
> `sql-set-product' with an argument of `sql-postgres' may be required
> before `sql-set-sqli-buffer'.
>
> Filipp
>
next prev parent reply other threads:[~2013-05-29 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 7:22 Emacs + sql-postgres Pascal c
2013-05-29 8:45 ` Filipp Gunbin
2013-05-29 9:56 ` Pascal c [this message]
2013-05-29 13:30 ` Pascal c
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+vYbk4Tm4XbPT=pxTc7DUp5-_=SA-cn4DKshuq25UzvWFHrFA@mail.gmail.com' \
--to=pch.netz@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.