PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/gin.h"
#include "access/stratnum.h"
#include "utils/array.h"
#include "utils/fmgrprotos.h"
#include "utils/lsyscache.h"
Go to the source code of this file.
Macros | |
#define | GinOverlapStrategy 1 |
#define | GinContainsStrategy 2 |
#define | GinContainedStrategy 3 |
#define | GinEqualStrategy 4 |
#define GinContainedStrategy 3 |
Definition at line 25 of file ginarrayproc.c.
#define GinContainsStrategy 2 |
Definition at line 24 of file ginarrayproc.c.
#define GinEqualStrategy 4 |
Definition at line 26 of file ginarrayproc.c.
#define GinOverlapStrategy 1 |
Definition at line 23 of file ginarrayproc.c.
Datum ginarrayconsistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 142 of file ginarrayproc.c.
References elog, ERROR, GinContainedStrategy, GinContainsStrategy, GinEqualStrategy, GinOverlapStrategy, i, PG_GETARG_INT32, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, and res.
Datum ginarrayextract | ( | PG_FUNCTION_ARGS | ) |
Definition at line 33 of file ginarrayproc.c.
References ARR_ELEMTYPE, deconstruct_array(), get_typlenbyvalalign(), PG_GETARG_ARRAYTYPE_P_COPY, PG_GETARG_POINTER, and PG_RETURN_POINTER.
Referenced by ginarrayextract_2args().
Datum ginarrayextract_2args | ( | PG_FUNCTION_ARGS | ) |
Definition at line 68 of file ginarrayproc.c.
References elog, ERROR, ginarrayextract(), and PG_NARGS.
Datum ginarraytriconsistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 226 of file ginarrayproc.c.
References elog, ERROR, GIN_FALSE, GIN_MAYBE, GIN_TRUE, GinContainedStrategy, GinContainsStrategy, GinEqualStrategy, GinOverlapStrategy, i, PG_GETARG_INT32, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_GIN_TERNARY_VALUE, and res.
Datum ginqueryarrayextract | ( | PG_FUNCTION_ARGS | ) |
Definition at line 79 of file ginarrayproc.c.
References ARR_ELEMTYPE, deconstruct_array(), elog, ERROR, get_typlenbyvalalign(), GIN_SEARCH_MODE_ALL, GIN_SEARCH_MODE_DEFAULT, GIN_SEARCH_MODE_INCLUDE_EMPTY, GinContainedStrategy, GinContainsStrategy, GinEqualStrategy, GinOverlapStrategy, PG_GETARG_ARRAYTYPE_P_COPY, PG_GETARG_POINTER, PG_GETARG_UINT16, and PG_RETURN_POINTER.