postgresql - Windows的PostgreSQL中的psql_history文件在哪里

标签 postgresql psql

我的 PostgreSQL 版本是 9.6,Windows Server 2012。

但在 %APPDATA%\postgresql\psql_history 中找不到 PostgreSQL psql_history 文件。 我怎样才能找到这个文件?

此外,当我输入 \s 命令查找命令历史记录时,警告消息“此安装不支持历史记录”

最佳答案

由于“ native ”Windows 安装不支持历史记录,因此无法查找历史记录文件。这就是它在 Windows 上的工作方式。

如果您想在 Windows 上使用命令行历史记录,可以安装 cygwin,然后通过 cygwin 安装 psql。

关于postgresql - Windows的PostgreSQL中的psql_history文件在哪里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68011643/

相关文章:

sql - UTC时间对应的本地时间

java - 如何将一个大数(精度 19,小数位数 2)四舍五入为整数?

ssh - 通过 ssh 将 psql 输出保存到本地文件?

postgresql - Go语言,Postgres : cannot get oid after Scan

SQL 从表中选择特定组

mysql - 游程长度或连续相同值编码的 SQL 查询

postgresql - Postgres 运行缓慢的删除查询

postgresql - PostgreSQL COPY 方法需要什么锁?

postgresql - 如何在postgres数据库中执行.sql文件

Postgresql - PSQL 编码问题