我正在尝试在postgresql 9.1(Linux)下创建扩展:
CREATE EXTENSION pg_trgm;
但得到了错误:
ERROR: Could not open extension control file "/usr/share/pgsql/extension/pg_trgm.control": No such file or directory
[root@postgresql extension]# pwd
/usr/share/pgsql/extension
[root@postgresql extension]# ls -l | grep pg_trgm
-rwxrwxrwx 1 root root 4977 Apr 6 2013 pg_trgm--1.0.sql
-rwxrwxrwx 1 root root 4230 Apr 6 2013 pg_trgm--unpackaged--1.0.sql
-rwxrwxrwx 1 root root 177 Apr 6 2013 pg_trgm.control
如何解决这个问题呢?
解决方法:
在这种特殊情况下,有什么帮助我:
只需将扩展目录从/usr/share / pgsql / extension /复制到/ var / lib / pgsql-root /usr/lib / pgsql / extension /即可.
这就是所有人.