PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/gin.h"
#include "access/stratnum.h"
#include "catalog/pg_type.h"
#include "hstore.h"
Go to the source code of this file.
Macros | |
#define | KEYFLAG 'K' |
#define | VALFLAG 'V' |
#define | NULLFLAG 'N' |
Functions | |
PG_FUNCTION_INFO_V1 (gin_extract_hstore) | |
static text * | makeitem (char *str, int len, char flag) |
Datum | gin_extract_hstore (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (gin_extract_hstore_query) | |
Datum | gin_extract_hstore_query (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (gin_consistent_hstore) | |
Datum | gin_consistent_hstore (PG_FUNCTION_ARGS) |
#define KEYFLAG 'K' |
Definition at line 20 of file hstore_gin.c.
#define NULLFLAG 'N' |
Definition at line 22 of file hstore_gin.c.
#define VALFLAG 'V' |
Definition at line 21 of file hstore_gin.c.
Datum gin_consistent_hstore | ( | PG_FUNCTION_ARGS | ) |
Definition at line 151 of file hstore_gin.c.
References elog, ERROR, HStoreContainsStrategyNumber, HStoreExistsAllStrategyNumber, HStoreExistsAnyStrategyNumber, HStoreExistsStrategyNumber, i, PG_GETARG_INT32, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, and res.
Datum gin_extract_hstore | ( | PG_FUNCTION_ARGS | ) |
Definition at line 44 of file hstore_gin.c.
References ARRPTR, HS_COUNT, HSTORE_KEY, HSTORE_KEYLEN, HSTORE_VAL, HSTORE_VALISNULL, HSTORE_VALLEN, i, KEYFLAG, makeitem(), NULLFLAG, palloc(), PG_GETARG_HSTORE_P, PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), STRPTR, and VALFLAG.
Referenced by gin_extract_hstore_query().
Datum gin_extract_hstore_query | ( | PG_FUNCTION_ARGS | ) |
Definition at line 82 of file hstore_gin.c.
References DatumGetPointer(), deconstruct_array_builtin(), DirectFunctionCall2, elog, ERROR, gin_extract_hstore(), GIN_SEARCH_MODE_ALL, HStoreContainsStrategyNumber, HStoreExistsAllStrategyNumber, HStoreExistsAnyStrategyNumber, HStoreExistsStrategyNumber, i, j, KEYFLAG, makeitem(), palloc(), PG_GETARG_ARRAYTYPE_P, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_GETARG_TEXT_PP, PG_GETARG_UINT16, PG_RETURN_POINTER, PointerGetDatum(), VARDATA, VARDATA_ANY, VARHDRSZ, VARSIZE, and VARSIZE_ANY_EXHDR.
|
static |
Definition at line 28 of file hstore_gin.c.
References flag(), len, palloc(), SET_VARSIZE, str, VARDATA, and VARHDRSZ.
Referenced by gin_extract_hstore(), and gin_extract_hstore_query().
PG_FUNCTION_INFO_V1 | ( | gin_consistent_hstore | ) |
PG_FUNCTION_INFO_V1 | ( | gin_extract_hstore | ) |
PG_FUNCTION_INFO_V1 | ( | gin_extract_hstore_query | ) |