如何在Windows下完成psql?
Cygwin或UNIX的psql命令有补全功能 psql 中没有适用于 Windows 本机的函数。 如何在Windows下完成psql?
There is a completion function by the psql command of Cygwin or UNIX
There is not the function in psql for a Windows native.
How to make psql completion with Windows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
现在已经是 2018 年了,我仍然没有在 Windows 上实现制表符补全功能。
但幸运的是,您可以在最新的 Windows 10 上的适用于 Linux 的 Windows 子系统中运行 psql。 https://learn.microsoft.com/en-us/windows/wsl/install-win10
制表符补全在那里工作。
It's now 2018 and I still haven't managed the tab completion to work on Windows.
But fortunately you can run psql in the Windows Subsystem for Linux on the latest Windows 10. https://learn.microsoft.com/en-us/windows/wsl/install-win10
Tab completion works there.
Readline 在 Windows 上默认处于禁用状态。 您可以在启用它的情况下进行重建 - 但对于大多数非英语语言环境来说它会被破坏。 例如,在大多数西欧语言环境中,您无法再键入反斜杠 - 这是使用 readline 的基本字符。 这是 readline 中的一个错误,但上次我检查他们对 win32 平台的兴趣为零,并且不会修复它。
Readline is disabled by default on Windows. You can rebuild with it enabled - but it is broken for most non-english locales. For example, in most western european locales you can no longer type backslash - an essential character to use readline. This is a bug in readline, but last time I checked they had zero interest in the win32 platform and won't fix it.