greenplum 6.11版本安装postgres_fdw失败,报错信息如下:
[gpadmin@mdw postgres_fdw]$ make USE_PGXS=1
gcc -m64 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -fno-aggressive-loop-optimizations -Wno-unused-but-set-variable -W
no-address -m64 -O3 -fargument-noalias-global -fno-omit-frame-pointer -g -std=gnu99 -Werror=uninitialized -Werror=implicit-function-declaration -fPIC -I/usr/local/greenplum-db-6.7.1/include -I. -I./ -I/usr/local/greenplum-db-6.7.1/in
clude/postgresql/server -I/usr/local/greenplum-db-6.7.1/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/tmp/build/f8c7ee08/gpdb_src/gpAux/ext/rhel7_x86_64/include -c -o postgres_fdw.o postgres_fdw.c
postgres_fdw.c: In function ‘postgresGetForeignRelSize’:
postgres_fdw.c error: too few arguments to function ‘clauselist_selectivity’
NULL);
^
In file included from postgres_fdw.c0:
/usr/local/greenplum-db-6.7.1/include/postgresql/server/optimizer/cost.h note: declared here
extern Selectivity clauselist_selectivity(PlannerInfo *root,
^
postgres_fdw.c: In function ‘postgresIterateForeignScan’:
postgres_fdw.c error: implicit declaration of function ‘ExecStoreTuple’ [-Werror=implicit-function-declaration]
ExecStoreTuple(fsstate->tuples[fsstate->next_tuple++],
^
postgres_fdw.c: In function ‘estimate_path_cost_size’:
postgres_fdw.c error: too few arguments to function ‘clauselist_selectivity’
NULL);
^
In file included from postgres_fdw.c0:
/usr/local/greenplum-db-6.7.1/include/postgresql/server/optimizer/cost.h note: declared here
extern Selectivity clauselist_selectivity(PlannerInfo *root,
^
cc1: some warnings being treated as errors
make: *** [postgres_fdw.o] Error 1