卸载当前所有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*
下面删除配置文件和User 是关键:
rm -r /etc/postgresql/
rm -r /var/lib/postgresql/
userdel -r postgres
BTW:
安装可以参照这个:
本文提供了在Ubuntu系统上彻底卸载PostgreSQL的方法,包括移除所有相关软件包、删除配置文件及用户账户等步骤。
1971

被折叠的 条评论
为什么被折叠?



