关于 PostgreSQL 中的 uuid-ossp 扩展支持安装问题

# 关于 Postgresql 中的 uuid-ossp 扩展支持安装问题
#作者:老农民
#QQ: 46715422
#Email: flyingercn@wo.cn
#微信: ericliu_77

# 最近很多兄弟都遇到了uuid-ossp 扩展安装的问题,本人在这方面基本上各种问题都遇到了,这里总结了Linux和BSD下的安装方法如下:

# CentOS 下
yum -y install uuid uuid-devel
./configure --prefix=/usr/local/pgsql --with-uuid=ossp
make world -j`grep processor /proc/cpuinfo | wc -l`
make install-world -j `grep processor /proc/cpuinfo | wc -l`
cd contrib/
make install clean
cd ../
# Debian 下
apt-get -y install uuid uuid-dev
./configure --prefix=/usr/local/pgsql --with-uuid=e2fs
make world -j `grep processor /proc/cpuinfo | wc -l`
make install-world -j `grep processor /proc/cpuinfo | wc -l`
cd contrib/
make install clean
cd ../
# FreeBSD/OpenBSD/NetBSD 下
./configure --prefix=/usr/local/pgsql --with-uuid=bsd
gmake world -j `sysctl hw.ncpu | wc -w`
gmake install-world -j `sysctl hw.ncpu | wc -w`
# 进数据库,创建扩展
su - postgres  -c "/usr/local/pgsql/bin/psql"
postgres=# CREATE EXTENSION "uuid-ossp";

要买正宗新疆特产,微信扫下面二维码,加老农民咨询购买:

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...