Linux 下面 PG 的 uuid-ossp 包安装办法

时间:2023-03-09 07:51:08
Linux 下面 PG 的 uuid-ossp 包安装办法

1. pgsql 安装 时报错, 如图示:

Linux 下面 PG 的 uuid-ossp 包安装办法

详细信息为:

执行SQL为:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" 错误纤细信息为:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
> ERROR: could not open extension control file "/usr/pgsql-10/share/extension/uuid-ossp.control": No such file or directory > 时间: .137s

2.google了下 最简单的解决办法是安装一个 contrib 的包即可

yum install  postgresql10-contrib.x86_64