PostgreSQL创建扩展出错

问题:

loraserver_as=# create extension pg_trgm;
ERROR:  could not open extension control file "/usr/pgsql-10/share/extension/pg_trgm.control": No such file or directory

未解决:

yum install postgresql-contrib

systemctl restart postgresql-10

Because postgis.contol is located in another place,

find /usr -name postgis.control

/usr/share/pgsql/extension/postgis.control

But postgres trying to create it from /usr/pgsql-9.6/share/extension/postgis.control

This question already was asked before, but my problem is other.

原文地址:https://www.cnblogs.com/Paul-watermelon/p/10401550.html