When I try to start the lower psqlprocess in emacs on windows, I do not seem to get a response. This seems to be a known issue whose solution is to install the cygwin version psql. Unfortunately, cygwin psqldoes not seem to do anything, not even psql -Vdoing anything. Does anyone have a solution to any of these problems or an easy way to send requests from emacs to postgresql.
psql
psql -V
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. .
, , , Windows- Emacs PostGres, .
, psql ? , , (M-x shell) Eshell (M-x eshell), psql .
M-x shell
M-x eshell
M-x shell-command ( M-!), psql & . & Emacs , . EmacsWiki , Windows. , ...
M-x shell-command
M-!
psql &
&
( 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 )
Source: https://habr.com/ru/post/1755366/More articles:Migrating SVNs to GIT: Incorrect Special Character File Names - git-svnASP.NETName main page structure: value cannot be a null error - asp.netpython dictionary storing integer numbers - pythonPerl, redirect stdout but keep parent - perlmatlab: exp (X) gives inf, although exp (max (X)) is not - matlabtwitter Google speed limit exceeded - google-app-engineIs Javascript under V8 faster than equivalent code in other languages? - javascriptRails 2.3.5 engine (plugin), how to specify jewel requirements - ruby-on-railsiPhone - getting adjusted font size UITextField - iphoneSSL browser support discovery - javascriptAll Articles