Skip site navigation (1) Skip section navigation (2)

Re: Fix for psql pager computations

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Fix for psql pager computations
Date: 2008-05-16 16:59:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
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.  
> The display width as defined by \pset columns, $COLUMNS, or the ioctl
> (as previously discussed) We don't have similar settings for the number
> of display rows.  I assume that is OK. 
> I believe this makes the pager more reliable, and in fact I have removed
> the psql manual mention that pager computations are somewhat imperfect.

Update patch applied.

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

Attachment: /pgpatches/pager
Description: text/x-diff (12.1 KB)

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2008-05-16 17:18:00
Subject: Re: Patch to change psql default banner v6
Previous:From: Andrew DunstanDate: 2008-05-16 15:43:48
Subject: Re: libpq object hooks

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group