Access aggregation functions in plan stage of fdw?

Ian Pye <[email protected]> Wed, 11 Dec 2013 17:00:01 -0800
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <CAEVWPAUbg4c9kYNM0A=OpREotqt2YKyY9k7zu2U85SqPM1ZDJA@mail.gmail.com>
I'm trying to write a fdw where aggregate functions are pushed down to the
underlaying data store. I can't find a way to get a list of these out of
the query* struct however.

Is this possible? Any pointers appreciated. Failing this, can I just get
the original query as a string?