Re: [PATCHES] Fix for psql pager computations

2008-05-16 Thread Bruce Momjian
Bruce Momjian wrote: > The attached patch causes psql to use the pager if newlines or > 'format=wrapped' has caused a single row to span more than one line and > the output is then too long for the screen. It also uses the pager if > psql thinks the data will wrap off the edge of the screen. >

[PATCHES] Fix for psql pager computations

2008-05-14 Thread Bruce Momjian
The attached patch causes psql to use the pager if newlines or 'format=wrapped' has caused a single row to span more than one line and the output is then too long for the screen. It also uses the pager if psql thinks the data will wrap off the edge of the screen. The display width as defined by