Skip to content

service: upgrade postgresql-client version - #2317

Merged
alxndrsn merged 3 commits into
getodk:nextfrom
alxndrsn:upgrade-postgres-client-version
Nov 16, 2026
Merged

alxndrsn merged 3 commits into
getodk:nextfrom
alxndrsn:upgrade-postgres-client-version

Conversation

@alxndrsn

@alxndrsn alxndrsn commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Upgrades postgresql-client dependency version from 14 to 18. This version number dictates the version of pg_dump and pg_restore which central-backend will use when backing up and restoring database contents. The version of pg_dump must be less than or equal to the version of PostgreSQL where the backup will be restored to.

Related:

What has been done to verify that this works as intended?

  • ci, but that doesn't really test anything? specific tests could be added if deemed useful

Why is this the best possible solution? Were any other approaches considered?

Could stick on v14, or something else between there and 18. See #2315 for more info.

Ideally there would be a test in this repo that uses the recommended commands at central-backup to:

  1. backup a db
  2. verify the backup
  3. restore the backup

A ticket has been created for this at #2318

How does this change impact users? Describe intentional behavior changes from code updates. What are the regression risks?

A risk for deployers who upgrade central without upgrading to postgres v18.

Is this change user-facing or otherwise noteworthy to users? If so, please add an entry for it in CHANGELOG.md.

  • CHANGELOG updated

Does this change require updates to documentation? If so, please file an issue here and include the link below.

I don't think so.

alxndrsn added 2 commits November 9, 2026 11:56
Upgrades `postgresql-client` dependency version from 14 to 18.  This version number dictates the version of `pg_dump` and `pg_restore` which `central-backend` will use when backing up and restoring database contents.  The version of `pg_dump` must be less than or equal to the version of PostgreSQL where the backup will be restored to.

Related:

* getodk#2285
* getodk#2315
@alxndrsn
alxndrsn marked this pull request as ready for review November 9, 2026 12:02
@alxndrsn
alxndrsn force-pushed the upgrade-postgres-client-version branch from 6a933f0 to f17266a Compare November 9, 2026 12:44

@lognaturel lognaturel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2318 would be nice to get into the release if possible.

@alxndrsn
alxndrsn merged commit 031aea4 into getodk:next Nov 16, 2026
7 checks passed
@alxndrsn
alxndrsn deleted the upgrade-postgres-client-version branch November 16, 2026 07:37
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.

2 participants