2 [ `id -u` = 0 ] || SUDO=sudo
3 for v in 7.4 8.0 8.1 8.2 8.3; do
4 i=/etc/init.d/postgresql-$v
5 [ -x $i ] && $SUDO $i stop
7 $SUDO killall pg_autovacuum postmaster postgres
8 $SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/* /tmp/postgresql-testsuite/ /var/run/postgresql/*