No title

Started by Rajashree Mandaoganeabout 12 years ago3 messageshackers
Jump to latest
#1Rajashree Mandaogane
rajashree.28m@gmail.com

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?

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Rajashree Mandaogane (#1)
Re:

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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Craig Ringer
craig@2ndquadrant.com
In reply to: Tom Lane (#2)
Re:

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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers