You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pulling and running the latest container gives us the following version mismatch error:
The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 9.5.0
There are lengthier guides e.g. on Stackoverflow or the PostgreSQL docs how to fix this. However, the docker image is quite a controlled environment and it would be usually known to you (the image creators) which version was previously used, so all the information to run pg_upgrade automatically when such a situation is detected should be available.
Therefore, wouldn't it be better if this was automatically handled in a wrapper/startup script? This way the image will "just work" for people (unless they skip major versions by not updating it for a long time) even if postgresql is bumped to a newer version.
The text was updated successfully, but these errors were encountered:
As I understand the upgrade process, this is unfortunately not simple to handle. It requires that both versions of the postgres server be installed (and running?) simultaneously which we would then have to either have installed or install it on start up of the container. Both of them need their own directory for their database, which would require extra copying of the database files to get them back into the volume once the upgrade is complete.
Pulling and running the latest container gives us the following version mismatch error:
There are lengthier guides e.g. on Stackoverflow or the PostgreSQL docs how to fix this. However, the docker image is quite a controlled environment and it would be usually known to you (the image creators) which version was previously used, so all the information to run pg_upgrade automatically when such a situation is detected should be available.
Therefore, wouldn't it be better if this was automatically handled in a wrapper/startup script? This way the image will "just work" for people (unless they skip major versions by not updating it for a long time) even if postgresql is bumped to a newer version.
The text was updated successfully, but these errors were encountered: