PostgreSQL Source Code  git master
nodeBitmapHeapscan.h File Reference
#include "access/parallel.h"
#include "nodes/execnodes.h"
Include dependency graph for nodeBitmapHeapscan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BitmapHeapScanStateExecInitBitmapHeapScan (BitmapHeapScan *node, EState *estate, int eflags)
 
void ExecEndBitmapHeapScan (BitmapHeapScanState *node)
 
void ExecReScanBitmapHeapScan (BitmapHeapScanState *node)
 
void ExecBitmapHeapEstimate (BitmapHeapScanState *node, ParallelContext *pcxt)
 
void ExecBitmapHeapInitializeDSM (BitmapHeapScanState *node, ParallelContext *pcxt)
 
void ExecBitmapHeapReInitializeDSM (BitmapHeapScanState *node, ParallelContext *pcxt)
 
void ExecBitmapHeapInitializeWorker (BitmapHeapScanState *node, ParallelWorkerContext *pwcxt)
 

Function Documentation

◆ ExecBitmapHeapEstimate()

void ExecBitmapHeapEstimate ( BitmapHeapScanState node,
ParallelContext pcxt 
)

Definition at line 868 of file nodeBitmapHeapscan.c.

References add_size(), EState::es_snapshot, EstimateSnapshotSpace(), ParallelContext::estimator, offsetof, ScanState::ps, BitmapHeapScanState::pscan_len, shm_toc_estimate_chunk, shm_toc_estimate_keys, BitmapHeapScanState::ss, and PlanState::state.

Referenced by ExecParallelEstimate().

870 {
871  EState *estate = node->ss.ps.state;
872 
874  phs_snapshot_data),
876 
878  shm_toc_estimate_keys(&pcxt->estimator, 1);
879 }
shm_toc_estimator estimator
Definition: parallel.h:41
Snapshot es_snapshot
Definition: execnodes.h:502
EState * state
Definition: execnodes.h:941
#define shm_toc_estimate_chunk(e, sz)
Definition: shm_toc.h:51
PlanState ps
Definition: execnodes.h:1330
Size EstimateSnapshotSpace(Snapshot snap)
Definition: snapmgr.c:2078
Size add_size(Size s1, Size s2)
Definition: shmem.c:475
#define shm_toc_estimate_keys(e, cnt)
Definition: shm_toc.h:53
#define offsetof(type, field)
Definition: c.h:662

◆ ExecBitmapHeapInitializeDSM()

void ExecBitmapHeapInitializeDSM ( BitmapHeapScanState node,
ParallelContext pcxt 
)

Definition at line 888 of file nodeBitmapHeapscan.c.

References BM_INITIAL, ConditionVariableInit(), ParallelBitmapHeapState::cv, EState::es_query_dsa, EState::es_snapshot, ParallelBitmapHeapState::mutex, ParallelBitmapHeapState::phs_snapshot_data, PlanState::plan, Plan::plan_node_id, ParallelBitmapHeapState::prefetch_iterator, ParallelBitmapHeapState::prefetch_pages, ParallelBitmapHeapState::prefetch_target, ScanState::ps, BitmapHeapScanState::pscan_len, BitmapHeapScanState::pstate, SerializeSnapshot(), shm_toc_allocate(), shm_toc_insert(), SpinLockInit, BitmapHeapScanState::ss, PlanState::state, ParallelBitmapHeapState::state, ParallelBitmapHeapState::tbmiterator, and ParallelContext::toc.

Referenced by ExecParallelInitializeDSM().

