|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "_int.h"#include "access/gist.h"#include "access/reloptions.h"#include "access/stratnum.h"#include "common/int.h"#include "port/pg_bitutils.h"
Go to the source code of this file.
Data Structures | |
| struct | SPLITCOST |
Macros | |
| #define | GETENTRY(vec, pos) ((GISTTYPE *) DatumGetPointer((vec)->vector[(pos)].key)) |
| #define GETENTRY | ( | vec, | |
| pos | |||
| ) | ((GISTTYPE *) DatumGetPointer((vec)->vector[(pos)].key)) |
Definition at line 13 of file _intbig_gist.c.
Definition at line 50 of file _intbig_gist.c.
References ALLISTRUE, CALCGTSIZE, fb(), GISTTYPE::flag, flag(), GETSIGN, palloc(), SET_VARSIZE(), and sign.
Referenced by g_intbig_compress(), g_intbig_picksplit(), and g_intbig_union().
Definition at line 93 of file _intbig_gist.c.
References a, ARRNELEMS, ARRPTR, b, CHECKARRVALID, GETBIT, GETSIGN, and HASHVAL.
Referenced by g_intbig_consistent().
| Datum _intbig_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 30 of file _intbig_gist.c.
References ereport, errcode(), errmsg(), ERROR, fb(), and PG_RETURN_VOID.
| Datum _intbig_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 40 of file _intbig_gist.c.
References ereport, errcode(), errmsg(), ERROR, fb(), and PG_RETURN_VOID.
Definition at line 75 of file _intbig_gist.c.
References a, ARRNELEMS, ARRPTR, b, CHECKARRVALID, GETBIT, GETSIGN, and HASHVAL.
Referenced by g_intbig_consistent().
Definition at line 312 of file _intbig_gist.c.
References a, b, and pg_cmp_s32().
Referenced by g_intbig_picksplit().
| Datum g_intbig_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 144 of file _intbig_gist.c.
References _intbig_alloc(), ARRISEMPTY, ARRNELEMS, ARRPTR, CHECKARRVALID, DatumGetArrayTypeP, DatumGetPointer(), fb(), GET_SIGLEN, GETSIGN, gistentryinit, HASH, i, ISALLTRUE, GISTENTRY::key, GISTENTRY::leafkey, LOOPBYTE, GISTENTRY::offset, GISTENTRY::page, palloc_object, PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), GISTENTRY::rel, and sign.
| Datum g_intbig_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 463 of file _intbig_gist.c.
References _intbig_contains(), _intbig_overlap(), ARRNELEMS, ARRPTR, BooleanSearchStrategy, CHECKARRVALID, DatumGetPointer(), fb(), GET_SIGLEN, GETSIGN, GIST_LEAF, HASH, i, ISALLTRUE, GISTENTRY::key, LOOPBYTE, palloc0(), pfree(), PG_FREE_IF_COPY, PG_GETARG_ARRAYTYPE_P, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, RTContainedByStrategyNumber, RTContainsStrategyNumber, RTOldContainedByStrategyNumber, RTOldContainsStrategyNumber, RTOverlapStrategyNumber, RTSameStrategyNumber, and signconsistent().
| Datum g_intbig_decompress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 247 of file _intbig_gist.c.
References PG_GETARG_DATUM, and PG_RETURN_DATUM.
| Datum g_intbig_options | ( | PG_FUNCTION_ARGS | ) |
Definition at line 586 of file _intbig_gist.c.
References add_local_int_reloption(), fb(), init_local_reloptions(), PG_GETARG_POINTER, PG_RETURN_VOID, SIGLEN_DEFAULT, and SIGLEN_MAX.
| Datum g_intbig_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 291 of file _intbig_gist.c.
References DatumGetPointer(), fb(), GET_SIGLEN, hemdist(), newval, PG_GETARG_POINTER, and PG_RETURN_POINTER.
| Datum g_intbig_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 320 of file _intbig_gist.c.
References _intbig_alloc(), comparecost(), fb(), FirstOffsetNumber, GET_SIGLEN, GETENTRY, GETSIGN, hemdist(), i, ISALLTRUE, j, LOOPBYTE, OffsetNumberNext, palloc(), palloc_array, pfree(), PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), qsort, GIST_SPLITVEC::spl_ldatum, GIST_SPLITVEC::spl_left, GIST_SPLITVEC::spl_nleft, GIST_SPLITVEC::spl_nright, GIST_SPLITVEC::spl_rdatum, GIST_SPLITVEC::spl_right, and WISH_F.
| Datum g_intbig_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 111 of file _intbig_gist.c.
References a, b, fb(), GET_SIGLEN, GETSIGN, i, ISALLTRUE, LOOPBYTE, PG_GETARG_POINTER, and PG_RETURN_POINTER.
| Datum g_intbig_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 266 of file _intbig_gist.c.
References _intbig_alloc(), ALLISTRUE, CALCGTSIZE, fb(), GISTTYPE::flag, GET_SIGLEN, GETENTRY, GETSIGN, i, PG_GETARG_POINTER, PG_RETURN_POINTER, SET_VARSIZE(), unionkey(), and VARSIZE().
Definition at line 231 of file _intbig_gist.c.
References a, b, GETSIGN, hemdistsign(), ISALLTRUE, SIGLENBIT, and sizebitvec().
Referenced by g_intbig_penalty(), and g_intbig_picksplit().
| PG_FUNCTION_INFO_V1 | ( | _intbig_in | ) |
| PG_FUNCTION_INFO_V1 | ( | _intbig_out | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_compress | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_consistent | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_decompress | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_options | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_penalty | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_picksplit | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_same | ) |
| PG_FUNCTION_INFO_V1 | ( | g_intbig_union | ) |
Definition at line 209 of file _intbig_gist.c.
References pg_popcount(), and sign.
Referenced by hemdist().