-
Notifications
You must be signed in to change notification settings - Fork 163
Description
Hi Dave,
i got a error if i try to compile the mysql_fdw on pg 9.2:
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/mysql -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 mysql_fdw.o mysql_fdw.c
mysql_fdw.c:103:1: error: unknown type name 'FdwPlan'
mysql_fdw.c: In function 'mysql_fdw_handler':
mysql_fdw.c:125:12: error: 'FdwRoutine' has no member named 'PlanForeignScan'
mysql_fdw.c: At top level:
mysql_fdw.c:359:1: error: unknown type name 'FdwPlan'
mysql_fdw.c: In function 'mysqlPlanForeignScan':
mysql_fdw.c:362:2: error: unknown type name 'FdwPlan'
mysql_fdw.c:380:12: error: 'FdwPlan' undeclared (first use in this function)
mysql_fdw.c:380:12: note: each undeclared identifier is reported only once for each function it appears in
mysql_fdw.c:380:12: error: expected expression before ')' token
mysql_fdw.c:384:10: error: request for member 'startup_cost' in something not a structure or union
mysql_fdw.c:386:10: error: request for member 'startup_cost' in something not a structure or union
mysql_fdw.c:449:9: error: request for member 'total_cost' in something not a structure or union
mysql_fdw.c:449:38: error: request for member 'startup_cost' in something not a structure or union
mysql_fdw.c:450:9: error: request for member 'fdw_private' in something not a structure or union
make: *** [mysql_fdw.o] Error 1
I create a fork to implemented the new api: https://github.com/albertlast/mysql_fdw/
the code is not realy clean but it work