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?