datum_t gbt_cash_union(PG_FUNC_ARGS) { struct gist_entry_vector *entryvec = (struct gist_entry_vector *) ARG_POINTER(0); void *out = palloc(sizeof(cashKEY)); *(int *) ARG_POINTER(1) = sizeof(cashKEY); RET_POINTER(gbt_num_union((void *) out, entryvec, &tinfo)); }
Datum gbt_oid_union(PG_FUNCTION_ARGS) { GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0); void *out = palloc(sizeof(oidKEY)); *(int *) PG_GETARG_POINTER(1) = sizeof(oidKEY); PG_RETURN_POINTER(gbt_num_union((void *) out, entryvec, &tinfo)); }
Datum gbt_int8_union(MDB_FUNCTION_ARGS) { GistEntryVector *entryvec = (GistEntryVector *) MDB_GETARG_POINTER(0); void *out = palloc(sizeof(int64KEY)); *(int *) MDB_GETARG_POINTER(1) = sizeof(int64KEY); MDB_RETURN_POINTER(gbt_num_union((void *) out, entryvec, &tinfo)); }