windows - 在 Windows 上的 emacs 中运行 M-x sql-postgres

标签 windows postgresql emacs

当我尝试在 Windows 上的 emacs 中运行劣质 psql 进程时,我似乎没有得到任何响应。这似乎是一个 known problem解决方法是安装cygwin版本的psql。不幸的是,cygwin psql 似乎什么都不做,甚至 psql -V 什么也不做。有没有人有解决这些问题的方法,或者有从 emacs 向 postgresql 发送查询的简单方法。

最佳答案

这可能不是一个好的答案,但我目前不在装有 Emacs 或 PostGres 的 Windows 机器上,所以我无法为您找到更好的解决方案。

就是说,你能在命令 shell 中运行 psql 吗?如果是这样,也许您可​​以尝试启动 shell (M-x shell) 或 Eshell (M-x eshell) 启动一个低级 shell 并从那里运行 psql

我原本打算建议您调用 M-x shell-command(也可以是 M-!),然后为您的命令指定 psql &命令。 & 让 Emacs 知道您想要异步运行 shell 命令。然而,this entry EmacsWiki 上的 表示它不能在 Windows 上运行。无论如何,您都可以尝试一下,看看会发生什么......

关于windows - 在 Windows 上的 emacs 中运行 M-x sql-postgres,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3284174/

相关文章:

python - 使用 emacs-jedi 自动导入模块

emacs - 固定 : emacs:org-babel: noweb reference expand with an surplus line

emacs - emacs 24 中的消息显示行为已更改

python - 在 Windows 上执行脚本时隐藏控制台

python - 为什么在 Windows 上启动新进程时 Python 的多处理模块会导入 __main__ ?

postgresql - 如何在postgis中找到多边形内的所有点?

postgresql - 从表中的 "last"N 行中获取平均值

sql - 跨行聚合列

windows - CMD 中的循环...如何循环 A 到 Z(对于驱动器号)

node.js - 如何连接到 Angular ,nodejs http ://localhost:4200 in google chrome