Debugging Postgresql 9.3 with Eclipse CDT and GDB - Mailing list pgsql-novice

From venkateshwaran S
Subject Debugging Postgresql 9.3 with Eclipse CDT and GDB
Date
Msg-id CAK-3PothiHs+pUvaxiPgURhGm+o_7vpH271G87zJKKNky1Rd=g@mail.gmail.com
Whole thread Raw
Responses Re: Debugging Postgresql 9.3 with Eclipse CDT and GDB  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice

Hi,
I need some help with attaching debugger to postgresql .

i am from java background and have used debugger in eclipse(java).

i have installed postgresql 9.3 as stated in this link: https://wiki.postgresql.org/wiki/Working_with_Eclipse

The debugger works fine for the server(which waits and accepts incoming client connections).

1. When i connect a client with: **$ psql test** .Does the server create a new thread for the client?

2. Is it possible to attach debugger and set breakpoints in parser.c or executor.c in postgresql source files so that i can analyse how postgresql queries are executed?

I have tried attaching debugger and set breakpoints in parser.c and executed some queries in the client.But it doesnt stop at the breakpoint.

Thanks in Advance

with regards,
Venkateshwaran S

pgsql-novice by date:

Previous
From: Eric Raskin
Date:
Subject: Re: Help with search_path setting - can't create objects
Next
From: Hans Ginzel
Date:
Subject: postgres_fdw connection string