If you remove the package, the existing databases (and thus /etc/postgresql/<version>/<cluster> are kept, and reinstalling it will work.
If you purge, /etc/postgresql will go away, but then that's what you asked for. The directory is called by pg_createcluster, which is used in the postinst script to create a default 'main' cluster, unless another one exists already or the package is upgraded (not installed freshly). ** Changed in: postgresql-common (Ubuntu) Sourcepackagename: postgresql => postgresql-common Status: New => Invalid -- missing /etc/postgresql/ after uninstall/reinstall https://bugs.launchpad.net/bugs/108296 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs