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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Wienhold <ewie@ewie.name>
Cc: Greg Sabino Mullane <htamfids@gmail.com>, pgsql-hackers@postgresql.org
Date: 2025-10-07T15:01:34Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Improve psql's ability to select pager mode accurately.

Erik Wienhold <ewie@ewie.name> writes:
> On 2025-10-07 00:45 +0200, Tom Lane wrote:
>> 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.

Pushed, after a tiny bit more comment-burnishing.

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

> Yup, I think so too.

There's always room for a follow-on patch from someone who does
care.

			regards, tom lane