aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execUtils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-07-26 19:15:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-07-26 19:15:35 +0000
commita77eaa6a95009a3441e0d475d1980259d45da072 (patch)
treee1f8f0f7e915ad440d9f7407a80d7b452034b133 /src/backend/executor/execUtils.c
parent94be06af76ac85e362c42bff5824a5cd04860934 (diff)
downloadpostgresql-a77eaa6a95009a3441e0d475d1980259d45da072.tar.gz
postgresql-a77eaa6a95009a3441e0d475d1980259d45da072.zip
As noted by Andrew Gierth, there's really no need any more to force a junk
filter to be used when INSERT or SELECT INTO has a plan that returns raw disk tuples. The virtual-tuple-slot optimizations that were put in place awhile ago mean that ExecInsert has to do ExecMaterializeSlot, and that already copies the tuple if it's raw (and does so more efficiently than a junk filter, too). So get rid of that logic. This in turn means that we can throw away ExecMayReturnRawTuples, which wasn't used for any other purpose, and was always a kluge anyway. In passing, move a couple of SELECT-INTO-specific fields out of EState and into the private state of the SELECT INTO DestReceiver, as was foreseen in an old comment there. Also make intorel_receive use ExecMaterializeSlot not ExecCopySlotTuple, for consistency with ExecInsert and to possibly save a tuple copy step in some cases.
Diffstat (limited to 'src/backend/executor/execUtils.c')
-rw-r--r--src/backend/executor/execUtils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c
index 6dad21e3067..f53f9d12e95 100644
--- a/src/backend/executor/execUtils.c
+++ b/src/backend/executor/execUtils.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.155 2008/03/26 21:10:38 alvherre Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.156 2008/07/26 19:15:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -190,9 +190,6 @@ CreateExecutorState(void)
estate->es_trig_target_relations = NIL;
estate->es_trig_tuple_slot = NULL;
- estate->es_into_relation_descriptor = NULL;
- estate->es_into_relation_use_wal = false;
-
estate->es_param_list_info = NULL;
estate->es_param_exec_vals = NULL;