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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
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 16:03:51
Message-ID: 14985.1452528231@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Mon, Jan 11, 2016 at 8:14 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> 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.

You speak as though the title will be chosen without any regard for the
context it's used in, which I rather doubt. Wouldn't people pick the
title for a \watch query so that it fits? (In any case they could
force the issue by including a \n in their title...)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Catalin Iacob 2016-01-11 16:05:28 Re: proposal: PL/Pythonu - function ereport
Previous Message Joshua D. Drake 2016-01-11 15:47:22 Re: No Issue Tracker - Say it Ain't So!