Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8d5a5a

Browse files
committed
Postgres Pro Enterprise compatibility fixes by Victor Wagner (@vbwagner)
1 parentc871c0b commitf8d5a5a

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
@@ -626,6 +626,18 @@ extern AttrNumber *convert_tuples_by_name_map(TupleDesc indesc,
626626
#endif
627627

628628

629+
/*
630+
* HeapTupleGetXmin()
631+
* Vanilla PostgreSQL has HeaptTupleHeaderGetXmin, but for 64-bit xid
632+
* we need access to entire tuple, not just its header.
633+
*/
634+
#ifdefXID_IS_64BIT
635+
# defineHeapTupleGetXminCompat(htup) HeapTupleGetXmin(htup)
636+
#else
637+
# defineHeapTupleGetXminCompat(htup) HeapTupleHeaderGetXmin((htup)->t_data)
638+
#endif
639+
640+
629641
/*
630642
* -------------
631643
* Common code

‎src/init.c

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

676676
/* Set xmin if necessary */
677677
if (xmin)
678-
*xmin=HeapTupleHeaderGetXmin(htup->t_data);
678+
*xmin=HeapTupleGetXminCompat(htup);
679679

680680
/* Set ItemPointer if necessary */
681681
if (iptr)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp