Skip to content

Commit

Permalink
Fix handling of oldtuple to match PG17 upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
kpan2034 committed Oct 21, 2024
1 parent 3c707bf commit 09ff3e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/import/ht_hypertable_modify.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ lmerge_matched:;
* visible to our MVCC snapshot.
*/

#if PG17_GE
if (oldtuple != NULL)
ExecForceStoreHeapTuple(oldtuple, resultRelInfo->ri_oldTupleSlot,

Check warning on line 465 in src/import/ht_hypertable_modify.c

View check run for this annotation

Codecov / codecov/patch

src/import/ht_hypertable_modify.c#L465

Added line #L465 was not covered by tests
false);
else
#endif
if (!table_tuple_fetch_row_version(resultRelInfo->ri_RelationDesc,
tupleid,
SnapshotAny,
Expand Down

0 comments on commit 09ff3e3

Please sign in to comment.