ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Greenplum安装dblink模块

Greenplum安装dblink模块

原创 Linux操作系统 作者:std1984 时间:2012-11-20 20:10:26 0 删除 编辑
环境:centos 5, greenplum 4, postgresql 8.2.22
 
 
解压后切换到/home/gpadmin/postgresql-8.2.22/contrib/dblink目录下,
$vi Makefile
将PG_CPPFLAGS = -I$(libpq_srcdir) 设置为PG_CPPFLAGS = -I$(libpq_srcdir) -w
$make USE_PGXS=1 install
然后将dblink.so拷贝到其它segment hosts上
$ gpssh -f /host/gpadmin/host_all dblink.so '/usr/local/gp/lib/postgresql/dblink.so'
$createdb testdb
$psql -f dblink.sql testdb
 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16582684/viewspace-749621/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 安装pyodbc
请登录后发表评论 登录
全部评论

注册时间:2008-12-29

  • 博文量
    171
  • 访问量
    1401341