> > >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. > > You can get that today. In ~/.psqlrc: > > SELECT pg_catalog.pg_backend_pid() AS backend_pid \gset > \set PROMPT1 '%m %:backend_pid: %/%R%# ' > > It doesn't update after \connect, but the overlap between my use of \connect > and my use of debuggers is tiny.
Thank you all! My hack is going to be much smoother. Regards, Naoya --- Naoya Anzai Engineering Department NEC Solution Inovetors, Ltd. E-Mail: nao-an...@xc.jp.nec.com --- -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers