PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "btree_gist.h"
#include "btree_utils_num.h"
#include "catalog/pg_type.h"
#include "utils/builtins.h"
Go to the source code of this file.
Data Structures | |
struct | inetkey |
Typedefs | |
typedef struct inetkey | inetKEY |
Functions | |
PG_FUNCTION_INFO_V1 (gbt_inet_compress) | |
PG_FUNCTION_INFO_V1 (gbt_inet_union) | |
PG_FUNCTION_INFO_V1 (gbt_inet_picksplit) | |
PG_FUNCTION_INFO_V1 (gbt_inet_consistent) | |
PG_FUNCTION_INFO_V1 (gbt_inet_penalty) | |
PG_FUNCTION_INFO_V1 (gbt_inet_same) | |
static bool | gbt_inetgt (const void *a, const void *b, FmgrInfo *flinfo) |
static bool | gbt_inetge (const void *a, const void *b, FmgrInfo *flinfo) |
static bool | gbt_ineteq (const void *a, const void *b, FmgrInfo *flinfo) |
static bool | gbt_inetle (const void *a, const void *b, FmgrInfo *flinfo) |
static bool | gbt_inetlt (const void *a, const void *b, FmgrInfo *flinfo) |
static int | gbt_inetkey_cmp (const void *a, const void *b, FmgrInfo *flinfo) |
Datum | gbt_inet_compress (PG_FUNCTION_ARGS) |
Datum | gbt_inet_consistent (PG_FUNCTION_ARGS) |
Datum | gbt_inet_union (PG_FUNCTION_ARGS) |
Datum | gbt_inet_penalty (PG_FUNCTION_ARGS) |
Datum | gbt_inet_picksplit (PG_FUNCTION_ARGS) |
Datum | gbt_inet_same (PG_FUNCTION_ARGS) |
Variables | |
static const gbtree_ninfo | tinfo |
Datum gbt_inet_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 93 of file btree_inet.c.
References Assert, convert_network_to_scalar(), gistentryinit, GISTENTRY::key, GISTENTRY::leafkey, inetkey::lower, GISTENTRY::offset, GISTENTRY::page, palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), GISTENTRY::rel, and inetkey::upper.
Datum gbt_inet_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 119 of file btree_inet.c.
References Assert, convert_network_to_scalar(), DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, inetkey::lower, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and inetkey::upper.
Datum gbt_inet_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 158 of file btree_inet.c.
References DatumGetPointer(), sort-test::key, inetkey::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and inetkey::upper.
Datum gbt_inet_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 170 of file btree_inet.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_inet_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 178 of file btree_inet.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_inet_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 147 of file btree_inet.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
|
static |
|
static |
|
static |
Definition at line 55 of file btree_inet.c.
References a, b, inetkey::lower, and inetkey::upper.
|
static |
|
static |
PG_FUNCTION_INFO_V1 | ( | gbt_inet_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_inet_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_inet_penalty | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_inet_picksplit | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_inet_same | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_inet_union | ) |
|
static |
Definition at line 72 of file btree_inet.c.
Referenced by gbt_inet_consistent(), gbt_inet_picksplit(), gbt_inet_same(), and gbt_inet_union().