Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> So you are suggesting invoking the pager if the output goes over the
> display length, no matter how many rows? Do you know how to determine
> the output width before displaying any rows?
The thing must compute the output width in order to align the column
headers, no? It might be that the code is structured in a way that
the info isn't readily available when we'd start the pager, but at
least in principle it's doable ...
regards, tom lane