PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
uuid.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pg_uuid_t
 

Macros

#define UUID_LEN   16
 
#define PG_RETURN_UUID_P(X)   return UUIDPGetDatum(X)
 
#define PG_GETARG_UUID_P(X)   DatumGetUUIDP(PG_GETARG_DATUM(X))
 

Typedefs

typedef struct pg_uuid_t pg_uuid_t
 

Functions

static Datum UUIDPGetDatum (const pg_uuid_t *X)
 
static pg_uuid_tDatumGetUUIDP (Datum X)
 

Macro Definition Documentation

◆ PG_GETARG_UUID_P

#define PG_GETARG_UUID_P (   X)    DatumGetUUIDP(PG_GETARG_DATUM(X))

Definition at line 40 of file uuid.h.

◆ PG_RETURN_UUID_P

#define PG_RETURN_UUID_P (   X)    return UUIDPGetDatum(X)

Definition at line 32 of file uuid.h.

◆ UUID_LEN

#define UUID_LEN   16

Definition at line 18 of file uuid.h.

Typedef Documentation

◆ pg_uuid_t

typedef struct pg_uuid_t pg_uuid_t

Function Documentation

◆ DatumGetUUIDP()

static pg_uuid_t * DatumGetUUIDP ( Datum  X)
inlinestatic

Definition at line 35 of file uuid.h.

36{
37 return (pg_uuid_t *) DatumGetPointer(X);
38}
static Pointer DatumGetPointer(Datum X)
Definition: postgres.h:312
Definition: uuid.h:21

References DatumGetPointer().

Referenced by brin_minmax_multi_distance_uuid(), gbt_uuid_compress(), uuid_abbrev_convert(), and uuid_fast_cmp().

◆ UUIDPGetDatum()

static Datum UUIDPGetDatum ( const pg_uuid_t X)
inlinestatic

Definition at line 27 of file uuid.h.

28{
29 return PointerGetDatum(X);
30}
static Datum PointerGetDatum(const void *X)
Definition: postgres.h:322

References PointerGetDatum().

Referenced by leftmostvalue_uuid().