Skip to content

Commit cf28b4e

Browse files
committed
revisit some TODOs
1 parent 26e2cc3 commit cf28b4e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Diff for: src/hooks.c

-4
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,6 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
484484

485485
parent_rowmark = get_plan_rowmark(root->rowMarks, rti);
486486

487-
/*
488-
* WARNING: 'prel' might become invalid after append_child_relation().
489-
*/
490-
491487
/* Add parent if asked to */
492488
if (prel->enable_parent)
493489
append_child_relation(root, parent_rel, parent_rowmark,

Diff for: src/init.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ pathman_config_contains_relation(Oid relid, Datum *values, bool *isnull,
665665

666666
/* Set ItemPointer if necessary */
667667
if (iptr)
668-
*iptr = htup->t_self;
668+
*iptr = htup->t_self; /* FIXME: callers should lock table beforehand */
669669
}
670670

671671
/* Clean resources */

0 commit comments

Comments
 (0)