mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Create executor and planner-backend support for decoupled heap and index
scans, using in-memory tuple ID bitmaps as the intermediary. The planner frontend (path creation and cost estimation) is not there yet, so none of this code can be executed. I have tested it using some hacked planner code that is far too ugly to see the light of day, however. Committing now so that the bulk of the infrastructure changes go in before the tree drifts under me.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/executor/execAmi.c,v 1.82 2004/12/31 21:59:45 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/execAmi.c,v 1.83 2005/04/19 22:35:11 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -19,6 +19,10 @@
|
||||
#include "executor/instrument.h"
|
||||
#include "executor/nodeAgg.h"
|
||||
#include "executor/nodeAppend.h"
|
||||
#include "executor/nodeBitmapAnd.h"
|
||||
#include "executor/nodeBitmapHeapscan.h"
|
||||
#include "executor/nodeBitmapIndexscan.h"
|
||||
#include "executor/nodeBitmapOr.h"
|
||||
#include "executor/nodeFunctionscan.h"
|
||||
#include "executor/nodeGroup.h"
|
||||
#include "executor/nodeGroup.h"
|
||||
@@ -107,6 +111,14 @@ ExecReScan(PlanState *node, ExprContext *exprCtxt)
|
||||
ExecReScanAppend((AppendState *) node, exprCtxt);
|
||||
break;
|
||||
|
||||
case T_BitmapAndState:
|
||||
ExecReScanBitmapAnd((BitmapAndState *) node, exprCtxt);
|
||||
break;
|
||||
|
||||
case T_BitmapOrState:
|
||||
ExecReScanBitmapOr((BitmapOrState *) node, exprCtxt);
|
||||
break;
|
||||
|
||||
case T_SeqScanState:
|
||||
ExecSeqReScan((SeqScanState *) node, exprCtxt);
|
||||
break;
|
||||
@@ -115,6 +127,14 @@ ExecReScan(PlanState *node, ExprContext *exprCtxt)
|
||||
ExecIndexReScan((IndexScanState *) node, exprCtxt);
|
||||
break;
|
||||
|
||||
case T_BitmapIndexScanState:
|
||||
ExecBitmapIndexReScan((BitmapIndexScanState *) node, exprCtxt);
|
||||
break;
|
||||
|
||||
case T_BitmapHeapScanState:
|
||||
ExecBitmapHeapReScan((BitmapHeapScanState *) node, exprCtxt);
|
||||
break;
|
||||
|
||||
case T_TidScanState:
|
||||
ExecTidReScan((TidScanState *) node, exprCtxt);
|
||||
break;
|
||||
@@ -380,6 +400,7 @@ ExecMayReturnRawTuples(PlanState *node)
|
||||
/* Table scan nodes */
|
||||
case T_SeqScanState:
|
||||
case T_IndexScanState:
|
||||
case T_BitmapHeapScanState:
|
||||
case T_TidScanState:
|
||||
case T_SubqueryScanState:
|
||||
case T_FunctionScanState:
|
||||
|
Reference in New Issue
Block a user