*** pgsql/src/backend/commands/portalcmds.c 2008/07/18 20:26:06 1.75 --- pgsql/src/backend/commands/portalcmds.c 2008/11/30 20:51:25 1.76 *************** *** 14,20 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.74 2008/05/12 20:01:59 alvherre Exp $ * *------------------------------------------------------------------------- */ --- 14,20 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.75 2008/07/18 20:26:06 tgl Exp $ * *------------------------------------------------------------------------- */ *************** *** 26,31 **** --- 26,32 ---- #include "access/xact.h" #include "commands/portalcmds.h" #include "executor/executor.h" + #include "executor/tstoreReceiver.h" #include "tcop/pquery.h" #include "utils/memutils.h" #include "utils/snapmgr.h" *************** PersistHoldablePortal(Portal portal) *** 351,357 **** ExecutorRewind(queryDesc); /* Change the destination to output to the tuplestore */ ! queryDesc->dest = CreateDestReceiver(DestTuplestore, portal); /* Fetch the result set into the tuplestore */ ExecutorRun(queryDesc, ForwardScanDirection, 0L); --- 352,361 ---- ExecutorRewind(queryDesc); /* Change the destination to output to the tuplestore */ ! queryDesc->dest = CreateDestReceiver(DestTuplestore); ! SetTuplestoreDestReceiverParams(queryDesc->dest, ! portal->holdStore, ! portal->holdContext); /* Fetch the result set into the tuplestore */ ExecutorRun(queryDesc, ForwardScanDirection, 0L);