Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 21417B62AC8 for ; Fri, 3 Jun 2011 11:18:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32572-05 for ; Fri, 3 Jun 2011 14:18:12 +0000 (UTC) X-Greylist: delayed 00:46:21.953596 by SQLgrey-1.7.6 Received: from miranda.sommitrealweird.co.uk (miranda.sommitrealweird.co.uk [195.10.223.140]) by mail.postgresql.org (Postfix) with ESMTP id 376DEB6208E for ; Fri, 3 Jun 2011 11:18:12 -0300 (ADT) Received: from brettp by miranda.sommitrealweird.co.uk with local (Exim 4.72) (envelope-from ) id 1QSUTd-00084u-Do for pgsql-admin@postgresql.org; Fri, 03 Jun 2011 14:31:49 +0100 Date: Fri, 3 Jun 2011 14:31:49 +0100 From: Brett Parker To: pgsql-admin@postgresql.org Subject: Re: viewing results in terminal on RedHat 6.1 Message-ID: <20110603133149.GE22717@miranda> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/13 X-Sequence-Number: 37639 On 03 Jun 12:49, Campbell, Lance wrote: > Postgres: 9.x > On RedHat 4.x when I would access Postgres through a terminal for command line queries if the results of a queries exceeded more than 50+ lines I would still see the results after pressing "quit". On RedHat 6.1 Workstation when I see queries that exceed some threshold 50+ when I press "quit" the screen clears away the results so that I can no longer see them. > > I also notice this behavior when I ssh into a server running postgres 8.4.x. So the behavior seems to be isolated to Redhat 6.1 not the version of Postgres. > > Does anyone know how to tell RedHat 6.1 Workstation to not do this? It seems that that's actually a problem with the pager (and it's not really the pagers fault either)... I'd guess you're using less as the pager, if so try (before starting psql) doing: LESS="-X" export LESS If that "fixes" it for you, the issue is that the termcap init/deinit for your terminal clears the output. Cheers, -- Brett Parker