How to exit the query result viewer in psql?

First request:

database=# select * from table limit 1;
...
 |
(1 row)

(END)

I want to make a second request, but I can’t. ctrl + Z exits psql. What can I click to exit only from viewing the results?

+4
source share
1 answer

Click q. This closes many vim-like views, not only in psql, but also, for example, in 'less', 'git log', 'mutt' and many others.

FYI: Ctrl + Z psql, . , , "fg". Unix Ctrl + C .

+9

Source: https://habr.com/ru/post/1621814/


All Articles