I've experimented with PostgreSQL config files on my workstation and then decided to revert them to the initial state by reinstalling the package. I've deleted the entire config directory for PostgreSQL (
rm -Rf /etc/postgresql), then uninstalled all the PostgreSQL packages.
Now, when I do
sudo apt-get install postgresql, it gets installed, but
/etc/postgresql directory is not re-created and I can't start the server.
What's gone wrong and how do I re-install PostgreSQL completely from scratch?