1 Since version 14.1 it seems ExecGetJunkAttribute is defined in the server/executor/executor.h
2 header file as inline function and the symbol is no longer exported from the postgres binary.
3 So to be able to load mysql_fdw.so we need to include that include file when compiling.
4 diff -wpruN '--exclude=*.orig' a~/mysql_fdw.c a/mysql_fdw.c
5 --- a~/mysql_fdw.c 1970-01-01 00:00:00
6 +++ a/mysql_fdw.c 1970-01-01 00:00:00
8 #include "commands/defrem.h"
9 #include "commands/explain.h"
10 #include "catalog/heap.h"
11 +#if PG_VERSION_NUM >= 140000
12 +#include "executor/executor.h"
14 #include "foreign/fdwapi.h"
15 #include "miscadmin.h"
16 #include "mysql_query.h"