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

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Request - repeat value of \pset title during \watch interations
Date: 2016-01-29 15:32:19
Message-ID: CAKFQuwZeEmtCqcueUCF4F4qRXHb+OYT6W2JbM-kzWVXv-NMPcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Thu, Jan 28, 2016 at 9:07 PM, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
wrote:

>
>
> 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
>

​Looks good to me.

Thank You!

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vick Khera 2016-01-29 15:33:40 Re: ERROR: check constraint - PostgreSQL 9.2
Previous Message Adrian Klaver 2016-01-29 15:29:08 Re: apt.postgresql.org ubtuntu trusty missing libpq version

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-01-29 15:36:46 Re: Sequence Access Method WIP
Previous Message Robert Haas 2016-01-29 15:01:33 Re: [PROPOSAL] VACUUM Progress Checker.