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: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "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-03-21 19:25:57
Message-ID: CAKFQuwbn7Jd6BxCOW11-_u=EMjMr7ohfk+gah=iUiqr0Gpndig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Monday, March 21, 2016, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com <javascript:;>> writes:
> > I'll admit it's awkward because it's abbreviated but if someone enters
> > \watch 5 and then sees (5s) in the title I think they can put two and two
> > together.
>
> Where I find this to be awkward is that the format is randomly different
> between the user-title and no-user-title cases.
>
> What about just discarding the old format entirely, and printing one of
> these two things:
>
> Timestamp (every Ns)
>
> User Given Title <tab> Timestamp (every Ns)
>
>
This works for me.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Spencer 2016-03-21 19:28:37 Re: Slow GIN indexes after bulk insert
Previous Message Tom Lane 2016-03-21 19:11:59 Re: Request - repeat value of \pset title during \watch interations

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-03-21 19:33:53 Re: pgbench - allow backslash-continuations in custom scripts
Previous Message Thom Brown 2016-03-21 19:21:56 Re: snapshot too old, configured by time