Re: Comfortably check BackendPID with psql

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Comfortably check BackendPID with psql
Дата
Msg-id 20150611095556.GB16018@awork2.anarazel.de
обсуждение исходный текст
Ответ на Comfortably check BackendPID with psql  (Naoya Anzai <nao-anzai@xc.jp.nec.com>)
Ответы Re: Comfortably check BackendPID with psql
Список pgsql-hackers
Hi,

On 2015-06-11 09:41:17 +0000, Naoya Anzai wrote:
> This is a so tiny patch but I think it is very useful for hackers and DBAs.
> When we debug with psql, we frequently use "SELECT pg_backend_pid();".
> This can change the input of the 24 characters to the only 4 characters!

Not a big fan of that abbreviation itself. What I'd wondered about
instead - and actually had patched into my psql at some point - is
adding an appropriate escape to psql's PROMPT. I think that'd serve your
purpose as well?

Regards,

Andres



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: skipping pg_log in basebackup (was Re: pg_basebackup and pg_stat_tmp directory)
Следующее
От: Naoya Anzai
Дата:
Сообщение: Re: Comfortably check BackendPID with psql