#include "postgres.h"
#include <float.h>
#include <math.h>
#include "access/gist.h"
#include "access/stratnum.h"
#include "fmgr.h"
#include "segdata.h"
Go to the source code of this file.
Definition at line 529 of file seg.c.
References DirectFunctionCall2, and seg_union().
Referenced by gseg_union().
Definition at line 258 of file seg.c.
References PG_GETARG_POINTER, and PG_RETURN_POINTER.
Definition at line 200 of file seg.c.
References GIST_LEAF, gseg_internal_consistent(), gseg_leaf_consistent(), GISTENTRY::key, PG_GETARG_DATUM, PG_GETARG_POINTER, and PG_GETARG_UINT16.
Definition at line 264 of file seg.c.
References PG_GETARG_POINTER, and PG_RETURN_POINTER.
Definition at line 480 of file seg.c.
References DatumGetBool(), DirectFunctionCall2, fprintf, sort-test::key, PG_RETURN_BOOL, RTContainedByStrategyNumber, RTContainsStrategyNumber, RTLeftStrategyNumber, RTOldContainedByStrategyNumber, RTOldContainsStrategyNumber, RTOverlapStrategyNumber, RTOverLeftStrategyNumber, RTOverRightStrategyNumber, RTRightStrategyNumber, RTSameStrategyNumber, seg_contains(), seg_left(), seg_over_left(), seg_over_right(), seg_overlap(), and seg_right().
Referenced by gseg_consistent().
Definition at line 436 of file seg.c.
References BoolGetDatum(), DirectFunctionCall2, fprintf, sort-test::key, PG_RETURN_DATUM, RTContainedByStrategyNumber, RTContainsStrategyNumber, RTLeftStrategyNumber, RTOldContainedByStrategyNumber, RTOldContainsStrategyNumber, RTOverlapStrategyNumber, RTOverLeftStrategyNumber, RTOverRightStrategyNumber, RTRightStrategyNumber, RTSameStrategyNumber, seg_contained(), seg_contains(), seg_left(), seg_over_left(), seg_over_right(), seg_overlap(), seg_right(), and seg_same().
Referenced by gseg_consistent().
Definition at line 274 of file seg.c.
References DatumGetSegP, DirectFunctionCall2, fprintf, GISTENTRY::key, PG_GETARG_POINTER, PG_RETURN_POINTER, rt_seg_size(), and seg_union().
Definition at line 323 of file seg.c.
References gseg_picksplit_item::center, gseg_picksplit_item::data, data, DatumGetSegP, DirectFunctionCall2, fprintf, gseg_picksplit_item_cmp(), i, gseg_picksplit_item::index, GISTENTRY::key, SEG::lower, GistEntryVector::n, palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), qsort, seg_union(), GIST_SPLITVEC::spl_ldatum, GIST_SPLITVEC::spl_left, GIST_SPLITVEC::spl_nleft, GIST_SPLITVEC::spl_nright, GIST_SPLITVEC::spl_rdatum, GIST_SPLITVEC::spl_right, SEG::upper, and GistEntryVector::vector.
Definition at line 302 of file seg.c.
References a, b, and gseg_picksplit_item::center.
Referenced by gseg_picksplit().
Definition at line 416 of file seg.c.
References DatumGetBool(), DirectFunctionCall2, fprintf, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_RETURN_POINTER, and seg_same().
Definition at line 227 of file seg.c.
References fprintf, gseg_binary_union(), i, GISTENTRY::key, GistEntryVector::n, PG_GETARG_POINTER, PG_RETURN_DATUM, and GistEntryVector::vector.
"seg"
,
PG_VERSION
Definition at line 918 of file seg.c.
References buf, i, Min, sign, sprintf, and val.
Referenced by seg_out().
Definition at line 165 of file seg.c.
References SEG::lower, PG_GETARG_SEG_P, PG_RETURN_FLOAT4, and SEG::upper.
Definition at line 730 of file seg.c.
References a, b, elog, ERROR, PG_GETARG_SEG_P, and PG_RETURN_INT32.
Referenced by seg_different(), seg_ge(), seg_gt(), seg_le(), seg_lt(), and seg_same().
Definition at line 550 of file seg.c.
References a, b, DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_DATUM, and seg_contains().
Referenced by gseg_leaf_consistent().
Definition at line 541 of file seg.c.
References a, b, PG_GETARG_SEG_P, and PG_RETURN_BOOL.
Referenced by gseg_internal_consistent(), gseg_leaf_consistent(), and seg_contained().
Definition at line 893 of file seg.c.
References cmp(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_BOOL, and seg_cmp().
Definition at line 882 of file seg.c.
References cmp(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_BOOL, and seg_cmp().
Definition at line 872 of file seg.c.
References cmp(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_BOOL, and seg_cmp().
Definition at line 107 of file seg.c.
References palloc(), PG_GETARG_CSTRING, PG_RETURN_POINTER, seg_scanner_finish(), seg_scanner_init(), seg_yyerror(), seg_yyparse(), and str.
Definition at line 669 of file seg.c.
References a, b, SEG::l_ext, SEG::l_sigd, SEG::lower, palloc(), PG_GETARG_SEG_P, PG_RETURN_POINTER, SEG::u_ext, SEG::u_sigd, and SEG::upper.
Definition at line 862 of file seg.c.
References cmp(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_BOOL, and seg_cmp().
Definition at line 598 of file seg.c.
References a, b, PG_GETARG_SEG_P, and PG_RETURN_BOOL.
Referenced by gseg_internal_consistent(), and gseg_leaf_consistent().
Definition at line 173 of file seg.c.
References SEG::lower, PG_GETARG_SEG_P, and PG_RETURN_FLOAT4.
Definition at line 852 of file seg.c.
References cmp(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_BOOL, and seg_cmp().
Definition at line 124 of file seg.c.
References SEG::l_ext, SEG::l_sigd, SEG::lower, palloc(), PG_GETARG_SEG_P, PG_RETURN_CSTRING, restore(), sprintf, SEG::u_ext, SEG::u_sigd, and SEG::upper.
Definition at line 587 of file seg.c.
References a, b, PG_GETARG_SEG_P, and PG_RETURN_BOOL.
Referenced by gseg_internal_consistent(), and gseg_leaf_consistent().
Definition at line 620 of file seg.c.
References a, b, PG_GETARG_SEG_P, and PG_RETURN_BOOL.
Referenced by gseg_internal_consistent(), and gseg_leaf_consistent().
Definition at line 575 of file seg.c.
References a, b, PG_GETARG_SEG_P, and PG_RETURN_BOOL.
Referenced by gseg_internal_consistent(), and gseg_leaf_consistent().
Definition at line 609 of file seg.c.
References a, b, PG_GETARG_SEG_P, and PG_RETURN_BOOL.
Referenced by gseg_internal_consistent(), and gseg_leaf_consistent().
Definition at line 563 of file seg.c.
References cmp(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_BOOL, and seg_cmp().
Referenced by gseg_leaf_consistent(), and gseg_same().
Definition at line 718 of file seg.c.
References SEG::lower, PG_GETARG_SEG_P, PG_RETURN_FLOAT4, and SEG::upper.
Definition at line 629 of file seg.c.
References a, b, SEG::l_ext, SEG::l_sigd, SEG::lower, palloc(), PG_GETARG_SEG_P, PG_RETURN_POINTER, SEG::u_ext, SEG::u_sigd, and SEG::upper.
Referenced by gseg_binary_union(), gseg_penalty(), and gseg_picksplit().
Definition at line 181 of file seg.c.
References PG_GETARG_SEG_P, PG_RETURN_FLOAT4, and SEG::upper.
Definition at line 1068 of file seg.c.