PostgreSQL Source Code
git master
xid8.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* xid8.h
4
* Header file for the "xid8" ADT.
5
*
6
* Copyright (c) 2020-2024, PostgreSQL Global Development Group
7
*
8
* src/include/utils/xid8.h
9
*
10
*-------------------------------------------------------------------------
11
*/
12
#ifndef XID8_H
13
#define XID8_H
14
15
#include "
access/transam.h
"
16
17
static
inline
FullTransactionId
18
DatumGetFullTransactionId
(
Datum
X)
19
{
20
return
FullTransactionIdFromU64
(
DatumGetUInt64
(X));
21
}
22
23
static
inline
Datum
24
FullTransactionIdGetDatum
(
FullTransactionId
X)
25
{
26
return
UInt64GetDatum
(
U64FromFullTransactionId
(X));
27
}
28
29
#define PG_GETARG_FULLTRANSACTIONID(X) DatumGetFullTransactionId(PG_GETARG_DATUM(X))
30
#define PG_RETURN_FULLTRANSACTIONID(X) return FullTransactionIdGetDatum(X)
31
32
#endif
/* XID8_H */
DatumGetUInt64
static uint64 DatumGetUInt64(Datum X)
Definition:
postgres.h:419
Datum
uintptr_t Datum
Definition:
postgres.h:64
UInt64GetDatum
static Datum UInt64GetDatum(uint64 X)
Definition:
postgres.h:436
FullTransactionId
Definition:
transam.h:66
transam.h
U64FromFullTransactionId
#define U64FromFullTransactionId(x)
Definition:
transam.h:49
FullTransactionIdFromU64
static FullTransactionId FullTransactionIdFromU64(uint64 value)
Definition:
transam.h:81
DatumGetFullTransactionId
static FullTransactionId DatumGetFullTransactionId(Datum X)
Definition:
xid8.h:18
FullTransactionIdGetDatum
static Datum FullTransactionIdGetDatum(FullTransactionId X)
Definition:
xid8.h:24
src
include
utils
xid8.h
Generated on Wed Oct 9 2024 18:13:27 for PostgreSQL Source Code by
1.9.1