Re: How to get value of 'Param' of the WHERE clause in the FDW?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to get value of 'Param' of the WHERE clause in the FDW?
Дата
Msg-id 21003.1443214261@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to get value of 'Param' of the WHERE clause in the FDW?  (Dmitry Chichkov <dchichkov@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Dmitry Chichkov
Дата:
Сообщение: Re: How to get value of 'Param' of the WHERE clause in the FDW?
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Reusing abbreviated keys during second pass of ordered [set] aggregates