Re: Question about debugging bootstrapping and catalog entries

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Zeugswetter Andreas ADI SD <ZeugswetterA(at)spardat(dot)at>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Question about debugging bootstrapping and catalog entries
Date: 2006-12-18 12:28:25
Message-ID: 20061218122825.GC5720@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2006-12-18 12:51:24 Re: Question about debugging bootstrapping and catalog
Previous Message Gurjeet Singh 2006-12-18 12:22:40 Re: Question about debugging bootstrapping and catalog entries