diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-22 02:23:35 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-22 02:23:35 +0000 |
commit | 94db74f37071984c11ce5cc33a40285a5bfeec4c (patch) | |
tree | 0f99f0dcef84b8ee9f00b5ac5e9f06caf278fe4f /src/include/executor/executor.h | |
parent | 5a2a8b9e01e83e68c6cbcffc2259f5dad4f108be (diff) |
Fix oversight in optimization that avoids an unnecessary projection step
when scanning a table that we need all the columns from. In case of
SELECT INTO, we have to check that the hasoids flag matches the desired
output type, too. Per report from Mike Mascari.
Diffstat (limited to 'src/include/executor/executor.h')
-rw-r--r-- | src/include/executor/executor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index 7403beffd26..201f520dba9 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: executor.h,v 1.102.2.1 2003/12/18 20:21:53 tgl Exp $ + * $Id: executor.h,v 1.102.2.2 2004/01/22 02:23:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -93,6 +93,7 @@ extern void ExecutorEnd(QueryDesc *queryDesc); extern void ExecutorRewind(QueryDesc *queryDesc); extern void ExecCheckRTPerms(List *rangeTable, CmdType operation); extern void ExecEndPlan(PlanState *planstate, EState *estate); +extern bool ExecContextForcesOids(PlanState *planstate, bool *hasoids); extern void ExecConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate); extern TupleTableSlot *EvalPlanQual(EState *estate, Index rti, |