安装包位置:
更新时间2022年05月29日
链接: https://pan.baidu.com/s/1_Im_p8qm8voqrIicyk0_HQ 提取码: 6gl1
更新说明:更新pip包
更新时间2022年04月29日
链接: https://pan.baidu.com/s/1t-4dMp9nf_zdnpGVvJqsww 密码: ukh5
更新说明:注释掉已存在在dwf内置的postgres fdw create sql
更新时间2022年04月28日
链接: https://pan.baidu.com/s/1aBcFOsqgB37P_iJFLEJTsQ 密码: totv
更新说明:修复pg_upgrade_online_full.sh的bug
更新时间2022年04月26日
链接: https://pan.baidu.com/s/1_Q9jugr1IzK5TmQGBvmA2Q 密码: hut5
更新说明:修复原始cassandra fdw 的bug
更新时间2022年04月25日
链接: https://pan.baidu.com/s/1opO8mUNJRbOdtZ6Xo8Q52w 密码: ofjd
更新说明:mongodb数据源增加版本3.0支持
更新时间2022年04月14日
链接: https://pan.baidu.com/s/1bfHj2WiXtA_60h3o6h0uug 密码: 439f
更新说明:iotdb数据少探测修复
更新时间2022年02月10日
链接: https://pan.baidu.com/s/1EUeWjQWrursdxrQ-9hswVQ 密码: 8cc0
更新说明:修复redis安装报错
更新时间2022年01月08日
链接: https://pan.baidu.com/s/1ebOJkZ_cPWJMf-FKjElmUg 密码: jqat
更新说明:修复basic中oracle功能
更新时间2021年12月13日
链接: https://pan.baidu.com/s/12NfjF2VfzSHo3f1PB-B6XA 密码: 1cc6
更新说明:修复探测功能,设置连接超时参数
更新时间2021年12月10日
链接: https://pan.baidu.com/s/1OUdtAvqfsB2p4Ix7Ve6aCw 密码: 3efj
更新说明:执行脚本pg_upgrade.sh 默认只包含schema profiler fdw 及pg fdw的安装,如需其他安装执行相应脚本,详见《版本区分介绍》
更新时间2021年12月8日
链接: https://pan.baidu.com/s/1ihLD_vfP3IYvlgBMTdGZHQ 密码: anq4
2021年6月8日
百度网盘链接
链接: https://pan.baidu.com/s/10cB7lyDF89wU7QH6ehLGkA 密码: n1ia
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
注意:安装包目前只支持新版本的pg数据库;目前不支持麒麟系统,只支持Ubuntu系统18.04
一.上传安装包文件到服务器
二.执行命令解压安装包
1.下载网盘连接中的文档
1.上传下载下来的文件到服务器
2.进入到上传文件夹中
cd 20220210
3.设置安装脚本权限
sudo chmod 755 pg*
4.执行安装脚本,可以查看版本区分文档,执行符合需求的脚本
sudo ./pgXXX
三.安装报错后问题解决步骤
1.oracle的fdw手动安装步骤
如果上一步执行脚本后报错,就需要手动安装了。可以依次执行图中的命令。
也可以直接把oracle的依赖安装好。
执行 dpkg -i *.deb
四.安装完成后,验证fdw是否安装成功的sql(必须执行)
1、multicorn
CREATE SERVER csv_srv foreign data wrapper multicorn options (wrapper 'multicorn.csvfdw.CsvFdw'); create foreign table csvtest (PassengerId integer,id integer ) server csv_srv options (filename '/home/dwf/Schema_fdw/fdw/SchemaN_upgrade/tmp/test.csv',skip_header '1',delimiter ','); select * from csvtest;
#需要修改为安装服务器中SchemaN_upgrade/tmp/test.csv文件的位置
2、schema profiler fdw
create server schema_test foreign data wrapper multicorn options (wrapper 'Schema_Profiler_FDW.Schema_Profiler_FDW'); create foreign table plt_all_tables_pg1( plt_oid uuid, plt_createtime timestamp, plt_type text, plt_version text, plt_datasource_oid text, plt_datasource_name text, plt_database text, plt_host text, plt_port text, plt_user text, plt_table_schema text, plt_table_name text) server schema_test options( host'192.168.31.82', port'5432', database'postgres', user'postgres', password'123456', type'postgresql', table'information_schema.tables', version'10.9', table_or_column'all_tables', datasource_oid'1234567', datasource_name 'PG数据源1'); select * from plt_all_tables_pg1;
3、mysql fdw
create server mysql_svr foreign data wrapper mysql_fdw options (host '10.101.67.4', port '3306'); create user mapping for postgres server mysql_svr options (username 'root', password '123456'); create foreign table type_test (id integer) server mysql_svr options (dbname 'males',table_name 'id'); select * from type_test;
4、sql server fdw
CREATE SERVER sqlserverserver FOREIGN DATA WRAPPER tds_fdw OPTIONS (servername '10.101.66.5',port '1433',database 'goods',tds_version '7.4'); CREATE USER MAPPING FOR postgres SERVER sqlserverserver OPTIONS (username 'sa', password 'Test1234'); CREATE FOREIGN TABLE datetable11_copy1( "nameID" integer )SERVER sqlserverserver OPTIONS (table_name 'dbo.testID');
5、oracle fdw
CREATE SERVER oradb FOREIGN DATA WRAPPER oracle_fdw OPTIONS (dbserver '//10.101.66.5:1521/orcl'); GRANT USAGE ON FOREIGN SERVER oradb TO postgres; CREATE USER MAPPING FOR postgres SERVER oradb OPTIONS (user 'c##dwf', password '123456'); CREATE FOREIGN TABLE oracle_aaaa (id integer) SERVER oradb OPTIONS (schema 'C##DWF', table 'myTable'); SELECT * FROM oracle_aaaa;