Thread:

From
Rajashree Mandaogane
Date:
<div dir="ltr">While debugging any function in PostgreSQL, whenever I use the command 'bt', it doesn't give the entire
listof functions used. Which command should be used instead?<br /></div> 

Re:

From
Tom Lane
Date:
Rajashree Mandaogane <rajashree.28m@gmail.com> writes:
> While debugging any function in PostgreSQL, whenever I use the command
> 'bt', it doesn't give the entire list of functions used. Which command
> should be used instead?

It's probably omitting functions that have been inlined; if so, the "fix"
is to recompile with a lower -O level to prevent inlining.
        regards, tom lane



Re:

From
Craig Ringer
Date:
On 03/21/2014 01:12 AM, Tom Lane wrote:
> Rajashree Mandaogane <rajashree.28m@gmail.com> writes:
>> While debugging any function in PostgreSQL, whenever I use the command
>> 'bt', it doesn't give the entire list of functions used. Which command
>> should be used instead?
> 
> It's probably omitting functions that have been inlined; if so, the "fix"
> is to recompile with a lower -O level to prevent inlining.

For more details, see
https://wiki.postgresql.org/wiki/Developer_FAQ#What_debugging_features_are_available.3F
.

If you want to completely prevent inlining you can use -O0 instead of -Og .


-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services