Reputation: 11
When i try to Upgrade 9.4 to 13 using pg_upgrade , the Upgrade stops in between with authentication failure using the password from pgpass.conf file .
The same approach works from 9.4 to 9.6
Here is the pg_upgrade command that i used
C:\postgresql\13\bin\pg_upgrade --old-datadir C:/PostgreSQL/9.4/data --new-datadir C:/PostgreSQL/13/data --old-bindir C:/PostgreSQL/9.4/bin --new-bindir C:/PostgreSQL/13/bin --old-port=5433 --new-port=5435 --username <superusername> --verbose
I am running this command from %temp%
Upvotes: 0
Views: 1337
Reputation: 69
To do the migration, I used logical replication using the server with version 9.4 to replicate to a server with version 13. Another option would be to migrate using pg_dumpall and pg_restore.
Upvotes: 0