postgresql UUID extension installation

1. Check the extension


Execute ./configure --prefix=/opt/postgresql/pginstalldir/ --with-uuid=e2fs in the source directory of postgresql,
insert image description here
and the result will be the following error
insert image description here
handling method:
Install under usr/local/src: e2fsprogs-devel, libuuid- devel, uuid-devel
rpm -ivh e2fsprogs-devel-1.42.9-19.el7.x86_64.rpm
rpm -ivh libuuid-devel-2.23.2-65.el7.x86_64.rpm
rpm -ivh uuid-devel-1.6. 2-26.el7.x86_64.rpm

If you are connected to the Internet, you can directly use yum to install
yum -y install e2fsprogs-devel
insert image description here

yum -y install libuuid-develinsert image description here
yum -y install uuid-devel
insert image description here

2. Install the extension

After the extension is installed, it is still executed in the source code folder of postgresql./configure
--prefix=/opt/postgresql/pginstalldir/ --with-uuid=e2fs compile
without error (don't forget)
insert image description here

make
make install

Switch to postgres, log in to the database, view the extension
select * from pg_extension;
view the available extension
select * from pg_available_extensions;
create an extension uuid_ossp
create extension “uuid-ossp”;
insert image description here

Guess you like

Origin blog.csdn.net/TS_forever007/article/details/128971094