Re: Comfortably check BackendPID with psql

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Comfortably check BackendPID with psql
Дата
Msg-id 20150707114100.GK30359@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Comfortably check BackendPID with psql  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Ответы Re: Comfortably check BackendPID with psql  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Re: Comfortably check BackendPID with psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2015-07-05 14:11:38 +0200, Julien Rouhaud wrote:
> Tiny for me too, but I sometimes had the need.
> 
> I can't really see any good reason not to add a %p escape to psql's
> PROMPT, so I'm attaching a simple patch to implement it. Unless someone
> objects, I'll add it to the next commitfest.

Pushed the patch. I only made a minor belt-and-suspenders type of
change, namely to check whether PQbackendPID() returns 0 and not print
that and replaced PID by pid in the docs and comments.

Thanks for the patch!

Greetings,

Andres Freund



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: 9.6 First Commitfest Begins
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Freeze avoidance of very large table.