Uh oh!
There was an error while loading. Please reload this page.
Pg 13 - #201
Conversation
sbesson
left a comment
There was a problem hiding this comment.
Conceptually, the proposed PostgreSQL upgrade makes complete sense and is inline with the support levels published as per ome/omero-documentation#2262.
As noted in the description, probably the biggest challenge is to test the actual upgrade of the DB used for testing. On this front, I'll note there is some internal location where we store a reference snapshot of the training database and binary repository (/uod/idr/repos/outreach). Rather than using a temporary location with all the associated issues, an option might be to start taking and managing snapshots of the testing database/binary repository in a similar fashion. /cc @pwalczysko
pwalczysko
commented
Jan 18, 2023
This makes perfect sense to me. |
This PR upgrade postgres to version 13. A change in docker-compose is required to start the pg container since password needs to be provided.
The following migration workflow has been tested on new ci:
sudo docker exec -t PG_CONTAINER_ID pg_dumpall -c -U postgres > /tmp/dump_`date +%d-%m-%Y"_"%H_%M_%S`.sqlpgdatadirectorydocker-compose -f docker-compose upPostgres:13container is up by runningdocker psPostgres:13container i.e.docker cp dump_12-01-2023_11_47_22.sql PG_13_CONTAINER_ID:/tmpdocker exec -it PG_13_CONTAINER_ID bashpsql -U postgres -d postgres < /tmp/dump_xxx.sqlOMERO-serverandOMERO-test-integrationhave been createdpsql -U postgres -l