操作系统:
centos-release-7-5.1804.el7.centos.x86_64
PostgreSQL版本:
postgresql.x86_64 9.2.23-3.el7_4
postgresql-libs.x86_64 9.2.23-3.el7_4
postgresql-server.x86_64 9.2.23-3.el7_4
在Eric Redmond Jim R.Wilson的《七周七数据库》第8页运行命令 $ psql book -c "SELECT '1'::cube;"
出现报错:ERROR:could not open extension control file “/usr/share/pgsql/extension/cube.control”:No such file or directory
解决方法:
[root@localhost ~]# yum install postgresql-contrib
[root@localhost ~]# su - postgres
-bash-4.2$ psql -d book
book=# create extension cube;
CREATE EXTENSION
book=# psql book -c "select '1'::cube;"
book-#
本文地址:http://liyue.name/blog/?p=2915