Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3399f3

Browse files
committed
WIP add comments here and there
1 parent42e2c10 commitc3399f3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎src/partition_router.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ partition_router_exec(CustomScanState *node)
223223
/* Magic: replace parent's ResultRelInfo with ours */
224224
estate->es_result_relation_info=state->current_rri;
225225

226-
/*Delete tuple from old partition */
226+
/*Lock or delete tuple from old partition */
227227
Assert(ItemPointerIsValid(&ctid));
228228
slot=router_lock_or_delete_tuple(state,slot,&ctid,
229229
&deleted,estate);
230230

231-
/* We require a tuple */
231+
/* We require a tuple(previous one has vanished)*/
232232
if (TupIsNull(slot))
233233
gototake_next_tuple;
234234

@@ -265,12 +265,15 @@ partition_router_rescan(CustomScanState *node)
265265
}
266266

267267
void
268-
partition_router_explain(CustomScanState*node,List*ancestors,ExplainState*es)
268+
partition_router_explain(CustomScanState*node,
269+
List*ancestors,
270+
ExplainState*es)
269271
{
270272
/* Nothing to do here now */
271273
}
272274

273275

276+
/* Smart wrapper over ModifyTable */
274277
staticTupleTableSlot*
275278
router_run_modify_table(PlanState*state)
276279
{
@@ -309,6 +312,7 @@ router_run_modify_table(PlanState *state)
309312
returnslot;
310313
}
311314

315+
/* Return tuple OR stash it and change ModifyTable's operation */
312316
staticTupleTableSlot*
313317
router_set_slot(PartitionRouterState*state,
314318
TupleTableSlot*slot,
@@ -337,6 +341,7 @@ router_set_slot(PartitionRouterState *state,
337341
returnNULL;
338342
}
339343

344+
/* Fetch next tuple (either fresh or stashed) */
340345
staticTupleTableSlot*
341346
router_get_slot(PartitionRouterState*state,
342347
bool*should_process)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp