|
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"#include "utils/rel.h"#include "utils/sortsupport.h"
Go to the source code of this file.
Data Structures | |
| struct | inetkey |
Typedefs | |
| typedef struct inetkey | inetKEY |
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 118 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 155 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 167 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 175 of file btree_inet.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_inet_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 201 of file btree_inet.c.
References SortSupportData::comparator, gbt_inet_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 186 of file btree_inet.c.
References DatumGetPointer(), inetkey::lower, x, and y.
Referenced by gbt_inet_sortsupport().
| Datum gbt_inet_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 145 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 56 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_sortsupport | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_inet_union | ) |
|
static |
Definition at line 73 of file btree_inet.c.
Referenced by gbt_inet_consistent(), gbt_inet_picksplit(), gbt_inet_same(), and gbt_inet_union().