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

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Request - repeat value of \pset title during \watch interations
Дата
Msg-id CAKFQuwZqjz-je3Z=8JDOdYm3JM-N2UL4cuqy5VH8N75E5v1VVQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Request - repeat value of \pset title during \watch interations  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-general
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.

Does anyone capable agree enough to implement this?

Any suggestions for a better way to accomplish the goal?

I have a watch query whose title incorporates the name of the libpq service name (via bash variables on Linux) so that I can verify which database it is monitoring without having to kill the watched command and inspect the prompt, command line, or process.

Working with 9.3 presently.

Thanks!

David J.

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Code of Conduct: Is it time?
Следующее
От: "Regina Obe"
Дата:
Сообщение: Re: Code of Conduct: Is it time?