PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "catalog/pg_type.h"
#include "common/int.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/memutils.h"
Go to the source code of this file.
Functions | |
int | ArrayGetOffset (int n, const int *dim, const int *lb, const int *indx) |
int | ArrayGetNItems (int ndim, const int *dims) |
int | ArrayGetNItemsSafe (int ndim, const int *dims, struct Node *escontext) |
void | ArrayCheckBounds (int ndim, const int *dims, const int *lb) |
bool | ArrayCheckBoundsSafe (int ndim, const int *dims, const int *lb, struct Node *escontext) |
void | mda_get_range (int n, int *span, const int *st, const int *endp) |
void | mda_get_prod (int n, const int *range, int *prod) |
void | mda_get_offset_values (int n, int *dist, const int *prod, const int *span) |
int | mda_next_tuple (int n, int *curr, const int *span) |
int32 * | ArrayGetIntegerTypmods (ArrayType *arr, int *n) |
void ArrayCheckBounds | ( | int | ndim, |
const int * | dims, | ||
const int * | lb | ||
) |
Definition at line 117 of file arrayutils.c.
References ArrayCheckBoundsSafe().
Referenced by array_cat(), array_fill_internal(), array_recv(), array_set_element(), array_set_element_expanded(), array_set_slice(), construct_md_array(), ExecEvalArrayExpr(), and makeArrayResultArr().
Definition at line 127 of file arrayutils.c.
References ereturn, errcode(), errmsg(), i, pg_add_s32_overflow(), and PG_USED_FOR_ASSERTS_ONLY.
Referenced by ArrayCheckBounds().
Definition at line 233 of file arrayutils.c.
References ARR_ELEMTYPE, ARR_NDIM, array_contains_nulls(), DatumGetCString(), deconstruct_array_builtin(), ereport, errcode(), errmsg(), ERROR, i, palloc(), pfree(), and pg_strtoint32().
Referenced by anybit_typmodin(), anychar_typmodin(), anytime_typmodin(), anytimestamp_typmodin(), intervaltypmodin(), and numerictypmodin().
int ArrayGetNItems | ( | int | ndim, |
const int * | dims | ||
) |
Definition at line 57 of file arrayutils.c.
References ArrayGetNItemsSafe().
Referenced by _arrq_cons(), _lca(), _lt_q_regex(), _ltree_compress(), accumArrayResultArr(), array_cardinality(), array_cat(), array_cmp(), array_contain_compare(), array_contains_nulls(), array_create_iterator(), array_eq(), array_fill_internal(), array_get_slice(), array_insert_slice(), array_iterator(), array_map(), array_out(), array_recv(), array_replace_internal(), array_send(), array_set_element(), array_set_element_expanded(), array_set_slice(), array_slice_size(), array_to_json_internal(), array_to_jsonb_internal(), array_to_text_internal(), array_unnest(), arrq_cons(), clause_is_strict_for(), construct_md_array(), convert_saop_to_hashed_saop_walker(), count_nulls(), deconstruct_array(), do_set_block_offsets(), EA_get_flat_size(), estimate_array_length(), ExecEvalArrayExpr(), ExecEvalHashedScalarArrayOp(), ExecEvalScalarArrayOp(), get_text_array_contents(), getWeights(), hash_array(), hash_array_extended(), is_strict_saop(), lt_q_regex(), makeArrayResultArr(), pg_isolation_test_session_is_blocked(), predicate_classify(), sanity_check_tid_array(), width_bucket_array_fixed(), width_bucket_array_float8(), and width_bucket_array_variable().
int ArrayGetNItemsSafe | ( | int | ndim, |
const int * | dims, | ||
struct Node * | escontext | ||
) |
Definition at line 67 of file arrayutils.c.
References Assert, ereturn, errcode(), errmsg(), i, and MaxArraySize.
Referenced by ArrayGetNItems().
int ArrayGetOffset | ( | int | n, |
const int * | dim, | ||
const int * | lb, | ||
const int * | indx | ||
) |
Definition at line 32 of file arrayutils.c.
Referenced by array_extract_slice(), array_get_element(), array_get_element_expanded(), array_insert_slice(), array_set_element(), array_set_element_expanded(), and array_slice_size().
void mda_get_offset_values | ( | int | n, |
int * | dist, | ||
const int * | prod, | ||
const int * | span | ||
) |
Definition at line 183 of file arrayutils.c.
Referenced by array_extract_slice(), array_insert_slice(), and array_slice_size().
void mda_get_prod | ( | int | n, |
const int * | range, | ||
int * | prod | ||
) |
Definition at line 167 of file arrayutils.c.
Referenced by array_extract_slice(), array_insert_slice(), and array_slice_size().
void mda_get_range | ( | int | n, |
int * | span, | ||
const int * | st, | ||
const int * | endp | ||
) |
Definition at line 153 of file arrayutils.c.
References i.
Referenced by array_extract_slice(), array_get_slice(), array_insert_slice(), array_set_slice(), and array_slice_size().
int mda_next_tuple | ( | int | n, |
int * | curr, | ||
const int * | span | ||
) |
Definition at line 208 of file arrayutils.c.
References i.
Referenced by array_extract_slice(), array_insert_slice(), and array_slice_size().