1411 GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
1412 int *sizep = (
int *) PG_GETARG_POINTER(1);
1414 GIDX *box_cur, *box_union;
1416 POSTGIS_DEBUG(4,
"[GIST] 'union' function called");
1418 numranges = entryvec->n;
1420 box_cur = (GIDX*) DatumGetPointer(entryvec->vector[0].key);
1424 for ( i = 1; i < numranges; i++ )
1426 box_cur = (GIDX*) DatumGetPointer(entryvec->vector[i].key);
1430 *sizep = VARSIZE(box_union);
1432 POSTGIS_DEBUGF(4,
"[GIST] union called, numranges(%i), pageunion %s", numranges, gidx_to_string(box_union));
1434 PG_RETURN_POINTER(box_union);
static void gidx_merge(GIDX **b_union, GIDX *b_new)
static GIDX * gidx_copy(GIDX *b)