Обсуждение: cannot compile www_fdw Foreign Data Wrapper

Поиск
Список
Период
Сортировка

cannot compile www_fdw Foreign Data Wrapper

От
Adrian Schreyer
Дата:
Hi all,

I am trying to compile the www_fdw foreign data wrapper on PostgreSQL
9.2 beta but I am getting the following error:

cp sql/www_fdw.sql sql/www_fdw--0.1.0.sql
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0
-Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -g -fpic -I/usr/include/libxml2
-I. -I. -I/usr/include/postgresql/9.2/server
-I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
-I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o src/json_parser.o
src/json_parser.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0
-Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -g -fpic -I/usr/include/libxml2
-I. -I. -I/usr/include/postgresql/9.2/server
-I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
-I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o
src/serialize_quals.o src/serialize_quals.c
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security -fPIC -DLINUX_OOM_ADJ=0
-Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -g -fpic -I/usr/include/libxml2
-I. -I. -I/usr/include/postgresql/9.2/server
-I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
-I/usr/include/libxml2  -I/usr/include/tcl8.5  -c -o src/www_fdw.o
src/www_fdw.c
src/www_fdw.c:126:1: error: unknown type name ‘FdwPlan’
src/www_fdw.c: In function ‘www_fdw_handler’:
src/www_fdw.c:309:12: error: ‘FdwRoutine’ has no member named ‘PlanForeignScan’
src/www_fdw.c: At top level:
src/www_fdw.c:434:1: error: unknown type name ‘FdwPlan’
src/www_fdw.c: In function ‘www_plan’:
src/www_fdw.c:437:2: error: unknown type name ‘FdwPlan’
src/www_fdw.c:441:12: error: ‘FdwPlan’ undeclared (first use in this function)
src/www_fdw.c:441:12: note: each undeclared identifier is reported
only once for each function it appears in
src/www_fdw.c:441:12: error: expected expression before ‘)’ token
src/www_fdw.c:442:9: error: request for member ‘fdw_private’ in
something not a structure or union
make: *** [src/www_fdw.o] Error 1

Any ideas what the problem could be?

Re: cannot compile www_fdw Foreign Data Wrapper

От
Tom Lane
Дата:
Adrian Schreyer <ams214@cam.ac.uk> writes:
> I am trying to compile the www_fdw foreign data wrapper on PostgreSQL
> 9.2 beta but I am getting the following error:

We changed the planner API for foreign data wrappers in 9.2, so you
won't be able to compile 9.1 FDWs until their code is updated.

            regards, tom lane