I have upgraded my ubuntu development machine from 11.04 to 11.10. In the process my postgres was also upgraded from 8.4 to 9.1.
But I seem to have lost all my data. If I look, I can see that my data for 8.4 is in folder /var/lib/postgres/8.4/main
and my new database is in /var/lib/postgres/9.1/main
.
What is the best way to migrate my data to the new version? Can I just copy the files?
Error: specified cluster is not running
when trying again after having changedmax_connections
, usepg_ctlcluster 8.4 main start
. – Skippy le Grand Gourou Jun 20 '14 at 12:24max_connections
did not work for me. As an alternative solution provided by the error message, I reducedshared_buffers
to 20MB (from 200MB), which worked for me. – Serrano Pereira Oct 05 '14 at 11:56