Running Mx sql-postgres in emacs on windows

3 answers

Ok, I finally figured out how to run cygwin psql. It seems that the provided cygpq.dll was missing at some entry point,

strace -o /dev/null psql --version

" PQencryptPassword cygpq.dll. "

cygwin, cygpq.dll , , . cygwin. .

+1

, , , Windows- Emacs PostGres, .

, psql ? , , (M-x shell) Eshell (M-x eshell), psql .

M-x shell-command ( M-!), psql & . & Emacs , . EmacsWiki , Windows. , ...

+1

( cygwin psql).

, , M-x sql-postgres psql M-x , ; ( ), .

, postgres, psql M-x:

If the default values ​​are not entirely correct, you can save yourself some typing by setting the environment variables PGDATABASE, PGHOST, PGPORT and / or PGUSER to the appropriate values. (See the documentation for additional environment variables.) It is also convenient to have a ~ / .pgpass file to avoid entering passwords regularly. See the documentation for more information. ( http://linux.die.net/man/1/psql )

+1
source

Source: https://habr.com/ru/post/1755366/


All Articles