Re: psql: Count all table footer lines in pager setup

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: psql: Count all table footer lines in pager setup
Дата
Msg-id 0f586213-3cab-4ceb-9cb8-f1a5d4e6a708@ewie.name
обсуждение исходный текст
Ответ на Re: psql: Count all table footer lines in pager setup  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql: Count all table footer lines in pager setup
Список pgsql-hackers
On 2025-10-07 00:45 +0200, Tom Lane wrote:
> I wrote:
> > Another inaccuracy that I find mildly annoying now that we've got it
> > mostly right is that we are not accounting for the blank line that
> > psql likes to print after the query result, so that you can still
> > end with the first output line scrolled off your screen despite
> > non-use of the pager.  Not sure about a non-kluge way to count that,
> > though: it's outside the domain of print.c, and other callers might
> > not have a similar behavior.
> 
> Oh wait!  That line *is* produced within print.c, so there is no
> reason we shouldn't account for it.  I spent a little extra effort
> on unaligned mode too, since the TAP test is checking that case.

LGTM.

> I still doubt that anyone's going to care a lot about the other
> formats.

Yup, I think so too.

-- 
Erik Wienhold



В списке pgsql-hackers по дате отправления: