bcgov / orgbook-configurations

Build and Deployment Configurations for the Indy-Catalyst version of the OrgBook
Apache License 2.0
3 stars 11 forks source link

Upgrade PostgreSQL version #94

Closed esune closed 3 years ago

esune commented 3 years ago

The templates are still using PostgreSQL 10, we should update them to use the newer version of PostgreSQL 12.

Options are:

The work should be PR'd back into the feature/ocp4 branch.

esune commented 3 years ago

@wadeking98 can you please provide a description of the procedure that is required for the upgrade to work, so we have a reference?

wadeking98 commented 3 years ago

@esune @WadeBarnes Sure, I've updated the build image in my fork to pull postgres 12, the only issue is that the existing data isn't compatible with postgres 12 and needs to be updated as well. There are a couple techniques using things like pg_upgrade, however I remember running into a couple issues using this tool. I think pg_upgrade might require root access in the container. The way I did it (by accident) was to recreate the data from backup. This works but it's not very practical since the data has to be re indexed by the search engine which can take several hours for just over a million credentials. I would spend a bit more time experimenting with the recommended tools like pg_upgrade

WadeBarnes commented 3 years ago

@wadeking98, if the supported database upgrade procedure for the container does not work, Upgrading database (by switching to newer PostgreSQL image version), use the backup and restore method using the backup-container.

wadeking98 commented 3 years ago

since the wallet and db have been restored on pg12 can we close this issue?