情况说明:postgres创建外部表,发现不能扩展默认没有安装;

ERROR: could not open extension control file “/usr/local/pgsql/share/extension/file_f

解决办法:手动安装扩展

解决思路:

1、看报错提示,是缺file_fdw.control文件,于是全局搜索,发现有file_fdw文件;

2、进去file_fdw文件所在位置后,手动安装,就会有file_fdw.control文件生成了;

如下是详细操作步骤:

ERROR: could not open extension control file “/usr/local/pgsql/share/extension/file_f

ERROR: could not open extension control file “/usr/local/pgsql/share/extension/file_f

ERROR: could not open extension control file “/usr/local/pgsql/share/extension/file_f

ERROR: could not open extension control file “/usr/local/pgsql/share/extension/file_f

相关文章: