Problem upgrading Postgres to V13 on Big Sur #410
-
I'm trying to upgrade Postgres to V13 and am getting the following error: `stevehawes@Steves-MBP postgres % brew postgresql-upgrade-database The database cluster will be initialized with locale "C". Data page checksums are disabled. fixing permissions on existing directory /usr/local/var/postgres ... ok initdb: warning: enabling "trust" authentication for local connections Success. You can now start the database server using:
==> Migrating and upgrading data...
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Did you try the suggestion?
|
Beta Was this translation helpful? Give feedback.
-
OK - after A LOT of trial and error I have found the problem. The Running the upgrade process manually without this parameter allowed the upgrade to proceed smoothly without error. No idea why this would be the case but hopefully this post will help someone else in this situation. Thanks |
Beta Was this translation helpful? Give feedback.
-
I had the same issue; I was not able to manually run the upgrade process without the -j parameter (as @SteveHawes suggested), because it seemed to depend on some series of commands. But I was able to resolve the error by stopping the postgres service (grrrrr), eg |
Beta Was this translation helpful? Give feedback.
OK - after A LOT of trial and error I have found the problem. The
brew postgresql-upgrade-database
script calls thepg_upgrade
command and one of the parameters it passes is related to the number of simultaneous processes or threads to use (-j or --jobs). In my particular case it was using -j 12.Running the upgrade process manually without this parameter allowed the upgrade to proceed smoothly without error. No idea why this would be the case but hopefully this post will help someone else in this situation.
Thanks
Steve