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, and PG_RETURN_INT32.
Datum gin_btree_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 172 of file btree_gin.c.
References PG_GETARG_POINTER, and PG_RETURN_BOOL.
|
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, and PG_RETURN_INT32.
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, and PG_RETURN_INT32.
|
static |
Definition at line 364 of file btree_gin.c.
References bit_in(), CStringGetDatum(), DirectFunctionCall3, Int32GetDatum(), and ObjectIdGetDatum().
|
static |
|
static |
|
static |
Definition at line 294 of file btree_gin.c.
References DateADTGetDatum(), and DATEVAL_NOBEGIN.
|
static |
Definition at line 472 of file btree_gin.c.
References InvalidOid, and ObjectIdGetDatum().
|
static |
Definition at line 231 of file btree_gin.c.
References Float4GetDatum(), and get_float4_infinity().
|
static |
Definition at line 239 of file btree_gin.c.
References Float8GetDatum(), and get_float8_infinity().
|
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 |
Definition at line 314 of file btree_gin.c.
References MacaddrPGetDatum(), and palloc0().
|
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 |
Definition at line 494 of file btree_gin.c.
References NAMEDATALEN, NameGetDatum(), and palloc0().
|
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 |
Definition at line 263 of file btree_gin.c.
References DT_NOBEGIN, and TimestampGetDatum().
|
static |
Definition at line 281 of file btree_gin.c.
References palloc(), TimeTzADT::time, TimeTzADTPGetDatum(), and TimeTzADT::zone.
|
static |
Definition at line 480 of file btree_gin.c.
References palloc0(), and UUIDPGetDatum().
|
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.