#include "catalog/pg_type_d.h"
Go to the source code of this file.
|
#define | att_isnull(ATT, BITS) (!((BITS)[(ATT) >> 3] & (1 << ((ATT) & 0x07)))) |
|
#define | fetchatt(A, T) fetch_att(T, (A)->attbyval, (A)->attlen) |
|
#define | fetch_att(T, attbyval, attlen) |
|
#define | att_align_datum(cur_offset, attalign, attlen, attdatum) |
|
#define | att_align_pointer(cur_offset, attalign, attlen, attptr) |
|
#define | att_align_nominal(cur_offset, attalign) |
|
#define | att_addlength_datum(cur_offset, attlen, attdatum) att_addlength_pointer(cur_offset, attlen, DatumGetPointer(attdatum)) |
|
#define | att_addlength_pointer(cur_offset, attlen, attptr) |
|
#define | store_att_byval(T, newdatum, attlen) |
|
◆ att_addlength_datum
◆ att_addlength_pointer
#define att_addlength_pointer |
( |
|
cur_offset, |
|
|
|
attlen, |
|
|
|
attptr |
|
) |
| |
Value:( \
( \
) \
( \
) \
: \
( \
(cur_offset) + (strlen((char *) (attptr)) + 1) \
)) \
)
#define AssertMacro(condition)
Definition at line 176 of file tupmacs.h.
◆ att_align_datum
Value:( \
(uintptr_t) (cur_offset) : \
att_align_nominal(cur_offset,
attalign) \
)
#define VARATT_IS_SHORT(PTR)
#define DatumGetPointer(X)
Definition at line 105 of file tupmacs.h.
◆ att_align_nominal
#define att_align_nominal |
( |
|
cur_offset, |
|
|
|
attalign |
|
) |
| |
Value:( \
(((
attalign) == TYPALIGN_CHAR) ? (uintptr_t) (cur_offset) : \
( \
))) \
)
Definition at line 148 of file tupmacs.h.
◆ att_align_pointer
Value:( \
(uintptr_t) (cur_offset) : \
)
#define VARATT_NOT_PAD_BYTE(PTR)
#define att_align_nominal(cur_offset, attalign)
Definition at line 126 of file tupmacs.h.
◆ att_isnull
#define att_isnull |
( |
|
ATT, |
|
|
|
BITS |
|
) |
| (!((BITS)[(ATT) >> 3] & (1 << ((ATT) & 0x07)))) |
◆ fetch_att
Value:( \
( \
Int32GetDatum(*((
int32 *)(
T))) \
: \
( \
: \
( \
) \
) \
) \
: \
PointerGetDatum((
char *) (
T)) \
)
static const uint32 T[65]
Definition at line 75 of file tupmacs.h.
◆ fetchatt
◆ store_att_byval
#define store_att_byval |
( |
|
T, |
|
|
|
newdatum, |
|
|
|
attlen |
|
) |
| |
Value: do { \
{ \
case sizeof(char): \
break; \
break; \
break; \
default: \
elog(
ERROR,
"unsupported byval length: %d", \
break; \
} \
} while (0)
Definition at line 226 of file tupmacs.h.