Dmitry Chichkov <dchichkov(at)gmail(dot)com> writes: > Evaluate via ExecEvalExpr, right?
> And sorry for a beginner question, > what do I need to do to get that Expr from ForeignScanState? Is it > accessible at all in old 9.1 API?
I think you're out of luck before 9.2. There's no provision for expressions to be executed by the FDW itself in 9.1. And you can't really work around that behind the planner's back, because if you put an expression into your private fdw state, it won't get adjusted properly during setrefs.c cleanup.