Lines Matching refs:erm
78 ExecRowMark *erm = aerm->rowmark; in ExecLockRows() local
89 markSlot = EvalPlanQualSlot(&node->lr_epqstate, erm->relation, erm->rti); in ExecLockRows()
93 if (erm->rti != erm->prti) in ExecLockRows()
105 Assert(OidIsValid(erm->relid)); in ExecLockRows()
106 if (tableoid != erm->relid) in ExecLockRows()
109 erm->ermActive = false; in ExecLockRows()
110 ItemPointerSetInvalid(&(erm->curCtid)); in ExecLockRows()
115 erm->ermActive = true; in ExecLockRows()
126 if (erm->relation->rd_rel->relkind == RELKIND_FOREIGN_TABLE) in ExecLockRows()
131 fdwroutine = GetFdwRoutineForRelation(erm->relation, false); in ExecLockRows()
137 RelationGetRelationName(erm->relation)))); in ExecLockRows()
140 erm, in ExecLockRows()
162 switch (erm->markType) in ExecLockRows()
186 test = table_tuple_lock(erm->relation, &tid, estate->es_snapshot, in ExecLockRows()
188 lockmode, erm->waitPolicy, in ExecLockRows()
252 erm->curCtid = tid; in ExecLockRows()
348 ExecRowMark *erm; in ExecInitLockRows() local
356 erm = ExecFindRowMark(estate, rc->rti, false); in ExecInitLockRows()
357 aerm = ExecBuildAuxRowMark(erm, outerPlan->targetlist); in ExecInitLockRows()
365 if (RowMarkRequiresRowShareLock(erm->markType)) in ExecInitLockRows()