From f621e8c8761bd836ff60335f3914926f3661cd8e Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Tue, 9 Oct 2018 11:35:37 +0300 Subject: [PATCH] Port RUM to current master --- src/rumsort.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rumsort.c b/src/rumsort.c index b975f4b3e3..94da17252e 100644 --- a/src/rumsort.c +++ b/src/rumsort.c @@ -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);