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: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, "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-11 15:24:10
Message-ID: CAKFQuwZWcBSB56Ub5rtp8R-09gsamNWDHBME29b0fXYy3X8Suw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Mon, Jan 11, 2016 at 8:14 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
> > On Mon, Jan 11, 2016 at 3:36 AM, David G. Johnston
> > <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> >> When executing a query using \watch in psql the first execution of the
> query
> >> includes "Title is [...]" when \pset title is in use. Subsequent
> executions
> >> do not. Once that first display goes off-screen the information in the
> >> title is no longer readily accessible. If using \watch for a
> long-running
> >> monitoring query it can be helpful to incorporate some context
> information
> >> into the title.
>
> > Yeah, this sounds like a good idea to show it at each iteration if the
> > title is set.
>
> Perhaps we should replace the "Watch every Ns" text by the user-given
> title if a title has been set? That would conserve screen space.
>

​The extra line doesn't both me and given the length of the timestamp I
suspect many titles would cause the combined line length to exceed terminal
width and cause wrapping anyway. In my specific case it would though I am
using an abnormally narrow width.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2016-01-11 15:36:58 Re: Request - repeat value of \pset title during \watch interations
Previous Message Tom Lane 2016-01-11 15:14:33 Re: Request - repeat value of \pset title during \watch interations

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2016-01-11 15:36:58 Re: Request - repeat value of \pset title during \watch interations
Previous Message Vladimir Sitnikov 2016-01-11 15:21:27 Re: Re: 9.4-1207 behaves differently with server side prepared statements compared to 9.2-1102