pl/proxy-2.5安装在postgresql9.6上无法编译

在postgresql安装编译pl/ploxy-2.5报错
postgres@node2 plproxy-2.5]$ make
flex -osrc/scanner.c src/scanner.l
bison -b src/parser -d src/parser.y
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fpic -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include -DNO_SELECT=0 -I. -I./ -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include/internal -D_GNU_SOURCE   -c -o src/scanner.o src/scanner.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fpic -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include -DNO_SELECT=0 -I. -I./ -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include/internal -D_GNU_SOURCE   -c -o src/parser.tab.o src/parser.tab.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fpic -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include -DNO_SELECT=0 -I. -I./ -I/home/postgres/pgsql-9.6/include/server -I/home/postgres/pgsql-9.6/include/internal -D_GNU_SOURCE   -c -o src/cluster.o src/cluster.c
src/cluster.c: In function ‘get_version’:
src/cluster.c:281: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘uint64’
src/cluster.c: In function ‘get_userinfo’:
src/cluster.c:940: error: too few arguments to function ‘GetUserNameFromId’
src/cluster.c: In function ‘resolve_query’:
src/cluster.c:1117: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘uint64’
gmake: *** [src/cluster.o] Error 1

本人之前在9.4和9.2上安装过没有出现问题,个人判断是pl/ploxy-2.5不支持pg9.6,需要自己改一下内容,我还没找到方法。pl/ploxy-2.5是2012年的东西了,也许久不更新了。如果想做pl/ploxy-2.5的实验,建议不要用pg9.6了

后经实验,pl/ploxy-2.5在pg9.5上编译的时候也是会出错的,错误和上述差不过。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值