Skip to content

Commit aa9dd8f

Browse files
committed
Add comment in get_part_expression_info
1 parent fb85322 commit aa9dd8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/partition_creation.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,7 @@ get_part_expression_info(Oid relid, const char *expr_string,
18401840
/* Plan this query. We reuse 'expr_node' here */
18411841
plan = pg_plan_query(query, 0, NULL);
18421842
if (IsA(plan->planTree, IndexOnlyScan))
1843+
/* we get IndexOnlyScan in targetlist if expression is primary key */
18431844
target_entry = linitial(((IndexOnlyScan *) plan->planTree)->indextlist);
18441845
else
18451846
target_entry = linitial(plan->planTree->targetlist);

0 commit comments

Comments
 (0)