890 {
891  ParallelBitmapHeapState *pstate;
892  EState *estate = node->ss.ps.state;
893  dsa_area *dsa = node->ss.ps.state->es_query_dsa;
894 
895  /* If there's no DSA, there are no workers; initialize nothing. */
896  if (dsa == NULL)
897  return;
898 
899  pstate = shm_toc_allocate(pcxt->toc, node->pscan_len);
900 
901  pstate->tbmiterator = 0;
902  pstate->prefetch_iterator = 0;
903 
904  /* Initialize the mutex */
905  SpinLockInit(&pstate->mutex);
906  pstate->prefetch_pages = 0;
907  pstate->prefetch_target = 0;
908  pstate->state = BM_INITIAL;
909 
910  ConditionVariableInit(&pstate->cv);
912 
913  shm_toc_insert(pcxt->toc, node->ss.ps.plan->plan_node_id, pstate);
914  node->pstate = pstate;
915 }
struct dsa_area * es_query_dsa
Definition: execnodes.h:583
#define SpinLockInit(lock)
Definition: spin.h:60
int plan_node_id
Definition: plannodes.h:139
Snapshot es_snapshot
Definition: execnodes.h:502
EState * state
Definition: execnodes.h:941
PlanState ps
Definition: execnodes.h:1330
void ConditionVariableInit(ConditionVariable *cv)
ParallelBitmapHeapState * pstate
Definition: execnodes.h:1602
void SerializeSnapshot(Snapshot snapshot, char *start_address)
Definition: snapmgr.c:2102
dsa_pointer tbmiterator
Definition: execnodes.h:1547
Plan * plan
Definition: execnodes.h:939
dsa_pointer prefetch_iterator
Definition: execnodes.h:1548
SharedBitmapState state
Definition: execnodes.h:1552
void * shm_toc_allocate(shm_toc *toc, Size nbytes)
Definition: shm_toc.c:88
char phs_snapshot_data[FLEXIBLE_ARRAY_MEMBER]
Definition: execnodes.h:1554
Definition: dsa.c:354
void shm_toc_insert(shm_toc *toc, uint64 key, void *address)
Definition: shm_toc.c:171
ConditionVariable cv
Definition: execnodes.h:1553
shm_toc * toc
Definition: parallel.h:44

◆ ExecBitmapHeapInitializeWorker()

void ExecBitmapHeapInitializeWorker ( BitmapHeapScanState node,
ParallelWorkerContext pwcxt 
)

Definition at line 953 of file nodeBitmapHeapscan.c.

References Assert, EState::es_query_dsa, ParallelBitmapHeapState::phs_snapshot_data, PlanState::plan, Plan::plan_node_id, ScanState::ps, BitmapHeapScanState::pstate, RestoreSnapshot(), shm_toc_lookup(), BitmapHeapScanState::ss, ScanState::ss_currentScanDesc, PlanState::state, table_scan_update_snapshot(), and ParallelWorkerContext::toc.

Referenced by ExecParallelInitializeWorker().

955 {
956  ParallelBitmapHeapState *pstate;
957  Snapshot snapshot;
958 
959  Assert(node->ss.ps.state->es_query_dsa != NULL);
960 
961  pstate = shm_toc_lookup(pwcxt->toc, node->ss.ps.plan->plan_node_id, false);
962  node->pstate = pstate;
963 
964  snapshot = RestoreSnapshot(pstate->phs_snapshot_data);
966 }
void table_scan_update_snapshot(TableScanDesc scan, Snapshot snapshot)
Definition: tableam.c:110
struct dsa_area * es_query_dsa
Definition: execnodes.h:583
Snapshot RestoreSnapshot(char *start_address)
Definition: snapmgr.c:2161
int plan_node_id
Definition: plannodes.h:139
struct TableScanDescData * ss_currentScanDesc
Definition: execnodes.h:1332
EState * state
Definition: execnodes.h:941
PlanState ps
Definition: execnodes.h:1330
ParallelBitmapHeapState * pstate
Definition: execnodes.h:1602
Plan * plan
Definition: execnodes.h:939
#define Assert(condition)
Definition: c.h:739
char phs_snapshot_data[FLEXIBLE_ARRAY_MEMBER]
Definition: execnodes.h:1554
void * shm_toc_lookup(shm_toc *toc, uint64 key, bool noError)
Definition: shm_toc.c:232

◆ ExecBitmapHeapReInitializeDSM()

void ExecBitmapHeapReInitializeDSM ( BitmapHeapScanState node,
ParallelContext pcxt 
)

Definition at line 924 of file nodeBitmapHeapscan.c.

References BM_INITIAL, DsaPointerIsValid, EState::es_query_dsa, InvalidDsaPointer, ParallelBitmapHeapState::prefetch_iterator, ScanState::ps, BitmapHeapScanState::pstate, BitmapHeapScanState::ss, PlanState::state, ParallelBitmapHeapState::state, tbm_free_shared_area(), and ParallelBitmapHeapState::tbmiterator.

Referenced by ExecParallelReInitializeDSM().

926 {
927  ParallelBitmapHeapState *pstate = node->pstate;
928  dsa_area *dsa = node->ss.ps.state->es_query_dsa;
929 
930  /* If there's no DSA, there are no workers; do nothing. */
931  if (dsa == NULL)
932  return;
933 
934  pstate->state = BM_INITIAL;
935 
936  if (DsaPointerIsValid(pstate->tbmiterator))
937  tbm_free_shared_area(dsa, pstate->tbmiterator);
938 
941 
942  pstate->tbmiterator = InvalidDsaPointer;
944 }
struct dsa_area * es_query_dsa
Definition: execnodes.h:583
#define InvalidDsaPointer
Definition: dsa.h:78
EState * state
Definition: execnodes.h:941
PlanState ps
Definition: execnodes.h:1330
ParallelBitmapHeapState * pstate
Definition: execnodes.h:1602
dsa_pointer tbmiterator
Definition: execnodes.h:1547
void tbm_free_shared_area(dsa_area *dsa, dsa_pointer dp)
Definition: tidbitmap.c:340
dsa_pointer prefetch_iterator
Definition: execnodes.h:1548
SharedBitmapState state
Definition: execnodes.h:1552
#define DsaPointerIsValid(x)
Definition: dsa.h:81
Definition: dsa.c:354

◆ ExecEndBitmapHeapScan()

void ExecEndBitmapHeapScan ( BitmapHeapScanState node)

Definition at line 649 of file nodeBitmapHeapscan.c.

References ExecClearTuple(), ExecEndNode(), ExecFreeExprContext(), InvalidBuffer, outerPlanState, BitmapHeapScanState::prefetch_iterator, ScanState::ps, PlanState::ps_ResultTupleSlot, BitmapHeapScanState::pvmbuffer, ReleaseBuffer(), BitmapHeapScanState::shared_prefetch_iterator, BitmapHeapScanState::shared_tbmiterator, BitmapHeapScanState::ss, ScanState::ss_currentScanDesc, ScanState::ss_ScanTupleSlot, table_endscan(), BitmapHeapScanState::tbm, tbm_end_iterate(), tbm_end_shared_iterate(), tbm_free(), BitmapHeapScanState::tbmiterator, and BitmapHeapScanState::vmbuffer.

Referenced by ExecEndNode().

650 {
651  TableScanDesc scanDesc;
652 
653  /*
654  * extract information from the node
655  */
656  scanDesc = node->ss.ss_currentScanDesc;
657 
658  /*
659  * Free the exprcontext
660  */
661  ExecFreeExprContext(&node->ss.ps);
662 
663  /*
664  * clear out tuple table slots
665  */
666  if (node->ss.ps.ps_ResultTupleSlot)
669 
670  /*
671  * close down subplans
672  */
674 
675  /*
676  * release bitmaps and buffers if any
677  */
678  if (node->tbmiterator)
680  if (node->prefetch_iterator)
682  if (node->tbm)
683  tbm_free(node->tbm);
684  if (node->shared_tbmiterator)
686  if (node->shared_prefetch_iterator)
688  if (node->vmbuffer != InvalidBuffer)
689  ReleaseBuffer(node->vmbuffer);
690  if (node->pvmbuffer != InvalidBuffer)
691  ReleaseBuffer(node->pvmbuffer);
692 
693  /*
694  * close heap scan
695  */
696  table_endscan(scanDesc);
697 }
void tbm_end_iterate(TBMIterator *iterator)
Definition: tidbitmap.c:1145
static TupleTableSlot * ExecClearTuple(TupleTableSlot *slot)
Definition: tuptable.h:425
void ExecEndNode(PlanState *node)
Definition: execProcnode.c:537
TIDBitmap * tbm
Definition: execnodes.h:1585
#define InvalidBuffer
Definition: buf.h:25
struct TableScanDescData * ss_currentScanDesc
Definition: execnodes.h:1332
TupleTableSlot * ss_ScanTupleSlot
Definition: execnodes.h:1333
void ReleaseBuffer(Buffer buffer)
Definition: bufmgr.c:3365
void ExecFreeExprContext(PlanState *planstate)
Definition: execUtils.c:614
PlanState ps
Definition: execnodes.h:1330
TupleTableSlot * ps_ResultTupleSlot
Definition: execnodes.h:977
#define outerPlanState(node)
Definition: execnodes.h:1033
void tbm_free(TIDBitmap *tbm)
Definition: tidbitmap.c:321
TBMSharedIterator * shared_tbmiterator
Definition: execnodes.h:1600
TBMIterator * tbmiterator
Definition: execnodes.h:1586
static void table_endscan(TableScanDesc scan)
Definition: tableam.h:831
TBMIterator * prefetch_iterator
Definition: execnodes.h:1594
TBMSharedIterator * shared_prefetch_iterator
Definition: execnodes.h:1601
void tbm_end_shared_iterate(TBMSharedIterator *iterator)
Definition: tidbitmap.c:1157

