Re: Building postmaster with Profiling Support WAS "Tweaking a C Function I wrote"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mohan, Ross" <RMohan(at)arbinet(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Building postmaster with Profiling Support WAS "Tweaking a C Function I wrote"
Date: 2005-04-07 15:57:44
Message-ID: 3261.1112889464@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Mohan, Ross" <RMohan(at)arbinet(dot)com> writes:
> Is compiling postmaster with profiling support just a flag
> in the build/make? Or is there something more involved?

cd .../src/backend
make PROFILE="-pg -DLINUX_PROFILE" all
reinstall binary

You don't need -DLINUX_PROFILE if not on Linux, of course.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2005-04-07 16:04:34 Re: Any way to speed this up?
Previous Message Alex Turner 2005-04-07 15:46:31 Re: How to improve db performance with $7K?