Re: Request - repeat value of \pset title during \watch interations

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Request - repeat value of \pset title during \watch interations
Дата
Msg-id CAB7nPqQkRXA5Ahcp1qxqNmkUegrzey5q-KF5FyyawDMSqYm76g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Request - repeat value of \pset title during \watch interations  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Request - repeat value of \pset title during \watch interations  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general


On Fri, Jan 29, 2016 at 1:55 AM, David G. Johnston wrote:
> Could you run the following and post the result, please?  I have yet to
> setup a compiled-from-source installation...
>
> \pset title 'This is a medium length title'
> SELECT repeat('a', 100) \watch 5
>
> It seems fine though I'm curious how it plays with various combinations of
> narrow and wide outputs on narrow and wide terminals - specifically the
> centering
>  
> aspect that occurs when the table is wider than the Watch/Time content.  The
> terminal width should just cause wrapping relative to a wide-enough terminal
> so really it just the centering aspect when the table is wider than the
> header.

No problem. Here you go:

                               Watch every 5s    Fri Jan 29 13:06:31 2016

This is a medium length title
                                                repeat                                              
------------------------------------------------------------------------------------------------------
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
(1 row)
--
Michael

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: pg_dump streaming fails - PostgreSQL 9.2
Следующее
От: Sachin Srivastava
Дата:
Сообщение: Postgres 9.4.5 Installation on Centos 7.3