Re: Arguments to foreign tables?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Jeff Davis <pgsql(at)j-davis(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Arguments to foreign tables?
Date: 2012-11-06 16:00:50
Message-ID: 13981.1352217650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> (On another thought: why do Foreign Scans get to avoid the
> materialization we hate with SRFs?)

[ shrug... ] That works both ways. If it would be convenient for an
FDW to return a tuplestore, which is hardly unlikely, it's out of luck;
it has to do the expansion itself.

The fact that nodeFunctionscan forces materialization is not by any
means a fundamental property. It's just that nobody bothered to
implement two code paths there.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2012-11-06 16:10:53 Re: Arguments to foreign tables?
Previous Message Robert Haas 2012-11-06 15:57:52 Re: MySQL search query is not executing in Postgres DB