| От | Tom Lane |
|---|---|
| Тема | Re: Killing output |
| Дата | |
| Msg-id | 6130.977860443@sss.pgh.pa.us обсуждение |
| Ответ на | Killing output (Dave_Pfaltzgraff@patapsco.com) |
| Список | pgsql-novice |
Dave_Pfaltzgraff@patapsco.com writes:
> If I'm in psql and do something stupid like:
> select * from table where date < '12/24/1000';
> where I meant to enter >, is there some way to kill the ouput so I
> don't have to > wait for all the output to complete before I can enter
> the correct command?
Recent versions of psql pipe the output through 'more' (or 'less', or
local equivalent) automatically.
If you are running a not-so-recent version, I believe that's still true,
but it may not be default behavior. See psql docs concerning PAGER
environment variable.
Another possibility is that you have PAGER set to a value that prevents
this from happening (like "cat", say).
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера