在greenPlum集群每台机器执行
yum install mysql-devel
注意这里安装的是系统自带的mariaDB版本即可,fdw主要使用其中的mysql协议连接器
下载mysql_fdw ,注意:该软件主分支已经不支持greenplum 的postgres9.4.26版本了,所以需要用这个版本https://github.com/adam8157/mysql_fdw_greenplum
下载到安装greenPlum master机器 后解压然后分别执行
make USE_PGXS=1
make USE_PGXS=1 install
执行后生成的文件位置在提示里面是有的
so文件在 /usr/local/greenplum-db/lib/postgresql/
其他文件在 /usr/local/greenplum-db-6.7.1/share/postgresql/extension