什么原因导致“无法识别更多...";在 Windows 机器上运行 Postgresql 11 时出错? [英] What causes "More is not recognized..." error when running Postgresql 11 on a Windows machine?

查看:29
本文介绍了什么原因导致“无法识别更多...";在 Windows 机器上运行 Postgresql 11 时出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断收到此错误:

more 不是公认的内部或外部命令.

more is not a recognized internal or external command.

当我运行这个命令时,

 SELECT * FROM users;

我是 Postgres 的新手.我不得不多次将我的路径设置为:C:\Program Files\PostgreSQL\11\bins

I am new to Postgres. I had to set my path multiple times to: C:\Program Files\PostgreSQL\11\bins

推荐答案

假设您正在使用 psql.

当查询结果超过控制台窗口的大小时,psql 尝试使用分页器在结果中提供一些基本的滚动功能.默认情况下,这是命令 more.虽然我很难相信你的系统没有更多"命令,但你可以关闭它的使用.

When the result of query exceeds the size of the console window, psql tries to use a pager to provide some basic scrolling facility in the result. By default this is the command more. Although I find it hard to believe that your system has no "more" command, you can turn off its usage.

psql里面运行:

arthur=> \pset pager off
Pager usage is off.
arthur=> 

更多细节在手册

相关问题:

这篇关于什么原因导致“无法识别更多...";在 Windows 机器上运行 Postgresql 11 时出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