PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "catalog/pg_type.h"
#include "utils/fmgrprotos.h"
#include "utils/jsonb.h"
Go to the source code of this file.
Datum jsonb_cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 236 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_INT32, res, and Jsonb::root.
Datum jsonb_contained | ( | PG_FUNCTION_ARGS | ) |
Definition at line 130 of file jsonb_op.c.
References JB_ROOT_IS_OBJECT, JsonbDeepContains(), JsonbIteratorInit(), PG_GETARG_JSONB_P, PG_RETURN_BOOL, Jsonb::root, and val.
Datum jsonb_contains | ( | PG_FUNCTION_ARGS | ) |
Definition at line 112 of file jsonb_op.c.
References JB_ROOT_IS_OBJECT, JsonbDeepContains(), JsonbIteratorInit(), PG_GETARG_JSONB_P, PG_RETURN_BOOL, Jsonb::root, and val.
Datum jsonb_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 222 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.
Datum jsonb_exists | ( | PG_FUNCTION_ARGS | ) |
Definition at line 21 of file jsonb_op.c.
References findJsonbValueFromContainer(), JB_FARRAY, JB_FOBJECT, jbvString, sort-test::key, PG_GETARG_JSONB_P, PG_GETARG_TEXT_PP, PG_RETURN_BOOL, Jsonb::root, JsonbValue::type, JsonbValue::val, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum jsonb_exists_all | ( | PG_FUNCTION_ARGS | ) |
Definition at line 79 of file jsonb_op.c.
References deconstruct_array_builtin(), findJsonbValueFromContainer(), i, JB_FARRAY, JB_FOBJECT, jbvString, PG_GETARG_ARRAYTYPE_P, PG_GETARG_JSONB_P, PG_RETURN_BOOL, Jsonb::root, strVal, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum jsonb_exists_any | ( | PG_FUNCTION_ARGS | ) |
Definition at line 46 of file jsonb_op.c.
References deconstruct_array_builtin(), findJsonbValueFromContainer(), i, JB_FARRAY, JB_FOBJECT, jbvString, PG_GETARG_ARRAYTYPE_P, PG_GETARG_JSONB_P, PG_RETURN_BOOL, Jsonb::root, strVal, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum jsonb_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 208 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.
Datum jsonb_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 180 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.
Datum jsonb_hash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 253 of file jsonb_op.c.
References elog, ERROR, hash(), JB_FARRAY, JB_FOBJECT, JB_ROOT_COUNT, JsonbHashScalarValue(), JsonbIteratorInit(), JsonbIteratorNext(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_INT32, Jsonb::root, WJB_BEGIN_ARRAY, WJB_BEGIN_OBJECT, WJB_DONE, WJB_ELEM, WJB_END_ARRAY, WJB_END_OBJECT, WJB_KEY, and WJB_VALUE.
Datum jsonb_hash_extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 295 of file jsonb_op.c.
References elog, ERROR, hash(), JB_FARRAY, JB_FOBJECT, JB_ROOT_COUNT, JsonbHashScalarValueExtended(), JsonbIteratorInit(), JsonbIteratorNext(), PG_FREE_IF_COPY, PG_GETARG_INT64, PG_GETARG_JSONB_P, PG_RETURN_UINT64, Jsonb::root, WJB_BEGIN_ARRAY, WJB_BEGIN_OBJECT, WJB_DONE, WJB_ELEM, WJB_END_ARRAY, WJB_END_OBJECT, WJB_KEY, and WJB_VALUE.
Datum jsonb_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 194 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.
Datum jsonb_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 166 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.
Datum jsonb_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 149 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.