Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-13361 (mirror): Upgrade to PostgreSQL 16 #277

Merged
merged 8 commits into from May 14, 2024

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented May 8, 2024

As final part of MBS-13361, this patch upgrades the version of PostgreSQL to 16.

It also updates the one-off script for upgrading the PostgreSQL database.

Similarly as for Postgres 12 upgrade four years ago, this script admin/upgrade-to-postgres16 has to be run.

This pull request is targeting the branch schema-change-2024-q2 in order to avoid messing up new installations until the schema change is released.

It replaces and simplifies previous Postgres version upgrade scripts.
The simplifications are due to not having additional scripts this time.
@yvanzo yvanzo requested a review from mwiencek May 8, 2024 14:32
Since the container is specifically started with the command sleep
instead, the following error message is expected and harmless:

    pg_ctl: could not send stop signal (PID: 1648): No such process
* Replace the pause of 5 seconds with a more robust check
* Disable pager that caused the command to hang indefinitely
The container name assumed 4 years ago is no longer current,
as `-` dash is now used by default instead of `_` underscore.

Moreover, the project name can be customized in deployment,
and thus it doesn’t necessarily match `musicbrainz-docker`.

Using container ID instead is more robust,
and still supported by Docker Compose v1.
Use the file `update_extensions.sql` provided by `pg_upgrade`.
@yvanzo yvanzo merged commit c253d55 into metabrainz:schema-change-2024-q2 May 14, 2024
@yvanzo yvanzo deleted the pg16 branch May 14, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants