2
0

xid8.h 720 B

12345678910111213141516171819202122
  1. /*-------------------------------------------------------------------------
  2. *
  3. * xid8.h
  4. * Header file for the "xid8" ADT.
  5. *
  6. * Copyright (c) 2020-2022, PostgreSQL Global Development Group
  7. *
  8. * src/include/utils/xid8.h
  9. *
  10. *-------------------------------------------------------------------------
  11. */
  12. #ifndef XID8_H
  13. #define XID8_H
  14. #include "access/transam.h"
  15. #define DatumGetFullTransactionId(X) (FullTransactionIdFromU64(DatumGetUInt64(X)))
  16. #define FullTransactionIdGetDatum(X) (UInt64GetDatum(U64FromFullTransactionId(X)))
  17. #define PG_GETARG_FULLTRANSACTIONID(X) DatumGetFullTransactionId(PG_GETARG_DATUM(X))
  18. #define PG_RETURN_FULLTRANSACTIONID(X) return FullTransactionIdGetDatum(X)
  19. #endif /* XID8_H */