问题
I am using cartoDB and Postgres 9.3 including PostGIS. When I try to create development user in cartoDB I get this error:
'CREATE EXTENSION IF NOT EXISTS odbc_fdw SCHEMA public;'
ERROR: could not open extension control file "/usr/share/postgresql/9.3/extension/odbc_fdw.control": No such file or directory
Also, when I try to run odbc_fdw extension inside Postgres I get the same error.
Any idea how to fix it?
回答1:
You have to install the files odbc_fdw--0.0.1.sql
and odbc_fdw.control
in the extension
subdirectory of the PostgreSQL share directory.
You can find the PostgreSQL share directory with pg_config --sharedir
.
In your case the files have to be installed in /usr/share/postgresql/9.3/extension
.
来源:https://stackoverflow.com/questions/38584347/odbc-fdw-control-is-missing