Re: gdb with postgres - Mailing list pgsql-hackers

From HuangQi
Subject Re: gdb with postgres
Date
Msg-id BANLkTimXJSUX9sAS=J9app3OcVMaarBmEg@mail.gmail.com
Whole thread Raw
In response to Re: gdb with postgres  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
On 6 June 2011 21:57, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
HuangQi <huangqiyx@gmail.com> wrote:

>>> (gdb) b qp_add_paths_to_joinrel
>>> Breakpoint 1 at 0x1a6744: file joinpath.c, line 67.
>>> (gdb) attach 23903

> If I enter c, gdb will directly finish executing this process and
> current query will finish.

Are you absolutely sure that running your query will result in a
call to this function?

-Kevin


Thanks guys for your idea. I found the solution. Because after made some change in postgres and make them, I didn't stop the server first. Now I stop it and start after reinstall, then using gdb is just fine. Thanks for your ideas.

--
Best Regards
Huang Qi Victor

pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: contrib/citext versus collations
Next
From: Dave Page
Date:
Subject: Re: reducing the overhead of frequent table locks - now, with WIP patch