8000 Issue #61: Invalidate scan->xs_heaptid by hand. · postgrespro/rum@ee68be1 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Issue #61: Invalidate scan->xs_heaptid by hand.
Browse files Browse the repository at this point in the history
Earlier it was done by invalidating scan->xs_ctup by RelationGetIndexScan().
  • Loading branch information
za-arthur committed Jul 2, 2019
1 parent 32625a7 commit ee68be1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rumscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ rumbeginscan(Relation rel, int nkeys, int norderbys)

initRumState(&so->rumstate, scan->indexRelation);

#if PG_VERSION_NUM >= 120000
/*
* Starting from PG 12 we need to invalidate result's item pointer. Earlier
* it was done by invalidating scan->xs_ctup by RelationGetIndexScan().
*/
ItemPointerSetInvalid(&scan->xs_heaptid);
#endif
scan->opaque = so;

return scan;
Expand Down

0 comments on commit ee68be1

Please sign in to comment.
0