Skip to content

Commit ee68be1

Browse files
committed
Issue #61: Invalidate scan->xs_heaptid by hand.
Earlier it was done by invalidating scan->xs_ctup by RelationGetIndexScan().
1 parent 32625a7 commit ee68be1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rumscan.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ rumbeginscan(Relation rel, int nkeys, int norderbys)
4141

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

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

4653
return scan;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy