While executing RemoteSubplan we'd accidentally set "execute_once" to true,
even though that wasn't appropriate. Correct that mistake and always use the
information in the Portal to decide whether to execute once or more.
/* Execute query and dispatch tuples via dest receiver */
#define PRODUCE_TUPLES 100
PushActiveSnapshot(queryDesc->snapshot);
- ExecutorRun(queryDesc, ForwardScanDirection, PRODUCE_TUPLES, true);
+ ExecutorRun(queryDesc, ForwardScanDirection, PRODUCE_TUPLES,
+ portal->run_once);
PopActiveSnapshot();
if (queryDesc->estate->es_processed < PRODUCE_TUPLES)