MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecReScanSequence

Function ExecReScanSequence

src/backend/executor/nodeSequence.c:136–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void
137ExecReScanSequence(SequenceState *node)
138{
139 for (int i = 0; i < node->numSubplans; i++)
140 {
141 PlanState *subnode = node->subplans[i];
142
143 /*
144 * ExecReScan doesn't know about my subplans, so I have to do
145 * changed-parameter signaling myself.
146 */
147 if (node->ps.chgParam != NULL)
148 {
149 UpdateChangedParamSet(subnode, node->ps.chgParam);
150 }
151
152 /*
153 * Always rescan the inputs immediately, to ensure we can pass down
154 * any outer tuple that might be used in index quals.
155 */
156 ExecReScan(subnode);
157 }
158
159 node->initState = true;
160}
161
162void
163ExecSquelchSequence(SequenceState *node, bool force)

Callers 1

ExecReScanFunction · 0.85

Calls 2

UpdateChangedParamSetFunction · 0.85
ExecReScanFunction · 0.85

Tested by

no test coverage detected