|
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 575 of file nbtcompare.c.
References a, b, PG_GETARG_CHAR, and PG_RETURN_INT32.
| Datum btcharskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 617 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 356 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 384 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.
| Datum btint2skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 179 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 138 of file nbtcompare.c.
References SortSupportData::comparator, PG_GETARG_POINTER, PG_RETURN_VOID, and ssup_datum_int32_cmp().
| Datum btint42cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 370 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 328 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 192 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 247 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 206 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 398 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 342 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 260 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 315 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 274 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 480 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_OID8, and PG_RETURN_INT32.
| Datum btoid8skipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 535 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 494 of file nbtcompare.c.
References SortSupportData::comparator, PG_GETARG_POINTER, PG_RETURN_VOID, and ssup_datum_unsigned_cmp().
| Datum btoidcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 412 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_OID, and PG_RETURN_INT32.
| Datum btoidskipsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 467 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 426 of file nbtcompare.c.
References SortSupportData::comparator, PG_GETARG_POINTER, PG_RETURN_VOID, and ssup_datum_unsigned_cmp().
| Datum btoidvectorcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 548 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 585 of file nbtcompare.c.
References CharGetDatum(), DatumGetUInt8(), and fb().
Referenced by btcharskipsupport().
Definition at line 601 of file nbtcompare.c.
References CharGetDatum(), DatumGetUInt8(), and fb().
Referenced by btcharskipsupport().
Definition at line 147 of file nbtcompare.c.
References DatumGetInt16(), fb(), Int16GetDatum(), and PG_INT16_MIN.
Referenced by btint2skipsupport().
Definition at line 163 of file nbtcompare.c.
References DatumGetInt16(), fb(), Int16GetDatum(), and PG_INT16_MAX.
Referenced by btint2skipsupport().
Definition at line 215 of file nbtcompare.c.
References DatumGetInt32(), fb(), Int32GetDatum(), and PG_INT32_MIN.
Referenced by btint4skipsupport().
Definition at line 231 of file nbtcompare.c.
References DatumGetInt32(), fb(), Int32GetDatum(), and PG_INT32_MAX.
Referenced by btint4skipsupport().
Definition at line 283 of file nbtcompare.c.
References DatumGetInt64(), fb(), Int64GetDatum(), and PG_INT64_MIN.
Referenced by btint8skipsupport().
Definition at line 299 of file nbtcompare.c.
References DatumGetInt64(), fb(), Int64GetDatum(), and PG_INT64_MAX.
Referenced by btint8skipsupport().
Definition at line 503 of file nbtcompare.c.
References DatumGetObjectId8(), fb(), InvalidOid8, and ObjectId8GetDatum().
Referenced by btoid8skipsupport().
Definition at line 519 of file nbtcompare.c.
References DatumGetObjectId8(), fb(), ObjectId8GetDatum(), and OID8_MAX.
Referenced by btoid8skipsupport().
Definition at line 435 of file nbtcompare.c.
References DatumGetObjectId(), fb(), InvalidOid, and ObjectIdGetDatum().
Referenced by btoidskipsupport().
Definition at line 451 of file nbtcompare.c.
References DatumGetObjectId(), fb(), ObjectIdGetDatum(), and OID_MAX.
Referenced by btoidskipsupport().