From f9c0229c3d4e13e2dac626ee92b5698a42a96ce7 Mon Sep 17 00:00:00 2001 From: Amul Sul Date: Mon, 30 Oct 2017 15:34:10 +0530 Subject: [PATCH 2/5] Add PG_GETARG_UINT64 macro --- src/include/fmgr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/fmgr.h b/src/include/fmgr.h index a68ec91c68..96f20d3168 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -245,6 +245,7 @@ extern struct varlena *pg_detoast_datum_packed(struct varlena *datum); #define PG_GETARG_FLOAT4(n) DatumGetFloat4(PG_GETARG_DATUM(n)) #define PG_GETARG_FLOAT8(n) DatumGetFloat8(PG_GETARG_DATUM(n)) #define PG_GETARG_INT64(n) DatumGetInt64(PG_GETARG_DATUM(n)) +#define PG_GETARG_UINT64(n) DatumGetUInt64(PG_GETARG_DATUM(n)) /* use this if you want the raw, possibly-toasted input datum: */ #define PG_GETARG_RAW_VARLENA_P(n) ((struct varlena *) PG_GETARG_POINTER(n)) /* use this if you want the input datum de-toasted: */ -- 2.14.1