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

Re: psql additions

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql additions
Date: 2011-09-12 03:43:47
Message-ID: CA+TgmoYVNog_tGcG0JnVz9d2ZdrwomtNecdcS3ZOBW9DEHT9Xw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On Sun, Sep 11, 2011 at 2:58 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Here's a couple of ideas I had recently about making psql a bit more user
> friendly.
>
> First, it would be useful to be able to set pager options and possibly other
> settings, so my suggestion is for a \setenv command that could be put in a
> .psqlrc file, something like:
>
>   \setenv PAGER='less'
>   \setenv LESS='-imFX4'

Seems useful.

> Second, I'd like to be able to set a minimum number of lines below which the
> pager would not be used, something like:
>
>   \pset pagerminlines 200
>
> Thoughts?

Gee, why do I feel like we have something like this already?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

pgsql-hackers by date

Next:From: David E. WheelerDate: 2011-09-12 04:21:28
Subject: What Would You Like To Do?
Previous:From: Andrew DunstanDate: 2011-09-12 03:29:59
Subject: Re: superusers are members of all roles?

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