1.卸载当前所有Postgresql 相关的Package:
apt-get remove postgresql*
The following packages will be REMOVED:
postgresql* postgresql-9.1* postgresql-client-9.1* postgresql-client-common* postgresql-common*
2.下面删除配置文件和User 是关键:
rm -r /etc/postgresql/
rm -r /var/lib/postgresql/
userdel -r postgres
卸载干净