Skip to content

Instantly share code, notes, and snippets.

@oussemos
Created January 2, 2014 16:14
Show Gist options
  • Save oussemos/8221612 to your computer and use it in GitHub Desktop.
Save oussemos/8221612 to your computer and use it in GitHub Desktop.
/usr/lib/postgresql/9.1/bin/pg_upgrade -d /var/lib/postgresql/8.3/main -D /var/lib/postgresql/9.1/main -b /usr/lib/postgresql/8.3/bin -B /usr/lib/postgresql/9.1/bin -k -v
Running in verbose mode
Performing Consistency Checks
-----------------------------
Checking current, bin, and data directories
You must have read and write access in the current directory.
Failure, exiting
postgres@vds2192:/root$ cd /var/lib/postgresql/
postgres@vds2192:~$ /usr/lib/postgresql/9.1/bin/pg_upgrade -d /var/lib/postgresql/8.3/main -D /var/lib/postgresql/9.1/main -b /usr/lib/postgresql/8.3/bin -B /usr/lib/postgresql/9.1/bin -k -v
Running in verbose mode
Performing Consistency Checks
-----------------------------
Checking current, bin, and data directories ok
There seems to be a postmaster servicing the new cluster.
Please shutdown that postmaster and try again.
Failure, exiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment