Update copyright for 2022
[pgsql.git] / src / include / utils / xid8.h
blobb702fc1a910a79e1ea9fb75d3b23bb4d723b756f
1 /*-------------------------------------------------------------------------
3 * xid8.h
4 * Header file for the "xid8" ADT.
6 * Copyright (c) 2020-2022, PostgreSQL Global Development Group
8 * src/include/utils/xid8.h
10 *-------------------------------------------------------------------------
12 #ifndef XID8_H
13 #define XID8_H
15 #include "access/transam.h"
17 #define DatumGetFullTransactionId(X) (FullTransactionIdFromU64(DatumGetUInt64(X)))
18 #define FullTransactionIdGetDatum(X) (UInt64GetDatum(U64FromFullTransactionId(X)))
19 #define PG_GETARG_FULLTRANSACTIONID(X) DatumGetFullTransactionId(PG_GETARG_DATUM(X))
20 #define PG_RETURN_FULLTRANSACTIONID(X) return FullTransactionIdGetDatum(X)
22 #endif /* XID8_H */