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

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Request - repeat value of \pset title during \watch interations
Дата
Msg-id CAKFQuwbn7Jd6BxCOW11-_u=EMjMr7ohfk+gah=iUiqr0Gpndig@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Request - repeat value of \pset title during \watch interations  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [GENERAL] Request - repeat value of \pset title during \watch interations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Monday, March 21, 2016, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"David G. Johnston" <david.g.johnston@gmail.com> 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.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: snapshot too old, configured by time
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgbench - allow backslash-continuations in custom scripts