Re: psql additions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: psql additions
Дата
Msg-id 1315851285.19706.4.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: psql additions  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On mån, 2011-09-12 at 09:01 -0400, Andrew Dunstan wrote:
> 
> On 09/12/2011 08:39 AM, Peter Eisentraut wrote:
> > On mån, 2011-09-12 at 05:26 -0400, Andrew Dunstan wrote:
> >> On 09/11/2011 11:43 PM, Robert Haas wrote:
> >>>
> >>>> 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?
> >> We do? We control columns, but not lines AFAIK.
> > We check the lines and columns in the terminal window.  Oddly enough,
> > that code is in two separate places, so I don't know if they have
> > consistent effects.
> >
> >
> 
> Yes, but what I want is to be able to control it. So even if my terminal 
> is 50 lines long I want to be able to say "Don't use the pager unless 
> there are 200 or more lines."

Right.  Actually, if you implemented the \setenv idea, you could set the
environment variable LINES to get that effect.  Except that you will
then also have to implement the part that looks at the LINES variable,
but we have code elsewhere that looks at COLUMNS, so that would only be
consistent.  Again, see comment above that the lines and columns
checking might be a bit inconsistent at the moment.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Alpha 1 for 9.2
Следующее
От: David Fetter
Дата:
Сообщение: Re: Re: [BUGS] BUG #6189: libpq: sslmode=require verifies server certificate if root.crt is present