首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Postgres从10升级到12: pg_upgrade由于存在所需的库而失败

Postgres从10升级到12: pg_upgrade由于存在所需的库而失败
EN

Stack Overflow用户
提问于 2021-12-06 05:43:02
回答 1查看 1.6K关注 0票数 1
代码语言:javascript
复制
$ /usr/pgsql-12/bin/pg_upgrade \
> -b /usr/pgsql-1
pgsql-10/ pgsql-12/
> -b /usr/pgsql-10/bin/ \
> -B /usr/pgsql-12/bin/ \
> -d /var/lib/pgsql/1
10/ 12/
> -d /var/lib/pgsql/10/data/ \
> -D /var/lib/pgsql/12/data/ \
> --check

Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is the install user ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for system-defined composite types in user tables ok
Checking for reg* data types in user tables ok
Checking for contrib/isn with bigint-passing mismatch ok
Checking for tables WITH OIDS ok
Checking for invalid "sql_identifier" user columns ok
Checking for presence of required libraries fatal



Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt



Failure, exiting


[postgres@localhost ~]$ cat loadable_libraries.txt
could not load library "$libdir/ltree": ERROR: could not access file "$libdir/ltree": No such file or directory
Database: ___
Database: ___
could not load library "$libdir/pg_trgm": ERROR: could not access file "$libdir/pg_trgm": No such file or directory
Database: ___
Database: ___
could not load library "$libdir/uuid-ossp": ERROR: could not access file "$libdir/uuid-ossp": No such file or directory
Database: ___
Database: ___

非常感谢从postgres 10升级到12的有效步骤。因为我没有找到任何经过高度审查的链接是完整的。我目前正在跟踪这个链接:https://www.postgresql.r2schools.com/how-to-upgrade-from-postgresql-11-to-12/。在每个命令中将10替换为11

提前谢谢。

EN

回答 1

Stack Overflow用户

发布于 2021-12-06 05:52:09

您可以运行以下命令:

代码语言:javascript
复制
sudo dnf install postgresql12-contrib
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70241319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档