Re: [HACKERS] Make pg_regress print a connstring with sockdir - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] Make pg_regress print a connstring with sockdir
Date
Msg-id CA+TgmobJWaLad_TvyZQpJt3GGr4eMFg-_4yPAEMLPXv-WEHicw@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Make pg_regress print a connstring with sockdir  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On Mon, Aug 28, 2017 at 7:57 AM, Craig Ringer <craig@2ndquadrant.com> wrote:
> I'm frequently debugging postmasters that are around long enough. Deadlocks,
> etc.
>
> It's also way easier to debug shmem related issues with a live postmaster vs
> a core.

Yeah.  I don't *frequently* debug postmasters that hang during the
regression tests, but I definitely have done it, and I think something
like this would make it easier.  Right now if something wedges and you
need to connect to the postmaster to see what's going on, you have to
grep for the pid, then lsof to get the socket directory.  This would
simplify things.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] postgres_fdw bug in 9.6
Next
From: Michael Paquier
Date:
Subject: [HACKERS] Improve history file reasons when doing promotion