mirror of
https://github.com/zulip/zulip.git
synced 2026-06-12 21:00:58 +08:00
The `pg_upgrade` tool uses `pg_dump` as an internal step, and verifies that the version of `pg_upgrade` is the same exactly the same as the version of the PostgreSQL server it is upgrading to. A mismatch (even in packaging versions) leads to it aborting: ``` /usr/lib/postgresql/14/bin/pg_upgrade -b /usr/lib/postgresql/13/bin -B /usr/lib/postgresql/14/bin -p 5432 -P 5435 -d /etc/postgresql/13/main -D /etc/postgresql/14/main --link Finding the real data directory for the source cluster ok Finding the real data directory for the target cluster ok check for "/usr/lib/postgresql/14/bin/pg_dump" failed: incorrect version: found "pg_dump (PostgreSQL) 14.6 (Ubuntu 14.6-0ubuntu0.22.04.1)", expected "pg_dump (PostgreSQL) 14.6 (Ubuntu 14.6-1.pgdg22.04+1)" Failure, exiting ``` Explicitly upgrade `postgresql-client` at the same time we upgrade `postgresql` itself, so their versions match. Fixes: #24192 |
||
|---|---|---|
| .. | ||
| apt-repos | ||
| __init__.py | ||
| compare-settings-to-template | ||
| configure-rabbitmq | ||
| create-database | ||
| create-db.sql | ||
| create-pgroonga.sql | ||
| flush-memcached | ||
| generate_secrets.py | ||
| generate-rabbitmq-cookie | ||
| generate-self-signed-cert | ||
| initialize-database | ||
| inline_email_css.py | ||
| install | ||
| reindex-textual-data | ||
| restore-backup | ||
| setup-certbot | ||
| sha256-tarball-to | ||
| terminate-psql-sessions | ||
| upgrade-postgresql | ||