PostgreSQL Source Code git master
|
#include "postgres.h"
#include <limits.h>
#include "utils/fmgrprotos.h"
#include "utils/skipsupport.h"
#include "utils/sortsupport.h"
Go to the source code of this file.
Macros | |
#define | A_LESS_THAN_B (-1) |
#define | A_GREATER_THAN_B 1 |
#define A_GREATER_THAN_B 1 |
Definition at line 69 of file nbtcompare.c.
#define A_LESS_THAN_B (-1) |
Definition at line 68 of file nbtcompare.c.
Definition at line 83 of file nbtcompare.c.
References BoolGetDatum(), and DatumGetBool().
Referenced by btboolskipsupport().
Definition at line 99 of file nbtcompare.c.
References BoolGetDatum(), and DatumGetBool().
Referenced by btboolskipsupport().
Datum btboolcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 74 of file nbtcompare.c.
References a, b, PG_GETARG_BOOL, and PG_RETURN_INT32.
Datum btboolskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 115 of file nbtcompare.c.
References bool_decrement(), bool_increment(), BoolGetDatum(), SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, SkipSupportData::low_elem, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btcharcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 526 of file nbtcompare.c.
References a, b, PG_GETARG_CHAR, and PG_RETURN_INT32.
Datum btcharskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 568 of file nbtcompare.c.
References char_decrement(), char_increment(), SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, SkipSupportData::low_elem, PG_GETARG_POINTER, PG_RETURN_VOID, and UInt8GetDatum().
Datum btint24cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 364 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT16, PG_GETARG_INT32, and PG_RETURN_INT32.
Datum btint28cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 392 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_INT32.
Datum btint2cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 128 of file nbtcompare.c.
References a, b, PG_GETARG_INT16, and PG_RETURN_INT32.
|
static |
Definition at line 137 of file nbtcompare.c.
References a, b, DatumGetInt16(), x, and y.
Referenced by btint2sortsupport().
Datum btint2skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 187 of file nbtcompare.c.
References SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, Int16GetDatum(), int2_decrement(), int2_increment(), SkipSupportData::low_elem, PG_GETARG_POINTER, PG_INT16_MAX, PG_INT16_MIN, and PG_RETURN_VOID.
Datum btint2sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 146 of file nbtcompare.c.
References btint2fastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btint42cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 378 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT16, PG_GETARG_INT32, and PG_RETURN_INT32.
Datum btint48cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 336 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_INT32.
Datum btint4cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 200 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT32, and PG_RETURN_INT32.
Datum btint4skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 255 of file nbtcompare.c.
References SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, Int32GetDatum(), int4_decrement(), int4_increment(), SkipSupportData::low_elem, PG_GETARG_POINTER, PG_INT32_MAX, PG_INT32_MIN, and PG_RETURN_VOID.
Datum btint4sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 214 of file nbtcompare.c.
References SortSupportData::comparator, PG_GETARG_POINTER, PG_RETURN_VOID, and ssup_datum_int32_cmp().
Datum btint82cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 406 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_INT32.
Datum btint84cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 350 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_INT32.
Datum btint8cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 268 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT64, and PG_RETURN_INT32.
Datum btint8skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 323 of file nbtcompare.c.
References SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, Int64GetDatum(), int8_decrement(), int8_increment(), SkipSupportData::low_elem, PG_GETARG_POINTER, PG_INT64_MAX, PG_INT64_MIN, and PG_RETURN_VOID.
Datum btint8sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 282 of file nbtcompare.c.
References SortSupportData::comparator, PG_GETARG_POINTER, PG_RETURN_VOID, and ssup_datum_signed_cmp().
Datum btoidcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 420 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_OID, and PG_RETURN_INT32.
|
static |
Definition at line 434 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, DatumGetObjectId(), x, and y.
Referenced by btoidsortsupport().
Datum btoidskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 489 of file nbtcompare.c.
References SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, InvalidOid, SkipSupportData::low_elem, ObjectIdGetDatum(), oid_decrement(), oid_increment(), OID_MAX, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btoidsortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 448 of file nbtcompare.c.
References btoidfastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btoidvectorcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 502 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, i, PG_GETARG_POINTER, and PG_RETURN_INT32.
Referenced by oidvectoreq(), oidvectorge(), oidvectorgt(), oidvectorle(), oidvectorlt(), and oidvectorne().
Definition at line 536 of file nbtcompare.c.
References CharGetDatum(), and DatumGetUInt8().
Referenced by btcharskipsupport().
Definition at line 552 of file nbtcompare.c.
References CharGetDatum(), and DatumGetUInt8().
Referenced by btcharskipsupport().
Definition at line 155 of file nbtcompare.c.
References DatumGetInt16(), Int16GetDatum(), and PG_INT16_MIN.
Referenced by btint2skipsupport().
Definition at line 171 of file nbtcompare.c.
References DatumGetInt16(), Int16GetDatum(), and PG_INT16_MAX.
Referenced by btint2skipsupport().
Definition at line 223 of file nbtcompare.c.
References DatumGetInt32(), Int32GetDatum(), and PG_INT32_MIN.
Referenced by btint4skipsupport().
Definition at line 239 of file nbtcompare.c.
References DatumGetInt32(), Int32GetDatum(), and PG_INT32_MAX.
Referenced by btint4skipsupport().
Definition at line 291 of file nbtcompare.c.
References DatumGetInt64(), Int64GetDatum(), and PG_INT64_MIN.
Referenced by btint8skipsupport().
Definition at line 307 of file nbtcompare.c.
References DatumGetInt64(), Int64GetDatum(), and PG_INT64_MAX.
Referenced by btint8skipsupport().
Definition at line 457 of file nbtcompare.c.
References DatumGetObjectId(), InvalidOid, and ObjectIdGetDatum().
Referenced by btoidskipsupport().
Definition at line 473 of file nbtcompare.c.
References DatumGetObjectId(), ObjectIdGetDatum(), and OID_MAX.
Referenced by btoidskipsupport().