Skip to content

Commit cbf5f5f

Browse files
author
Alexander Korotkov
committed
Make TransactionId use FLOAT8PASSBYVAL.
1 parent 427554a commit cbf5f5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/include/catalog/pg_type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ DATA(insert OID = 27 ( tid PGNSP PGUID 6 f b U f t \054 0 0 1010 tidin tido
331331
DESCR("(block, offset), physical location of tuple");
332332
#define TIDOID 27
333333

334-
DATA(insert OID = 28 ( xid PGNSP PGUID 8 t b U f t \054 0 0 1011 xidin xidout xidrecv xidsend - - - d p f 0 -1 0 0 _null_ _null_ _null_ ));
334+
DATA(insert OID = 28 ( xid PGNSP PGUID 8 FLOAT8PASSBYVAL b U f t \054 0 0 1011 xidin xidout xidrecv xidsend - - - d p f 0 -1 0 0 _null_ _null_ _null_ ));
335335
DESCR("transaction id");
336336
#define XIDOID 28
337337

src/include/postgres.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,14 @@ typedef Datum *DatumPtr;
519519
* Returns transaction identifier value of a datum.
520520
*/
521521

522-
#define DatumGetTransactionId(X) ((TransactionId) (X))
522+
#define DatumGetTransactionId(X) (DatumGetUInt64(X))
523523

524524
/*
525525
* TransactionIdGetDatum
526526
* Returns datum representation for a transaction identifier.
527527
*/
528528

529-
#define TransactionIdGetDatum(X) ((Datum) (X))
529+
#define TransactionIdGetDatum(X) (UInt64GetDatum(X))
530530

531531
/*
532532
* MultiXactIdGetDatum

0 commit comments

Comments
 (0)