Don't. Really, don't.
Fedora 8 went end-of-life on Jan 7, 2009. This means that you're over four years past the end-of-life of that OS. You're vulnerable to any number of exploits and bugs, none of which will ever be fixed. You'll be using versions of tools that are way out of date; postgresql is one of them, but there will be many others.
You can probably get away with it this time, and compile postgresql from source. Next time, you may find that a newer C compiler is needed, so you'll have to recompile gcc
before you can recompile the postgresql-after-9.2. That will turn out to need a newer libc, so you'll have to build and maintain that alongside the pre-existing one. Eventually, you'll be hand-maintaining every component part of your platform, and you'll still be insanely insecure and unsupportable.
The fact that you're noticing the age of the OS toolchain is the writing on the wall. It's trying very hard to tell you that your platform OS is crazily outdated, and you need to upgrade. Pay attention to what it says.
If you're in the mood to take further advice, then while you're doing your big migration, change OS. I love Fedora, and I use it on all my desktops, but it makes a lousy server OS because it only has an 18-month lifespan. Also, it only support upgrades of two version numbers, so to get current you'll have to go 8-10-12-14-16-18-19, and even if that doesn't break along the way, you'll find things have changed out of all recognition when you get to the end of the path. Most who use Fedora on desktops, are conversant with yum
and happy with the RedHat way, and are cheapskates - I tick all those boxes - use CentOS on servers, and it does a very good job, too; but there are other server-class Linux distros you can use if you don't like that logic.