PostgreSQL Source Code  git master
cash.h File Reference
#include "fmgr.h"
Include dependency graph for cash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define PG_GETARG_CASH(n)   DatumGetCash(PG_GETARG_DATUM(n))
#define PG_RETURN_CASH(x)   return CashGetDatum(x)


typedef int64 Cash


static Cash DatumGetCash (Datum X)
static Datum CashGetDatum (Cash X)

Macro Definition Documentation


#define PG_GETARG_CASH (   n)    DatumGetCash(PG_GETARG_DATUM(n))

Definition at line 32 of file cash.h.


#define PG_RETURN_CASH (   x)    return CashGetDatum(x)

Definition at line 33 of file cash.h.

Typedef Documentation

◆ Cash

typedef int64 Cash

Definition at line 17 of file cash.h.

Function Documentation

◆ CashGetDatum()

static Datum CashGetDatum ( Cash  X)

Definition at line 27 of file cash.h.

28 {
29  return Int64GetDatum(X);
30 }
Datum Int64GetDatum(int64 X)
Definition: fmgr.c:1807

References Int64GetDatum().

Referenced by gbt_num_fetch().

◆ DatumGetCash()

static Cash DatumGetCash ( Datum  X)

Definition at line 21 of file cash.h.

22 {
23  return DatumGetInt64(X);
24 }
static int64 DatumGetInt64(Datum X)
Definition: postgres.h:385

References DatumGetInt64().

Referenced by gbt_num_compress().