示例#1
0
Datum
gbt_int8_same(PG_FUNCTION_ARGS)
{
	int64KEY   *b1 = (int64KEY *) PG_GETARG_POINTER(0);
	int64KEY   *b2 = (int64KEY *) PG_GETARG_POINTER(1);
	bool	   *result = (bool *) PG_GETARG_POINTER(2);

	*result = gbt_num_same((void *) b1, (void *) b2, &tinfo, fcinfo->flinfo);
	PG_RETURN_POINTER(result);
}
示例#2
0
Datum
gbt_oid_same(PG_FUNCTION_ARGS)
{
	oidKEY	   *b1 = (oidKEY *) PG_GETARG_POINTER(0);
	oidKEY	   *b2 = (oidKEY *) PG_GETARG_POINTER(1);
	bool	   *result = (bool *) PG_GETARG_POINTER(2);

	*result = gbt_num_same((void *) b1, (void *) b2, &tinfo);
	PG_RETURN_POINTER(result);
}
示例#3
0
datum_t
gbt_cash_same(PG_FUNC_ARGS)
{
	cashKEY    *b1 = (cashKEY *) ARG_POINTER(0);
	cashKEY    *b2 = (cashKEY *) ARG_POINTER(1);
	bool	   *result = (bool *) ARG_POINTER(2);

	*result = gbt_num_same((void *) b1, (void *) b2, &tinfo);
	RET_POINTER(result);
}