For reasons I can't totally explain, I had both 9.4 and 9.5 installed, which was giving me a headache as I tried to enable PostGIS, which was only installed for 9.5.
I used Synaptic to uninstall postgresql-9.4, and restarted my server with
sudo service postgresql start but now I'm finding that I have a bunch of issues:
PGAdmin can't connect. I'm connecting over localhost on port 5432 — that wouldn't have changed. The connection error says:
Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
psql can't see my old databases, and it doesn't recognize any of the roles that I had set up.
I feel like I'm missing something basic here.