From: | Naoya Anzai <nao-anzai(at)xc(dot)jp(dot)nec(dot)com> |
---|---|
To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Akio Iwaasa <aki-iwaasa(at)vt(dot)jp(dot)nec(dot)com> |
Subject: | Comfortably check BackendPID with psql |
Date: | 2015-06-11 09:41:17 |
Message-ID: | 116262CF971C844FB6E793F8809B51C6E99D48@BPXM02GP.gisp.nec.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi, hackers!
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!
Image.
----------------------
naoya=# \bid
Backend Process ID
pid
------
1716
(1 row)
-----------------------
How do you like it?
Regards,
Naoya
---
Naoya Anzai
Engineering Department
NEC Solution Inovetors, Ltd.
E-Mail: nao-anzai(at)xc(dot)jp(dot)nec(dot)com
---
Attachment | Content-Type | Size |
---|---|---|
psql_show_backend_pid.patch | application/octet-stream | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Tiikkaja | 2015-06-11 09:48:15 | Re: Comfortably check BackendPID with psql |
Previous Message | Simon Riggs | 2015-06-11 09:38:45 | Re: Entities created in one query not available in another in extended protocol |