What causes “More is not recognized…” error when running Postgresql 11 on a Windows machine?

断了今生、忘了曾经 提交于 2021-02-13 17:39:34

问题


I keep getting this error:

more is not a recognized internal or external command.

when I run this command,

 SELECT * FROM users;

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


回答1:


Assuming you are using psql.

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.

Inside psql run:

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

More details in the manual

Related question:

  • PostgreSQL disable more output
  • customize pager in psql


来源:https://stackoverflow.com/questions/58946133/what-causes-more-is-not-recognized-error-when-running-postgresql-11-on-a-wi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!