PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "common/hashfn.h"
#include "ltree.h"
#include "utils/builtins.h"
#include "utils/selfuncs.h"
#include "varatt.h"
Go to the source code of this file.
Macros | |
#define | RUNCMP |
Variables | |
PG_MODULE_MAGIC | |
#define RUNCMP |
Definition at line 77 of file ltree_op.c.
Datum hash_ltree | ( | PG_FUNCTION_ARGS | ) |
Definition at line 135 of file ltree_op.c.
References a, DatumGetUInt32(), hash_any(), ltree_level::len, LEVEL_NEXT, LTREE_FIRST, ltree_level::name, PG_FREE_IF_COPY, PG_GETARG_LTREE_P, and PG_RETURN_UINT32.
Datum hash_ltree_extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 165 of file ltree_op.c.
References a, DatumGetUInt64(), hash_any_extended(), ltree_level::len, LEVEL_NEXT, LTREE_FIRST, ltree_level::name, PG_FREE_IF_COPY, PG_GETARG_INT64, PG_GETARG_LTREE_P, and PG_RETURN_UINT64.
Definition at line 210 of file ltree_op.c.
References ltree_level::len, LEVEL_NEXT, LTREE_FIRST, ltree_level::name, and ltree::numlevel.
Referenced by ltree_consistent(), ltree_isparent(), and ltree_risparent().
Definition at line 259 of file ltree_op.c.
References endpos, ereport, errcode(), errmsg(), ERROR, i, LEVEL_NEXT, LTREE_FIRST, LTREE_HDRSIZE, ltree::numlevel, palloc0(), res, SET_VARSIZE, start, and startpos.
Referenced by subltree(), and subpath().
Datum lca | ( | PG_FUNCTION_ARGS | ) |
Definition at line 568 of file ltree_op.c.
References a, i, lca_inner(), palloc(), pfree(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_RETURN_NULL, PG_RETURN_POINTER, and res.
Referenced by cmp_list_len_contents_asc(), fix_indexqual_clause(), mbms_add_members(), mbms_int_members(), mbms_overlap_sets(), and set_plan_refs().
Definition at line 493 of file ltree_op.c.
References a, i, ltree_level::len, len, LEVEL_HDRSIZE, LEVEL_NEXT, LTREE_FIRST, LTREE_HDRSIZE, MAXALIGN, Min, ltree_level::name, palloc0(), res, and SET_VARSIZE.
Datum ltree2text | ( | PG_FUNCTION_ARGS | ) |
Definition at line 606 of file ltree_op.c.
References i, ltree_level::len, LEVEL_NEXT, LTREE_FIRST, ltree_level::name, ltree::numlevel, palloc(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_RETURN_POINTER, SET_VARSIZE, VARDATA, VARHDRSZ, and VARSIZE.
Datum ltree_addltree | ( | PG_FUNCTION_ARGS | ) |
Definition at line 364 of file ltree_op.c.
References a, b, ltree_concat(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, and PG_RETURN_POINTER.
Datum ltree_addtext | ( | PG_FUNCTION_ARGS | ) |
Definition at line 377 of file ltree_op.c.
References a, b, DatumGetPointer(), DirectFunctionCall1, ltree_concat(), ltree_in(), pfree(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_GETARG_TEXT_PP, PG_RETURN_POINTER, PointerGetDatum(), and text_to_cstring().
Datum ltree_cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 43 of file ltree_op.c.
References a, b, ltree_level::len, LEVEL_NEXT, LTREE_FIRST, Min, ltree_level::name, and res.
Referenced by gist_ischild(), gist_isparent(), ltree_consistent(), ltree_penalty(), ltree_picksplit(), ltree_union(), and treekey_cmp().
Definition at line 341 of file ltree_op.c.
References a, b, ereport, errcode(), errmsg(), ERROR, if(), LTREE_FIRST, LTREE_HDRSIZE, LTREE_MAX_LEVELS, ltree::numlevel, palloc0(), SET_VARSIZE, and VARSIZE.
Referenced by ltree_addltree(), ltree_addtext(), and ltree_textadd().
Datum ltree_eq | ( | PG_FUNCTION_ARGS | ) |
Datum ltree_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 113 of file ltree_op.c.
References PG_RETURN_BOOL, res, and RUNCMP.
Datum ltree_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 120 of file ltree_op.c.
References PG_RETURN_BOOL, res, and RUNCMP.
Datum ltree_index | ( | PG_FUNCTION_ARGS | ) |
Definition at line 402 of file ltree_op.c.
References a, b, i, j, ltree_level::len, LEVEL_NEXT, LTREE_FIRST, ltree_level::name, PG_FREE_IF_COPY, PG_GETARG_INT32, PG_GETARG_LTREE_P, PG_RETURN_INT32, and start.
Datum ltree_isparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 234 of file ltree_op.c.
References inner_isparent(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_RETURN_BOOL, and res.
Referenced by _ltree_extract_isparent(), and _ltree_isparent().
Datum ltree_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 99 of file ltree_op.c.
References PG_RETURN_BOOL, res, and RUNCMP.
Datum ltree_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 92 of file ltree_op.c.
References PG_RETURN_BOOL, res, and RUNCMP.
Datum ltree_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 127 of file ltree_op.c.
References PG_RETURN_BOOL, res, and RUNCMP.
Datum ltree_risparent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 246 of file ltree_op.c.
References inner_isparent(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_RETURN_BOOL, and res.
Referenced by _ltree_extract_risparent(), and _ltree_risparent().
Datum ltree_textadd | ( | PG_FUNCTION_ARGS | ) |
Definition at line 462 of file ltree_op.c.
References a, b, DatumGetPointer(), DirectFunctionCall1, ltree_concat(), ltree_in(), pfree(), PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_GETARG_TEXT_PP, PG_RETURN_POINTER, PointerGetDatum(), and text_to_cstring().
Datum ltreeparentsel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 643 of file ltree_op.c.
References generate_unaccent_rules::args, generic_restriction_selectivity(), InvalidOid, PG_GETARG_INT32, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, and root.
Datum nlevel | ( | PG_FUNCTION_ARGS | ) |
Definition at line 200 of file ltree_op.c.
References a, PG_FREE_IF_COPY, PG_GETARG_LTREE_P, PG_RETURN_INT32, and res.
PG_FUNCTION_INFO_V1 | ( | hash_ltree | ) |
PG_FUNCTION_INFO_V1 | ( | hash_ltree_extended | ) |
PG_FUNCTION_INFO_V1 | ( | lca | ) |
PG_FUNCTION_INFO_V1 | ( | ltree2text | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_addltree | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_addtext | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_cmp | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_eq | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_ge | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_gt | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_index | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_isparent | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_le | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_lt | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_ne | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_risparent | ) |
PG_FUNCTION_INFO_V1 | ( | ltree_textadd | ) |
PG_FUNCTION_INFO_V1 | ( | ltreeparentsel | ) |
PG_FUNCTION_INFO_V1 | ( | nlevel | ) |
PG_FUNCTION_INFO_V1 | ( | subltree | ) |
PG_FUNCTION_INFO_V1 | ( | subpath | ) |
PG_FUNCTION_INFO_V1 | ( | text2ltree | ) |
Datum subltree | ( | PG_FUNCTION_ARGS | ) |
Definition at line 298 of file ltree_op.c.
References inner_subltree(), PG_FREE_IF_COPY, PG_GETARG_INT32, PG_GETARG_LTREE_P, PG_RETURN_POINTER, and res.
Datum subpath | ( | PG_FUNCTION_ARGS | ) |
Definition at line 308 of file ltree_op.c.
References inner_subltree(), len, ltree::numlevel, PG_FREE_IF_COPY, PG_GETARG_INT32, PG_GETARG_LTREE_P, PG_RETURN_POINTER, res, and start.
Referenced by add_foreign_final_paths(), add_paths_to_append_rel(), adjust_paths_for_srfs(), append_nonpartial_cost(), apply_scanjoin_target_to_paths(), build_setop_child_paths(), cost_append(), cost_bitmap_and_node(), cost_bitmap_or_node(), create_agg_path(), create_append_path(), create_append_plan(), create_gather_merge_path(), create_gather_path(), create_group_path(), create_groupingsets_path(), create_incremental_sort_path(), create_limit_path(), create_lockrows_path(), create_material_path(), create_memoize_path(), create_merge_append_path(), create_merge_append_plan(), create_modifytable_path(), create_modifytable_plan(), create_projection_path(), create_set_projection_path(), create_setop_path(), create_sort_path(), create_subqueryscan_path(), create_unique_path(), create_upper_unique_path(), create_windowagg_path(), ExecSupportsMarkRestore(), generate_gather_paths(), generate_union_paths(), generate_useful_gather_paths(), get_param_path_clause_serials(), is_dummy_rel(), mark_async_capable_plan(), recurse_set_operations(), reparameterize_path(), set_subquery_pathlist(), and walkdir().
Datum text2ltree | ( | PG_FUNCTION_ARGS | ) |
Definition at line 589 of file ltree_op.c.
References DatumGetPointer(), DirectFunctionCall1, ltree_in(), pfree(), PG_FREE_IF_COPY, PG_GETARG_TEXT_PP, PG_RETURN_POINTER, PointerGetDatum(), and text_to_cstring().
PG_MODULE_MAGIC |
Definition at line 16 of file ltree_op.c.