Hi, I just worked through getting PostGres working on 7.0pre3. I am sharing the process I went through for people who want to do the same, and also to get some comments in case I did anything incorrectly or unnecessarily.
This is based on the script by cydonia and a few other threads in this forum.
wget
http://mirrors.kernel.org/centos/4.2/os/i386/CentOS/RPMS/postgresql-docs-7.4.8-1.RHEL4.1.i386.rpmwget
http://mirrors.kernel.org/centos/4.2/os/i386/CentOS/RPMS/postgresql-7.4.8-1.RHEL4.1.i386.rpmwget
http://mirrors.kernel.org/centos/4.2/os/i386/CentOS/RPMS/postgresql-server-7.4.8-1.RHEL4.1.i386.rpmwget
ftp://ftp.nluug.nl/pub/os/Linux/distr/CentOS/4.2/updates/i386/RPMS/php-pgsql-4.3.9-3.9.i386.rpmrpm -i postgresql-7.4.8-1.RHEL4.1.i386.rpm
rpm -i postgresql-server-7.4.8-1.RHEL4.1.i386.rpm
rpm -i postgresql-docs-7.4.8-1.RHEL4.1.i386.rpm
rpm -i php-pgsql-4.3.9-3.9.i386.rpm
mkdir -p /etc/e-smith/templates-custom/var/lib/pgsql/data/postgresql.conf
touch /etc/e-smith/templates-custom/var/lib/pgsql/data/postgresql.conf/20Socket
echo 'tcpip_socket='true'' > /etc/e-smith/templates-custom/var/lib/pgsql/data/postgresql.conf/20Socket
mkdir -p /etc/e-smith/templates-custom/var/lib/pgsql/data/pg_hba.conf
touch /etc/e-smith/templates-custom/var/lib/pgsql/data/pg_hba.conf/50AllowHost
echo 'local all all trust' > /etc/e-smith/templates-custom/var/lib/pgsql/data/pg_hba.conf/50AllowHost
echo 'host all all '127.0.0.1' '255.255.255.255' trust' > /etc/e-smith/templates-custom/var/lib/pgsql/data/pg_hba.conf/50AllowHost
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
touch /etc/e-smith/templates-custom/etc/php.ini/70DynamicExtension90pgsql
echo 'extensions=pgsql.so' > /etc/e-smith/templates-custom/etc/php.ini/70DynamicExtension90pgsql
/etc/init.d/postgresql start
/etc/init.d/postgresql stop
/sbin/e-smith/expand-template /etc/php.ini
/sbin/e-smith/expand-template /var/lib/pgsql/data/postgresql.conf
/sbin/e-smith/expand-template /var/lib/pgsql/data/pg_hba.conf
/etc/init.d/postgresql start
/etc/rc7.d/S86httpd-e-smith sigusr1
/etc/rc7.d/S86httpd-admin sigusr1
/sbin/e-smith/config set postgresql service status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S64postgresql
signal-event post-upgrade
signal-event reboot