Re: Question about debugging bootstrapping and catalog entries - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Question about debugging bootstrapping and catalog entries
Date
Msg-id 20061218122825.GC5720@svana.org
Whole thread Raw
In response to Re: Question about debugging bootstrapping and catalog entries  ("Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
On Mon, Dec 18, 2006 at 12:59:28PM +0100, Zeugswetter Andreas ADI SD wrote:
> How do you attach fast enough, so not all is over before you are able to
> attach ?
> I'd like to debug initdb failure on Windows (postgres executable not
> found) when
> running make check with disabled is_admin check and --prefix=/postgres
> in msys.

When running initdb under gdb, you step over the PG_CMD_OPEN;. At that
point the backend is started, but hasn't done anything yet, so you can
attach to it. The backend stays until the next PG_CMD_CLOSE;

As someone pointed out, sleep works also.

> The program "postgres" is needed by initdb but was not found in the
> same directory as
> "j:/postgres/src/test/regress/./tmp_check/install/postgres/bin/initdb".

No idea about that, the binary *should* be there...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: "Gurjeet Singh"
Date:
Subject: Re: Question about debugging bootstrapping and catalog entries
Next
From: Gavin Sherry
Date:
Subject: Re: Question about debugging bootstrapping and catalog