Here's a rebase, due to a conflict with 3a513067 "psql: Show all query results by default" which moved a few things around making it harder to use the pager for the right scope. Lacking time, I came up with this change to PSQLexecWatch():
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.