1. cd /usr/src/
2. wget http://ftp.postgresql.org/pub/source/v9.1.4/postgresql-9.1.4.tar.gz
3. tar -zxvf postgresql-9.1.4.tar.gz
4. cd postgresql-9.1.4
5. ./configure
6. make
7. make install
8. mkdir /usr/local/pgsql/data
9. chown postgres /usr/local/pgsql/data
10. su – postgres
11. /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data