Skip to content

Commit

Permalink
don't fetch ybctid unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
arpang committed Jan 11, 2025
1 parent 4d09987 commit d5440bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/postgres/src/backend/access/yb_access/yb_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2691,9 +2691,6 @@ ybcBuildRequiredAttrs(YbScanDesc yb_scan, YbScanPlan scan_plan,
if (index && !index->rd_index->indisprimary && (yb_index_checker || !is_index_only_scan))
ybcAttnumBmsAdd(&result, YBIdxBaseTupleIdAttributeNumber);

if (yb_index_checker && !ybcAttnumBmsExists(&result, YBTupleIdAttributeNumber))
ybcAttnumBmsAdd(&result, YBTupleIdAttributeNumber);

return result;
}

Expand Down

0 comments on commit d5440bc

Please sign in to comment.