PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <limits.h>
#include "utils/fmgrprotos.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 |
Functions | |
Datum | btboolcmp (PG_FUNCTION_ARGS) |
Datum | btint2cmp (PG_FUNCTION_ARGS) |
static int | btint2fastcmp (Datum x, Datum y, SortSupport ssup) |
Datum | btint2sortsupport (PG_FUNCTION_ARGS) |
Datum | btint4cmp (PG_FUNCTION_ARGS) |
Datum | btint4sortsupport (PG_FUNCTION_ARGS) |
Datum | btint8cmp (PG_FUNCTION_ARGS) |
static int | btint8fastcmp (Datum x, Datum y, SortSupport ssup) |
Datum | btint8sortsupport (PG_FUNCTION_ARGS) |
Datum | btint48cmp (PG_FUNCTION_ARGS) |
Datum | btint84cmp (PG_FUNCTION_ARGS) |
Datum | btint24cmp (PG_FUNCTION_ARGS) |
Datum | btint42cmp (PG_FUNCTION_ARGS) |
Datum | btint28cmp (PG_FUNCTION_ARGS) |
Datum | btint82cmp (PG_FUNCTION_ARGS) |
Datum | btoidcmp (PG_FUNCTION_ARGS) |
static int | btoidfastcmp (Datum x, Datum y, SortSupport ssup) |
Datum | btoidsortsupport (PG_FUNCTION_ARGS) |
Datum | btoidvectorcmp (PG_FUNCTION_ARGS) |
Datum | btcharcmp (PG_FUNCTION_ARGS) |
#define A_GREATER_THAN_B 1 |
Definition at line 68 of file nbtcompare.c.
#define A_LESS_THAN_B (-1) |
Definition at line 67 of file nbtcompare.c.
Datum btboolcmp | ( | PG_FUNCTION_ARGS | ) |
Datum btcharcmp | ( | PG_FUNCTION_ARGS | ) |
Datum btint24cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 203 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 231 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 | ) |
|
static |
Definition at line 91 of file nbtcompare.c.
References a, b, DatumGetInt16(), x, and y.
Referenced by btint2sortsupport().
Datum btint2sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 100 of file nbtcompare.c.
References btint2fastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btint42cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 217 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 175 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 109 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT32, and PG_RETURN_INT32.
Datum btint4sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 123 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 245 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 189 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 132 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, PG_GETARG_INT64, and PG_RETURN_INT32.
|
static |
Definition at line 147 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, DatumGetInt64(), x, and y.
Referenced by btint8sortsupport().
Datum btint8sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 162 of file nbtcompare.c.
References btint8fastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btoidcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 259 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 273 of file nbtcompare.c.
References a, A_GREATER_THAN_B, A_LESS_THAN_B, b, DatumGetObjectId(), x, and y.
Referenced by btoidsortsupport().
Datum btoidsortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 287 of file nbtcompare.c.
References btoidfastcmp(), SortSupportData::comparator, PG_GETARG_POINTER, and PG_RETURN_VOID.
Datum btoidvectorcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 296 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().