You are not logged in.
Hi all!
After upgrading postgresql recently, I decided to start from a clean slate rather than migrating the old, unused databases from the previous version. After uninstalling postgresql, I removed any remaining postgres directories I could find, then reinstalled the package.
I then followed the install instructions to initialize the database. When I attempt to start postgres via systemctl, it fails, with the error:
Mar 23 21:28:44 fuji postgres[2923]: An old version of the database format was found.
Mar 23 21:28:44 fuji postgres[2923]: See https://wiki.archlinux.org/index.php/Po … PostgreSQL
Mar 23 21:28:44 fuji systemd[1]: postgresql.service: Control process exited, code=exited status=1
However, I can start the database without any errors just by running the commands in the postgresql.service file:
export PGROOT=/var/lib/postgres
/usr/bin/postgresql-check-db-dir ${PGROOT}/data
/usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120
Did I miss something?
Last edited by teleopardthy (2016-03-23 08:56:44)
Offline