◆ ExecInitBitmapHeapScan()

BitmapHeapScanState* ExecInitBitmapHeapScan ( BitmapHeapScan node,
EState estate,
int  eflags 
)

Definition at line 706 of file nodeBitmapHeapscan.c.

References Assert, BitmapHeapScan::bitmapqualorig, BitmapHeapScanState::can_skip_fetch, ComputeIoConcurrency(), effective_io_concurrency, EState::es_snapshot, BitmapHeapScanState::exact_pages, EXEC_FLAG_BACKWARD, EXEC_FLAG_MARK, ExecAssignExprContext(), ExecAssignScanProjectionInfo(), ExecBitmapHeapScan(), ExecInitNode(), ExecInitQual(), ExecInitResultTypeTL(), ExecInitScanTupleSlot(), ExecOpenScanRelation(), PlanState::ExecProcNode, get_tablespace_io_concurrency(), BitmapHeapScanState::initialized, InvalidBuffer, IsMVCCSnapshot, BitmapHeapScanState::lossy_pages, makeNode, NIL, outerPlan, outerPlanState, Scan::plan, PlanState::plan, BitmapHeapScanState::prefetch_iterator, BitmapHeapScanState::prefetch_maximum, BitmapHeapScanState::prefetch_pages, BitmapHeapScanState::prefetch_target, ScanState::ps, BitmapHeapScanState::pscan_len, BitmapHeapScanState::pstate, BitmapHeapScanState::pvmbuffer, Plan::qual, PlanState::qual, RelationData::rd_rel, RelationGetDescr, BitmapHeapScanState::return_empty_tuples, rint(), BitmapHeapScan::scan, Scan::scanrelid, BitmapHeapScanState::shared_prefetch_iterator, BitmapHeapScanState::shared_tbmiterator, BitmapHeapScanState::ss, PlanState::state, table_beginscan_bm(), table_slot_callbacks(), target_prefetch_pages, Plan::targetlist, BitmapHeapScanState::tbm, BitmapHeapScanState::tbmiterator, BitmapHeapScanState::tbmres, and BitmapHeapScanState::vmbuffer.

Referenced by ExecInitNode().

707 {
708  BitmapHeapScanState *scanstate;
709  Relation currentRelation;
710  int io_concurrency;
711 
712  /* check for unsupported flags */
713  Assert(!(eflags & (EXEC_FLAG_BACKWARD | EXEC_FLAG_MARK)));
714 
715  /*
716  * Assert caller didn't ask for an unsafe snapshot --- see comments at
717  * head of file.
718  */
720 
721  /*
722  * create state structure
723  */
724  scanstate = makeNode(BitmapHeapScanState);
725  scanstate->ss.ps.plan = (Plan *) node;
726  scanstate->ss.ps.state = estate;
727  scanstate->ss.ps.ExecProcNode = ExecBitmapHeapScan;
728 
729  scanstate->tbm = NULL;
730  scanstate->tbmiterator = NULL;
731  scanstate->tbmres = NULL;
732  scanstate->return_empty_tuples = 0;
733  scanstate->vmbuffer = InvalidBuffer;
734  scanstate->pvmbuffer = InvalidBuffer;
735  scanstate->exact_pages = 0;
736  scanstate->lossy_pages = 0;
737  scanstate->prefetch_iterator = NULL;
738  scanstate->prefetch_pages = 0;
739  scanstate->prefetch_target = 0;
740  /* may be updated below */
742  scanstate->pscan_len = 0;
743  scanstate->initialized = false;
744  scanstate->shared_tbmiterator = NULL;
745  scanstate->shared_prefetch_iterator = NULL;
746  scanstate->pstate = NULL;
747 
748  /*
749  * We can potentially skip fetching heap pages if we do not need any
750  * columns of the table, either for checking non-indexable quals or for
751  * returning data. This test is a bit simplistic, as it checks the
752  * stronger condition that there's no qual or return tlist at all. But in
753  * most cases it's probably not worth working harder than that.
754  */
755  scanstate->can_skip_fetch = (node->scan.plan.qual == NIL &&
756  node->scan.plan.targetlist == NIL);
757 
758  /*
759  * Miscellaneous initialization
760  *
761  * create expression context for node
762  */
763  ExecAssignExprContext(estate, &scanstate->ss.ps);
764 
765  /*
766  * open the scan relation
767  */
768  currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags);
769 
770  /*
771  * initialize child nodes
772  */
773  outerPlanState(scanstate) = ExecInitNode(outerPlan(node), estate, eflags);
774 
775  /*
776  * get the scan type from the relation descriptor.
777  */
778  ExecInitScanTupleSlot(estate, &scanstate->ss,
779  RelationGetDescr(currentRelation),
780  table_slot_callbacks(currentRelation));
781 
782  /*
783  * Initialize result type and projection.
784  */
785  ExecInitResultTypeTL(&scanstate->ss.ps);
786  ExecAssignScanProjectionInfo(&scanstate->ss);
787 
788  /*
789  * initialize child expressions
790  */
791  scanstate->ss.ps.qual =
792  ExecInitQual(node->scan.plan.qual, (PlanState *) scanstate);
793  scanstate->bitmapqualorig =
794  ExecInitQual(node->bitmapqualorig, (PlanState *) scanstate);
795 
796  /*
797  * Determine the maximum for prefetch_target. If the tablespace has a
798  * specific IO concurrency set, use that to compute the corresponding
799  * maximum value; otherwise, we already initialized to the value computed
800  * by the GUC machinery.
801  */
802  io_concurrency =
803  get_tablespace_io_concurrency(currentRelation->rd_rel->reltablespace);
804  if (io_concurrency != effective_io_concurrency)
805  {
806  double maximum;
807 
808  if (ComputeIoConcurrency(io_concurrency, &maximum))
809  scanstate->prefetch_maximum = rint(maximum);
810  }
811 
812  scanstate->ss.ss_currentRelation = currentRelation;
813 
814  scanstate->ss.ss_currentScanDesc = table_beginscan_bm(currentRelation,
815  estate->es_snapshot,
816  0,
817  NULL);
818 
819  /*
820  * all done.
821  */
822  return scanstate;
823 }
#define NIL
Definition: pg_list.h:65
List * qual
Definition: plannodes.h:141
int target_prefetch_pages
Definition: bufmgr.c:130
Plan plan
Definition: plannodes.h:340
ExprState * bitmapqualorig
Definition: execnodes.h:1584
Index scanrelid
Definition: plannodes.h:341
#define RelationGetDescr(relation)
Definition: rel.h:448
const TupleTableSlotOps * table_slot_callbacks(Relation relation)
Definition: tableam.c:44
TIDBitmap * tbm
Definition: execnodes.h:1585
#define InvalidBuffer
Definition: buf.h:25
int get_tablespace_io_concurrency(Oid spcid)
Definition: spccache.c:215
struct TableScanDescData * ss_currentScanDesc
Definition: execnodes.h:1332
Snapshot es_snapshot
Definition: execnodes.h:502
Relation ss_currentRelation
Definition: execnodes.h:1331
EState * state
Definition: execnodes.h:941
Form_pg_class rd_rel
Definition: rel.h:83
int effective_io_concurrency
Definition: bufmgr.c:113
ExprState * ExecInitQual(List *qual, PlanState *parent)
Definition: execExpr.c:207
bool ComputeIoConcurrency(int io_concurrency, double *target)
Definition: bufmgr.c:469
PlanState ps
Definition: execnodes.h:1330
static TupleTableSlot * ExecBitmapHeapScan(PlanState *pstate)
void ExecAssignScanProjectionInfo(ScanState *node)
Definition: execScan.c:272
ParallelBitmapHeapState * pstate
Definition: execnodes.h:1602
Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags)
Definition: execUtils.c:693
#define EXEC_FLAG_BACKWARD
Definition: executor.h:58
#define outerPlanState(node)
Definition: execnodes.h:1033
void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate, TupleDesc tupledesc, const TupleTableSlotOps *tts_ops)
Definition: execTuples.c:1781
void ExecInitResultTypeTL(PlanState *planstate)
Definition: execTuples.c:1725
double rint(double x)
Definition: rint.c:21
List * bitmapqualorig
Definition: plannodes.h:475
TBMIterateResult * tbmres
Definition: execnodes.h:1587
#define outerPlan(node)
Definition: plannodes.h:170
ExecProcNodeMtd ExecProcNode
Definition: execnodes.h:945
#define IsMVCCSnapshot(snapshot)
Definition: snapmgr.h:97
Plan * plan
Definition: execnodes.h:939
#define makeNode(_type_)
Definition: nodes.h:573
#define Assert(condition)
Definition: c.h:739
#define EXEC_FLAG_MARK
Definition: executor.h:59
void ExecAssignExprContext(EState *estate, PlanState *planstate)
Definition: execUtils.c:444
TBMSharedIterator * shared_tbmiterator
Definition: execnodes.h:1600
TBMIterator * tbmiterator
Definition: execnodes.h:1586
List * targetlist
Definition: plannodes.h:140
ExprState * qual
Definition: execnodes.h:960
TBMIterator * prefetch_iterator
Definition: execnodes.h:1594
static TableScanDesc table_beginscan_bm(Relation rel, Snapshot snapshot, int nkeys, struct ScanKeyData *key)
Definition: tableam.h:781
PlanState * ExecInitNode(Plan *node, EState *estate, int eflags)
Definition: execProcnode.c:138
TBMSharedIterator * shared_prefetch_iterator
Definition: execnodes.h:1601

◆ ExecReScanBitmapHeapScan()

void ExecReScanBitmapHeapScan ( BitmapHeapScanState node)

Definition at line 602 of file nodeBitmapHeapscan.c.

References PlanState::chgParam, ExecReScan(), ExecScanReScan(), BitmapHeapScanState::initialized, InvalidBuffer, outerPlan, outerPlanState, BitmapHeapScanState::prefetch_iterator, BitmapHeapScanState::pvmbuffer, ReleaseBuffer(), BitmapHeapScanState::shared_prefetch_iterator, BitmapHeapScanState::shared_tbmiterator, BitmapHeapScanState::ss, ScanState::ss_currentScanDesc, table_rescan(), BitmapHeapScanState::tbm, tbm_end_iterate(), tbm_end_shared_iterate(), tbm_free(), BitmapHeapScanState::tbmiterator, BitmapHeapScanState::tbmres, and BitmapHeapScanState::vmbuffer.

Referenced by ExecReScan().

603 {
605 
606  /* rescan to release any page pin */
607  table_rescan(node->ss.ss_currentScanDesc, NULL);
608 
609  /* release bitmaps and buffers if any */
610  if (node->tbmiterator)
612  if (node->prefetch_iterator)
614  if (node->shared_tbmiterator)
616  if (node->shared_prefetch_iterator)
618  if (node->tbm)
619  tbm_free(node->tbm);
620  if (node->vmbuffer != InvalidBuffer)
621  ReleaseBuffer(node->vmbuffer);
622  if (node->pvmbuffer != InvalidBuffer)
623  ReleaseBuffer(node->pvmbuffer);
624  node->tbm = NULL;
625  node->tbmiterator = NULL;
626  node->tbmres = NULL;
627  node->prefetch_iterator = NULL;
628  node->initialized = false;
629  node->shared_tbmiterator = NULL;
630  node->shared_prefetch_iterator = NULL;
631  node->vmbuffer = InvalidBuffer;
632  node->pvmbuffer = InvalidBuffer;
633 
634  ExecScanReScan(&node->ss);
635 
636  /*
637  * if chgParam of subnode is not null then plan will be re-scanned by
638  * first ExecProcNode.
639  */
640  if (outerPlan->chgParam == NULL)
641  ExecReScan(outerPlan);
642 }
void tbm_end_iterate(TBMIterator *iterator)
Definition: tidbitmap.c:1145
TIDBitmap * tbm
Definition: execnodes.h:1585
void ExecReScan(PlanState *node)
Definition: execAmi.c:75
#define InvalidBuffer
Definition: buf.h:25
struct TableScanDescData * ss_currentScanDesc
Definition: execnodes.h:1332
void ReleaseBuffer(Buffer buffer)
Definition: bufmgr.c:3365
static void table_rescan(TableScanDesc scan, struct ScanKeyData *key)
Definition: tableam.h:840
#define outerPlanState(node)
Definition: execnodes.h:1033
void tbm_free(TIDBitmap *tbm)
Definition: tidbitmap.c:321
TBMIterateResult * tbmres
Definition: execnodes.h:1587
Bitmapset * chgParam
Definition: execnodes.h:971
#define outerPlan(node)
Definition: plannodes.h:170
TBMSharedIterator * shared_tbmiterator
Definition: execnodes.h:1600
TBMIterator * tbmiterator
Definition: execnodes.h:1586
TBMIterator * prefetch_iterator
Definition: execnodes.h:1594
void ExecScanReScan(ScanState *node)
Definition: execScan.c:299
TBMSharedIterator * shared_prefetch_iterator
Definition: execnodes.h:1601
void tbm_end_shared_iterate(TBMSharedIterator *iterator)
Definition: tidbitmap.c:1157