Sounds to me you have a failed dependencies problem. You could try removing all postgresql rpm's at once:
%rpm -e postgresql-server postgresql-devel ....... blah
you can find out all the installed postgresql rpms by:
%rpm -qa |grep postgresql
Good luck