Решено было переустановить после очистки пакетов.
sudo apt-get remove --purge postgresql-8.4
then
sudo apt-get install postgresql-8.4