archlinux 将 postgresql 从 11 升级到 13:没有 /opt/pgsql-11/bin/ 文件夹

archlinux upgrading postgresql from 11 to 13: no /opt/pgsql-11/bin/ folder

我正在使用 archlinux 并尝试将 postgresql 从 11 升级到 13。我正在关注 https://wiki.archlinux.org/title/PostgreSQL#Upgrading_PostgreSQL

我困在

[postgres]$ pg_upgrade -b /opt/pgsql-11/bin -B /usr/bin -d /var/lib/postgres/olddata -D /var/lib/postgres/data

它说/opt/pgsql-11/bin不存在

如何解决这个问题

The postgresql-old-upgrade only supports the previous version of PostgreSQL (12 currently). It does not handle jumping multiple versions.

For those wishing to use pg_upgrade, a postgresql-old-upgrade package is available that will always run one major version behind the real PostgreSQL package.

您有多种解决方案:

  • 为 postgresql-12-upgrade 手动安装或制作 AUR 包
  • 使用 archlinux archive.
  • 回滚您的系统(或至少 postgresqlpostgresql-old-upgrade
  • 将旧数据库转储到 SQL 文件并将其导入新数据库。