@@ -28,7 +28,7 @@ boolpg_pathman_enable_partition_router = true;
28
28
CustomScanMethods partition_router_plan_methods ;
29
29
CustomExecMethods partition_router_exec_methods ;
30
30
31
- static TupleTableSlot * ExecDeleteInternal (TupleTableSlot * slot ,
31
+ static TupleTableSlot * router_delete_tuple (TupleTableSlot * slot ,
32
32
ItemPointer tupleid ,
33
33
EPQState * epqstate ,
34
34
EState * estate );
@@ -187,23 +187,16 @@ partition_router_exec(CustomScanState *node)
187
187
else
188
188
elog (ERROR ,UPDATE_NODE_NAME " cannot handle relkind %u" ,relkind );
189
189
190
- elog (INFO ,"deleting (%d, %d) from table: %s" ,
191
- ItemPointerGetBlockNumber (& ctid ),
192
- ItemPointerGetOffsetNumber (& ctid ),
193
- get_rel_name (RelationGetRelid (current_rri -> ri_RelationDesc )));
194
-
195
190
/* Magic: replace parent's ResultRelInfo with ours */
196
191
estate -> es_result_relation_info = current_rri ;
197
192
198
193
/* Delete tuple from old partition */
199
194
Assert (ItemPointerIsValid (& ctid ));
200
- slot = ExecDeleteInternal (slot ,& ctid ,& state -> epqstate ,estate );
195
+ slot = router_delete_tuple (slot ,& ctid ,& state -> epqstate ,estate );
201
196
197
+ /* We require a tuple */
202
198
if (TupIsNull (slot ))
203
- {
204
- elog (INFO ,"oops, deleted, taking next tuple!" );
205
199
gototake_next_tuple ;
206
- }
207
200
208
201
/* Tuple will be inserted by ModifyTable */
209
202
return ExecFilterJunk (state -> junkfilter ,slot );
@@ -244,7 +237,7 @@ partition_router_explain(CustomScanState *node, List *ancestors, ExplainState *e
244
237
*/
245
238
246
239
static TupleTableSlot *
247
- ExecDeleteInternal (TupleTableSlot * slot ,
240
+ router_delete_tuple (TupleTableSlot * slot ,
248
241
ItemPointer tupleid ,
249
242
EPQState * epqstate ,
250
243
EState * estate )