Debugging Postgresql 9.3 with Eclipse CDT and GDB

From: venkateshwaran S <venkateshwaracholan(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Debugging Postgresql 9.3 with Eclipse CDT and GDB
Date: 2015-08-19 09:15:23
Message-ID: CAK-3PothiHs+pUvaxiPgURhGm+o_7vpH271G87zJKKNky1Rd=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Hans Ginzel 2015-08-19 11:30:58 postgres_fdw connection string
Previous Message Eric Raskin 2015-08-18 21:02:01 Re: Help with search_path setting - can't create objects