1

I have two raspberry pi's; both with postgres-installed databases.

On one pi, when I'm in the psql command line and do something like select * from "User"; it shows me the results in the shell/stdout.

When I'm on the other pi and type the same select * from "User";, it shows the output in nano, and I have to hit Q to escape and go back to the command line interface.

How do I remove the editor setting in psql to just show the output of the query in the command line interface?

I've found documentation to set the editor to something (http://www.postgresql.org/docs/9.1/static/app-psql.html) but I don't want to set the editor to anything, just have it print out (so I don't have to hit Q every time)

4

1 回答 1

1

在 psql 中运行

\pset pager off

或将此行放入您的 .psqlrc 文件中。那么无论输出有多大,都不会使用寻呼机。

于 2015-05-23T08:54:42.377 回答