Re: debug query execution

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "vadym nikolaiev" <vadym(dot)nikolaiev(at)gmail(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: debug query execution
Date: 2011-10-28 15:59:06
Message-ID: 4EAA8AFA020000250004281D@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

vadym nikolaiev <vadym(dot)nikolaiev(at)gmail(dot)com> wrote:

> I would like to ask you which sources are responsible for execute
> queries in PostgreSQL?

http://wiki.postgresql.org/wiki/Developer_FAQ#How_is_the_source_code_organized.3F

> ( i would like to run a simple query and debug it execution on
> PostgreSql server for understanding how PostgeSql does query
> processing internally)

Pick any function you know will be executed, set a breakpoint, get a
stacktrace from there, and pick where you want to get in next time
you run the query.

-Kevin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-10-28 16:01:25 Re: Documentation mistake
Previous Message Tristan Wright 2011-10-28 15:46:07 Clarification on item on Todo List