From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | venkateshwaran S <venkateshwaracholan(at)gmail(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Debugging Postgresql 9.3 with Eclipse CDT and GDB |
Date: | 2015-08-19 13:46:47 |
Message-ID: | 30771.1439992007@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
venkateshwaran S <venkateshwaracholan(at)gmail(dot)com> writes:
> 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?
It creates a new child process. Read
http://www.postgresql.org/docs/devel/static/overview.html
particularly section 48.2.
> 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?
It sounds like you're setting breakpoints in the postmaster process,
which will never be hit. Attach to the relevant backend process instead.
(Select pg_backend_pid() in your client if you're not sure which that is,
or you can discover it from "ps auxww" output.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Freeda Suing | 2015-08-23 10:35:41 | Importing dump file from MS SQL to PSQL 9.3 |
Previous Message | Hans Ginzel | 2015-08-19 11:30:58 | postgres_fdw connection string |