Re: psql: Count all table footer lines in pager setup - Mailing list pgsql-hackers

From Erik Wienhold
Subject Re: psql: Count all table footer lines in pager setup
Date
Msg-id 0f586213-3cab-4ceb-9cb8-f1a5d4e6a708@ewie.name
Whole thread Raw
In response to Re: psql: Count all table footer lines in pager setup  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Jingtang Zhang
Date:
Subject: Re: Lock tag of relation extend lock
Next
From: "Euler Taveira"
Date:
Subject: Re: oid2name : add objects file path