Re: Request - repeat value of \pset title during \watch interations - Mailing list pgsql-general

From Michael Paquier
Subject Re: Request - repeat value of \pset title during \watch interations
Date
Msg-id CAB7nPqTt+RyOz6KjfyeJb-rZLsTz9sR3c9=jFJVvQ9a8LK8uXw@mail.gmail.com
Whole thread Raw
In response to Re: Request - repeat value of \pset title during \watch interations  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Request - repeat value of \pset title during \watch interations
List pgsql-general
On Thu, Jan 28, 2016 at 9:34 AM, David G. Johnston
<david.g.johnston@gmail.com> wrote:
> So how about:
>
> + snprintf(title, strlen(myopt.title) + 50,
> + _("Watch every %lds\t%s\t%s"),
> +  sleep, head_title, asctime(localtime(&timer)));

I would just keep the timestamp and the title separated so what do you
think about that instead?
Watch every Xs   $timestamp
$head_title
--
Michael


pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: Catalog bloat (again)
Next
From: "David G. Johnston"
Date:
Subject: Re: Request - repeat value of \pset title during \watch interations