Re: Comfortably check BackendPID with psql

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема Re: Comfortably check BackendPID with psql
Дата
Msg-id 559BCAB4.7050405@dalibo.com
обсуждение исходный текст
Ответ на Re: Comfortably check BackendPID with psql  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Le 07/07/2015 13:41, Andres Freund a écrit :
> 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!
> 

Thanks!

> Greetings,
> 
> Andres Freund
> 


-- 
Julien Rouhaud
http://dalibo.com - http://dalibo.org



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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: FPW compression leaks information
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pg_receivexlog --create-slot-if-not-exists