Open jwp opened 13 years ago
This is a bit problematic as it's difficult to attack this problem as pg-python attacks other problems. Creating a Python interface to the Node structures would appear to require one-off support for each type. Being able to generate the interface is extremely desirable as compensating for Node changes across major versions will be cumbersome. So far, the best way to approach this problem is to use llvm/clang to parse the C code and analyze the structures. This will not be a portable operation, so performing it at compile time will not be appropriate.
Implement FDW support. Use function name protocols to embed the module reference of the implementation in the FDW handler/validator function.