diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-30 23:13:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-30 23:13:30 +0000 |
commit | 5b9d655ba7823cf52fcae1038ec48c347c39029f (patch) | |
tree | ce91eb497ec248920df1ca194cb9d68afc398aeb /src/include/executor/executor.h | |
parent | 4ce4d7f7d321979c38c2d9177eac634f92da6070 (diff) | |
download | postgresql-5b9d655ba7823cf52fcae1038ec48c347c39029f.tar.gz postgresql-5b9d655ba7823cf52fcae1038ec48c347c39029f.zip |
Avoid duplicate ExecTypeFromTL() call in ExecInitJunkFilter() by passing
in the TupleDesc that the caller already has (for call from ExecMain) or
can make just as easily as ExecInitJunkFilter() can (for call from
ExecAppend). Also, don't bother to build a junk filter for an INSERT
operation that doesn't actually need one, which is the normal case.
Diffstat (limited to 'src/include/executor/executor.h')
-rw-r--r-- | src/include/executor/executor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index 662358f4599..cf9ec0d291d 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: executor.h,v 1.38 1999/09/24 00:25:10 tgl Exp $ + * $Id: executor.h,v 1.39 1999/10/30 23:13:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -53,7 +53,7 @@ extern Relation ExecCreatR(TupleDesc tupType, Oid relationOid); /* * prototypes from functions in execJunk.c */ -extern JunkFilter *ExecInitJunkFilter(List *targetList); +extern JunkFilter *ExecInitJunkFilter(List *targetList, TupleDesc tupType); extern bool ExecGetJunkAttribute(JunkFilter *junkfilter, TupleTableSlot *slot, char *attrName, Datum *value, bool *isNull); extern HeapTuple ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot); |