Re: Comfortably check BackendPID with psql - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Comfortably check BackendPID with psql
Date
Msg-id 5579F809.4000103@BlueTreble.com
Whole thread Raw
In response to Re: Comfortably check BackendPID with psql  (Andres Freund <andres@anarazel.de>)
Responses Re: Comfortably check BackendPID with psql  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
On 6/11/15 4:55 AM, Andres Freund wrote:
> 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?

+3.14159; that would be hugely helpful when using gdb.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: The purpose of the core team
Next
From: Robert Haas
Date:
Subject: Re: 9.5 release notes