The PostgreSQL Development Group has packages for Pg 9.3 on CentOS 5.
See yum.postgresql.org.
However, installing Pg 9.3 won't remove 8.1. It'll still be on your PATH
. It'll still be running, too.
If you want to use the 9.3 psql
and libpq
, you need to alter your PATH
and LD_LIBRARY_PATH
to prefer the PostgreSQL 9.3 install. Then rebuild the Pg
gem against the new libpq
.
Something like:
export PATH="/usr/pgsql-9.3/bin:$PATH"
export LD_LIBRARY_PATH="/usr/pgsql-9.3/lib/:$LD_LIBRARY_PATH"
gem uninstall pg
gem install pg
If you want this to take effect globally you can modify /etc/ld.so.conf
to put the new path in place by default, and /etc/environment
to set the PATH
appropriately.
Otherwise, add the first two lines to your ~/.bash_profile
.
Separately, these are rather worrying:
/etc/rc.d/init.d/functions: fork: Cannot allocate memory
/etc/profile.d/lang.sh: line 53: /sbin/consoletype: Argument list too long
as they suggest something is mismatched/broken on the system. Not necessarily PostgreSQL related. Have you force-installed any RPMs or used any 3rd party repos?