PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <limits.h>
#include "access/stratnum.h"
#include "utils/builtins.h"
#include "utils/date.h"
#include "utils/float.h"
#include "utils/inet.h"
#include "utils/numeric.h"
#include "utils/timestamp.h"
#include "utils/uuid.h"
Go to the source code of this file.
Data Structures | |
struct | QueryInfo |
Macros | |
#define | GIN_SUPPORT(type, is_varlena, leftmostvalue, typecmp) |
#define | NUMERIC_IS_LEFTMOST(x) ((x) == NULL) |
#define | ENUM_IS_LEFTMOST(x) ((x) == InvalidOid) |
Typedefs | |
typedef struct QueryInfo | QueryInfo |
Variables | |
PG_MODULE_MAGIC | |
#define ENUM_IS_LEFTMOST | ( | x | ) | ((x) == InvalidOid) |
Definition at line 440 of file btree_gin.c.
#define GIN_SUPPORT | ( | type, | |
is_varlena, | |||
leftmostvalue, | |||
typecmp | |||
) |
Definition at line 182 of file btree_gin.c.
Definition at line 393 of file btree_gin.c.
|
static |
Definition at line 106 of file btree_gin.c.
References a, b, BTEqualStrategyNumber, BTGreaterEqualStrategyNumber, BTGreaterStrategyNumber, BTLessEqualStrategyNumber, BTLessStrategyNumber, CallerFInfoFunctionCall2(), cmp(), data, DatumGetInt32(), elog, ERROR, FunctionCallInfoBaseData::flinfo, PG_GET_COLLATION, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_RETURN_INT32, and res.
Datum gin_btree_consistent | ( | PG_FUNCTION_ARGS | ) |
|
static |
Definition at line 53 of file btree_gin.c.
References BTEqualStrategyNumber, BTGreaterEqualStrategyNumber, BTGreaterStrategyNumber, BTLessEqualStrategyNumber, BTLessStrategyNumber, data, elog, ERROR, palloc(), PG_DETOAST_DATUM, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_POINTER, and PointerGetDatum().
|
static |
Definition at line 30 of file btree_gin.c.
References palloc(), PG_DETOAST_DATUM, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_RETURN_POINTER, and PointerGetDatum().
Datum gin_enum_cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 445 of file btree_gin.c.
References a, b, CallerFInfoFunctionCall2(), DatumGetInt32(), enum_cmp(), ENUM_IS_LEFTMOST, FunctionCallInfoBaseData::flinfo, ObjectIdGetDatum(), PG_GET_COLLATION, PG_GETARG_OID, PG_RETURN_INT32, and res.
Datum gin_numeric_cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 398 of file btree_gin.c.
References a, b, DatumGetInt32(), DirectFunctionCall2, numeric_cmp(), NUMERIC_IS_LEFTMOST, NumericGetDatum(), PG_GETARG_POINTER, PG_RETURN_INT32, and res.
|
static |
Definition at line 364 of file btree_gin.c.
References bit_in(), CStringGetDatum(), DirectFunctionCall3, Int32GetDatum(), and ObjectIdGetDatum().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 334 of file btree_gin.c.
References CStringGetDatum(), DirectFunctionCall1, and inet_in().
|
static |
|
static |
Definition at line 215 of file btree_gin.c.
References Int32GetDatum().
|
static |
|
static |
Definition at line 302 of file btree_gin.c.
References INTERVAL_NOBEGIN, IntervalPGetDatum(), and palloc().
|
static |
|
static |
Definition at line 324 of file btree_gin.c.
References Macaddr8PGetDatum(), and palloc0().
|
static |
Definition at line 247 of file btree_gin.c.
References Int64GetDatum(), and PG_INT64_MIN.
|
static |
|
static |
Definition at line 423 of file btree_gin.c.
References PointerGetDatum().
|
static |
Definition at line 255 of file btree_gin.c.
References ObjectIdGetDatum().
|
static |
Definition at line 344 of file btree_gin.c.
References cstring_to_text_with_len(), and PointerGetDatum().
|
static |
|
static |
|
static |
Definition at line 281 of file btree_gin.c.
References palloc(), TimeTzADT::time, TimeTzADTPGetDatum(), and TimeTzADT::zone.
|
static |
|
static |
Definition at line 375 of file btree_gin.c.
References CStringGetDatum(), DirectFunctionCall3, Int32GetDatum(), ObjectIdGetDatum(), and varbit_in().
PG_FUNCTION_INFO_V1 | ( | gin_btree_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gin_enum_cmp | ) |
PG_FUNCTION_INFO_V1 | ( | gin_numeric_cmp | ) |
PG_MODULE_MAGIC |
Definition at line 17 of file btree_gin.c.