|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <limits.h>#include "utils/builtins.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 70 of file nbtcompare.c.
| #define A_LESS_THAN_B (-1) |
Definition at line 69 of file nbtcompare.c.
Definition at line 84 of file nbtcompare.c.
References BoolGetDatum(), DatumGetBool(), and fb().
Referenced by btboolskipsupport().
Definition at line 100 of file nbtcompare.c.
References BoolGetDatum(), DatumGetBool(), and fb().
Referenced by btboolskipsupport().
| Datum btboolcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 75 of file nbtcompare.c.
References a, b, PG_GETARG_BOOL, and PG_RETURN_INT32.
| Datum btboolskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 116 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 612 of file nbtcompare.c.
References a, b, PG_GETARG_CHAR, and PG_RETURN_INT32.
| Datum btcharskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 654 of file nbtcompare.c.
References char_decrement(), char_increment(), SkipSupportData::decrement, fb(), SkipSupportData::high_elem, SkipSupportData::increment, SkipSupportData::low_elem, PG_GETARG_POINTER, PG_RETURN_VOID, and UInt8GetDatum().
| Datum btint24cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 365 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 393 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 129 of file nbtcompare.c.
References a, b, PG_GETARG_INT16, and PG_RETURN_INT32.
|
static |
Definition at line 138 of file nbtcompare.c.
References a, b, DatumGetInt16(), fb(), x, and y.
Referenced by btint2sortsupport().
| Datum btint2skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 188 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 147 of file nbtcompare.c.
References btint2fastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
| Datum btint42cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 379 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 337 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 201 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 256 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 215 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 407 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 351 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 269 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 324 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 283 of file nbtcompare.c.
References SortSupportData::comparator, PG_GETARG_POINTER, PG_RETURN_VOID, and ssup_datum_signed_cmp().
| Datum btoid8cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 503 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_OID8, and PG_RETURN_INT32.
|
static |
Definition at line 517 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, DatumGetObjectId8(), x, and y.
Referenced by btoid8sortsupport().
| Datum btoid8skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 572 of file nbtcompare.c.
References SkipSupportData::decrement, SkipSupportData::high_elem, SkipSupportData::increment, InvalidOid8, SkipSupportData::low_elem, ObjectId8GetDatum(), oid8_decrement(), oid8_increment(), OID8_MAX, PG_GETARG_POINTER, and PG_RETURN_VOID.
| Datum btoid8sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 531 of file nbtcompare.c.
References btoid8fastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
| Datum btoidcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 421 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 435 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 490 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 449 of file nbtcompare.c.
References btoidfastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
| Datum btoidvectorcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 585 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, check_valid_oidvector(), i, PG_GETARG_POINTER, and PG_RETURN_INT32.
Referenced by oidvectoreq(), oidvectorge(), oidvectorgt(), oidvectorle(), oidvectorlt(), and oidvectorne().
Definition at line 622 of file nbtcompare.c.
References CharGetDatum(), DatumGetUInt8(), and fb().
Referenced by btcharskipsupport().
Definition at line 638 of file nbtcompare.c.
References CharGetDatum(), DatumGetUInt8(), and fb().
Referenced by btcharskipsupport().
Definition at line 156 of file nbtcompare.c.
References DatumGetInt16(), fb(), Int16GetDatum(), and PG_INT16_MIN.
Referenced by btint2skipsupport().
Definition at line 172 of file nbtcompare.c.
References DatumGetInt16(), fb(), Int16GetDatum(), and PG_INT16_MAX.
Referenced by btint2skipsupport().
Definition at line 224 of file nbtcompare.c.
References DatumGetInt32(), fb(), Int32GetDatum(), and PG_INT32_MIN.
Referenced by btint4skipsupport().
Definition at line 240 of file nbtcompare.c.
References DatumGetInt32(), fb(), Int32GetDatum(), and PG_INT32_MAX.
Referenced by btint4skipsupport().
Definition at line 292 of file nbtcompare.c.
References DatumGetInt64(), fb(), Int64GetDatum(), and PG_INT64_MIN.
Referenced by btint8skipsupport().
Definition at line 308 of file nbtcompare.c.
References DatumGetInt64(), fb(), Int64GetDatum(), and PG_INT64_MAX.
Referenced by btint8skipsupport().
Definition at line 540 of file nbtcompare.c.
References DatumGetObjectId8(), fb(), InvalidOid8, and ObjectId8GetDatum().
Referenced by btoid8skipsupport().
Definition at line 556 of file nbtcompare.c.
References DatumGetObjectId8(), fb(), ObjectId8GetDatum(), and OID8_MAX.
Referenced by btoid8skipsupport().
Definition at line 458 of file nbtcompare.c.
References DatumGetObjectId(), fb(), InvalidOid, and ObjectIdGetDatum().
Referenced by btoidskipsupport().
Definition at line 474 of file nbtcompare.c.
References DatumGetObjectId(), fb(), ObjectIdGetDatum(), and OID_MAX.
Referenced by btoidskipsupport().