Re: How to get value of 'Param' of the WHERE clause in the FDW? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: How to get value of 'Param' of the WHERE clause in the FDW?
Date
Msg-id 21003.1443214261@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to get value of 'Param' of the WHERE clause in the FDW?  (Dmitry Chichkov <dchichkov@gmail.com>)
List pgsql-hackers
Dmitry Chichkov <dchichkov@gmail.com> writes:
> Evaluate via ExecEvalExpr, right?

Yeah.

> 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.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Dmitry Chichkov
Date:
Subject: Re: How to get value of 'Param' of the WHERE clause in the FDW?
Next
From: Jeff Janes
Date:
Subject: Re: Reusing abbreviated keys during second pass of ordered [set] aggregates