PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "catalog/pg_type.h"
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/jsonb.h"
Go to the source code of this file.
Datum jsonb_cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 237 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 131 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 113 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 223 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 22 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 80 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 47 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 209 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 181 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 254 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 296 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 195 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 167 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 150 of file jsonb_op.c.
References compareJsonbContainers(), PG_FREE_IF_COPY, PG_GETARG_JSONB_P, PG_RETURN_BOOL, res, and Jsonb::root.