Skip to content

Commit 5627776

Browse files
author
Alexander Korotkov
committed
Fix some problems on 32-bit systems.
1 parent cbf5f5f commit 5627776

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/bootstrap/bootstrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static const struct typinfo TypInfo[] = {
124124
F_OIDIN, F_OIDOUT},
125125
{"tid", TIDOID, 0, 6, false, 's', 'p', InvalidOid,
126126
F_TIDIN, F_TIDOUT},
127-
{"xid", XIDOID, 0, 8, true, 'd', 'p', InvalidOid,
127+
{"xid", XIDOID, 0, 8, FLOAT8PASSBYVAL, 'd', 'p', InvalidOid,
128128
F_XIDIN, F_XIDOUT},
129129
{"cid", CIDOID, 0, 4, true, 'i', 'p', InvalidOid,
130130
F_CIDIN, F_CIDOUT},

src/include/postgres.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ typedef Datum *DatumPtr;
533533
* Returns datum representation for a multixact identifier.
534534
*/
535535

536-
#define MultiXactIdGetDatum(X) ((Datum) (X))
536+
#define MultiXactIdGetDatum(X) (UInt64GetDatum(X))
537537

538538
/*
539539
* DatumGetCommandId

0 commit comments

Comments
 (0)