|
PostgreSQL Source Code git master
|


Go to the source code of this file.
|
extern |
Definition at line 785 of file nodeIndexscan.c.
References Assert, fb(), index_close(), index_endscan(), IsParallelWorker, IndexScanState::iss_Instrument, IndexScanState::iss_RelationDesc, IndexScanState::iss_ScanDesc, IndexScanState::iss_SharedInfo, NoLock, IndexScanInstrumentation::nsearches, ParallelWorkerNumber, and SharedIndexScanInstrumentation::winstrument.
Referenced by ExecEndNode().
|
extern |
Definition at line 740 of file nodeIndexscan.c.
References IndexArrayKeyInfo::elem_nulls, IndexArrayKeyInfo::elem_values, fb(), j, IndexArrayKeyInfo::next_elem, IndexArrayKeyInfo::num_elems, IndexArrayKeyInfo::scan_key, ScanKeyData::sk_argument, ScanKeyData::sk_flags, and SK_ISNULL.
Referenced by MultiExecBitmapIndexScan().
|
extern |
Definition at line 1156 of file nodeIndexscan.c.
References arg, ScalarArrayOpExpr::args, Assert, BTORDER_PROC, RowCompareExpr::cmptype, elog, ERROR, ExecInitExpr(), fb(), forfour, get_leftop(), get_op_opfamily_properties(), get_opfamily_proc(), get_rightop(), INDEX_VAR, IndexRelationGetNumberOfKeyAttributes, InvalidOid, InvalidStrategy, IS_NOT_NULL, IS_NULL, IsA, j, RowCompareExpr::largs, lfirst, lfirst_oid, linitial, list_length(), lsecond, MemSet, nodeTag, ScalarArrayOpExpr::opno, palloc(), palloc0(), pfree(), PointerGetDatum(), RowCompareExpr::rargs, RegProcedureIsValid, repalloc(), ScanKeyEntryInitialize(), SK_ISNULL, SK_ORDER_BY, SK_ROW_END, SK_ROW_HEADER, SK_ROW_MEMBER, SK_SEARCHARRAY, SK_SEARCHNOTNULL, SK_SEARCHNULL, TypeIsToastable, and ScalarArrayOpExpr::useOr.
Referenced by ExecInitBitmapIndexScan(), ExecInitIndexOnlyScan(), and ExecInitIndexScan().
|
extern |
Definition at line 661 of file nodeIndexscan.c.
References ARR_ELEMTYPE, IndexArrayKeyInfo::array_expr, DatumGetArrayTypeP, deconstruct_array(), ExprContext::ecxt_per_tuple_memory, IndexArrayKeyInfo::elem_nulls, IndexArrayKeyInfo::elem_values, ExecEvalExpr(), fb(), get_typlenbyvalalign(), j, MemoryContextSwitchTo(), IndexArrayKeyInfo::next_elem, IndexArrayKeyInfo::num_elems, IndexArrayKeyInfo::scan_key, ScanKeyData::sk_argument, ScanKeyData::sk_flags, and SK_ISNULL.
Referenced by ExecReScanBitmapIndexScan().
|
extern |
Definition at line 599 of file nodeIndexscan.c.
References ExprContext::ecxt_per_tuple_memory, ExecEvalExpr(), fb(), j, MemoryContextSwitchTo(), PG_DETOAST_DATUM, PointerGetDatum(), ScanKeyData::sk_argument, ScanKeyData::sk_flags, and SK_ISNULL.
Referenced by ExecReScanBitmapIndexScan(), ExecReScanIndexOnlyScan(), and ExecReScanIndexScan().
|
extern |
Definition at line 834 of file nodeIndexscan.c.
References Assert, elog, ERROR, EState::es_epq_active, fb(), index_markpos(), IndexScanState::iss_ScanDesc, PlanState::plan, ScanState::ps, EPQState::relsubs_done, EPQState::relsubs_rowmark, EPQState::relsubs_slot, IndexScanState::ss, and PlanState::state.
Referenced by ExecMarkPos().
|
extern |
Definition at line 871 of file nodeIndexscan.c.
References Assert, elog, ERROR, EState::es_epq_active, fb(), index_restrpos(), IndexScanState::iss_ScanDesc, PlanState::plan, ScanState::ps, EPQState::relsubs_done, EPQState::relsubs_rowmark, EPQState::relsubs_slot, IndexScanState::ss, and PlanState::state.
Referenced by ExecRestrPos().
|
extern |
Definition at line 1662 of file nodeIndexscan.c.
References EState::es_snapshot, ParallelContext::estimator, fb(), index_parallelscan_estimate(), PlanState::instrument, IndexScanState::iss_NumOrderByKeys, IndexScanState::iss_NumScanKeys, IndexScanState::iss_PscanLen, IndexScanState::iss_RelationDesc, ParallelContext::nworkers, Plan::parallel_aware, PlanState::plan, ScanState::ps, shm_toc_estimate_chunk, shm_toc_estimate_keys, IndexScanState::ss, and PlanState::state.
Referenced by ExecParallelEstimate().
|
extern |
Definition at line 1692 of file nodeIndexscan.c.
References EState::es_snapshot, fb(), index_beginscan_parallel(), index_parallelscan_initialize(), index_rescan(), PlanState::instrument, IndexScanState::iss_Instrument, IndexScanState::iss_NumOrderByKeys, IndexScanState::iss_NumRuntimeKeys, IndexScanState::iss_NumScanKeys, IndexScanState::iss_OrderByKeys, IndexScanState::iss_PscanLen, IndexScanState::iss_RelationDesc, IndexScanState::iss_RuntimeKeysReady, IndexScanState::iss_ScanDesc, IndexScanState::iss_ScanKeys, IndexScanState::iss_SharedInfo, ParallelContext::nworkers, Plan::parallel_aware, PlanState::plan, Plan::plan_node_id, ScanState::ps, shm_toc_allocate(), shm_toc_insert(), IndexScanState::ss, ScanState::ss_currentRelation, PlanState::state, and ParallelContext::toc.
Referenced by ExecParallelInitializeDSM().
|
extern |
Definition at line 1759 of file nodeIndexscan.c.
References fb(), index_beginscan_parallel(), index_rescan(), PlanState::instrument, IndexScanState::iss_Instrument, IndexScanState::iss_NumOrderByKeys, IndexScanState::iss_NumRuntimeKeys, IndexScanState::iss_NumScanKeys, IndexScanState::iss_OrderByKeys, IndexScanState::iss_RelationDesc, IndexScanState::iss_RuntimeKeysReady, IndexScanState::iss_ScanDesc, IndexScanState::iss_ScanKeys, IndexScanState::iss_SharedInfo, OffsetToPointer, Plan::parallel_aware, PlanState::plan, Plan::plan_node_id, ScanState::ps, shm_toc_lookup(), IndexScanState::ss, and ScanState::ss_currentRelation.
Referenced by ExecParallelInitializeWorker().
|
extern |
Definition at line 1745 of file nodeIndexscan.c.
References Assert, index_parallelrescan(), IndexScanState::iss_ScanDesc, Plan::parallel_aware, PlanState::plan, ScanState::ps, and IndexScanState::ss.
Referenced by ExecParallelReInitializeDSM().
|
extern |
Definition at line 1809 of file nodeIndexscan.c.
References fb(), IndexScanState::iss_SharedInfo, SharedIndexScanInstrumentation::num_workers, and palloc().
Referenced by ExecParallelRetrieveInstrumentation().
|
extern |
Definition at line 907 of file nodeIndexscan.c.
References Assert, CurrentMemoryContext, EXEC_FLAG_EXPLAIN_ONLY, exec_rt_fetch(), ExecAssignExprContext(), ExecAssignScanProjectionInfo(), ExecIndexBuildScanKeys(), ExecIndexScan(), ExecInitExprList(), ExecInitQual(), ExecInitResultTypeTL(), ExecInitScanTupleSlot(), ExecOpenScanRelation(), exprCollation(), exprType(), fb(), forboth, get_typlenbyval(), i, index_open(), IndexScan::indexid, IndexScan::indexorderby, IndexScan::indexorderbyops, IndexScan::indexorderbyorig, IndexScan::indexqual, IndexScan::indexqualorig, lfirst, lfirst_oid, list_length(), makeNode, pairingheap_allocate(), palloc(), palloc0(), PrepareSortSupportFromOrderingOp(), RelationGetDescr, reorderqueue_cmp(), IndexScan::scan, Scan::scanrelid, SortSupportData::ssup_cxt, and table_slot_callbacks().
Referenced by ExecInitNode().
|
extern |
Definition at line 551 of file nodeIndexscan.c.
References ExecIndexEvalRuntimeKeys(), ExecScanReScan(), heap_freetuple(), index_rescan(), IndexScanState::iss_NumOrderByKeys, IndexScanState::iss_NumRuntimeKeys, IndexScanState::iss_NumScanKeys, IndexScanState::iss_OrderByKeys, IndexScanState::iss_ReachedEnd, IndexScanState::iss_ReorderQueue, IndexScanState::iss_RuntimeContext, IndexScanState::iss_RuntimeKeys, IndexScanState::iss_RuntimeKeysReady, IndexScanState::iss_ScanDesc, IndexScanState::iss_ScanKeys, pairingheap_is_empty, reorderqueue_pop(), ResetExprContext, and IndexScanState::ss.
Referenced by ExecReScan().