Skip to content

Commit

Permalink
Port RUM to current master
Browse files Browse the repository at this point in the history
  • Loading branch information
za-arthur committed Oct 9, 2018
1 parent 7de75e1 commit f621e8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rumsort.c
Original file line number Diff line number Diff line change
Expand Up @@ -3517,11 +3517,19 @@ comparetup_cluster(const SortTuple *a, const SortTuple *b,

ecxt_scantuple = GetPerTupleExprContext(state->estate)->ecxt_scantuple;

#if PG_VERSION_NUM >= 120000
ExecStoreHeapTuple(ltup, ecxt_scantuple, false);
#else
ExecStoreTuple(ltup, ecxt_scantuple, InvalidBuffer, false);
#endif
FormIndexDatum(state->indexInfo, ecxt_scantuple, state->estate,
l_index_values, l_index_isnull);

#if PG_VERSION_NUM >= 120000
ExecStoreHeapTuple(rtup, ecxt_scantuple, false);
#else
ExecStoreTuple(rtup, ecxt_scantuple, InvalidBuffer, false);
#endif
FormIndexDatum(state->indexInfo, ecxt_scantuple, state->estate,
r_index_values, r_index_isnull);

Expand Down

0 comments on commit f621e8c

Please sign in to comment.