On 6/11/15 11:41 AM, Naoya Anzai wrote: > 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?
Seems easier to set this in .psqlrc: \set bid 'select pg_backend_pid();' and then: =# :bid pg_backend_pid ---------------- 84430 (1 row) No patches or concerns for psql version necessary. .m -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers