Skip to content

Commit 51aa9d2

Browse files
committed
resolve conflicts
2 parents 087abe7 + 91005d0 commit 51aa9d2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/include/compat/pg_compat.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,18 @@ extern AttrNumber *convert_tuples_by_name_map(TupleDesc indesc,
826826
#endif
827827

828828

829+
/*
830+
* HeapTupleGetXmin()
831+
* Vanilla PostgreSQL has HeaptTupleHeaderGetXmin, but for 64-bit xid
832+
* we need access to entire tuple, not just its header.
833+
*/
834+
#ifdef XID_IS_64BIT
835+
# define HeapTupleGetXminCompat(htup) HeapTupleGetXmin(htup)
836+
#else
837+
# define HeapTupleGetXminCompat(htup) HeapTupleHeaderGetXmin((htup)->t_data)
838+
#endif
839+
840+
829841
/*
830842
* -------------
831843
* Common code

src/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ pathman_config_contains_relation(Oid relid, Datum *values, bool *isnull,
657657

658658
/* Set xmin if necessary */
659659
if (xmin)
660-
*xmin = HeapTupleHeaderGetXmin(htup->t_data);
660+
*xmin = HeapTupleGetXminCompat(htup);
661661

662662
/* Set ItemPointer if necessary */
663663
if (iptr)

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