Trying to find a migration route from PostgreSQL 10.6
to postgreSQL 11.1
.
Using pg_upgrade
, from both versions, give me errors. From 11.1
which I thought would be used to bring outdated tables to currency:
$ /usr/local/Cellar/postgresql/11.1/bin/pg_upgrade -v \
> -b /usr/local/Cellar/postgresql@10/10.6/bin \
> -B /usr/local/Cellar/postgresql/11.1/bin \
> -d /usr/local/var/postgres \
> -D /usr/local/var/postgres
Running in verbose mode
Performing Consistency Checks
-----------------------------
Checking cluster versions
This utility can only upgrade to PostgreSQL version 11.
Failure, exiting
From 10.6
, the expected result, as it cannot see a forward structure:
/usr/local/Cellar/postgresql@10/10.6/bin/pg_upgrade -v \
> -b /usr/local/Cellar/postgresql@10/10.6/bin \
> -B /usr/local/Cellar/postgresql/11.1/bin \
> -d /usr/local/var/postgres \
> -D /usr/local/var/postgres
Running in verbose mode
Performing Consistency Checks
-----------------------------
Checking cluster versions
New cluster data and binary directories are from different major versions.
Failure, exiting
How can I migrate the tables to work with version 11.1
properly? I am assuming the latter version is the one to use, and my directories are valid.