Re: Debugger - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Debugger
Date
Msg-id 87hcknmehn.fsf@oxford.xeocode.com
Whole thread Raw
In response to Debugger  ("Pedro Belmino" <pedrobelmino@gmail.com>)
Responses Re: Debugger
List pgsql-hackers
"Pedro Belmino" <pedrobelmino@gmail.com> writes:

> Hellow,
> I continue to have problems using the debugger, can not achieve any
> breakpoint that is outside the postmaster.c? Can anyone give me any hint?
> Where do I mark a breakpoint so that I can follow the creation of an index
> to file index.c for example?

You have to start up your psql or other client run "SELECT pg_backend_pid();"
and attach to that process in the debugger. It sounds like you've connected to
the postmaster which doesn't actually do any of the work, it just forks other
backends.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: max_prepared_transactions default ... why 5?
Next
From: Magnus Hagander
Date:
Subject: Re: Strange error dropping foreign key