1412 GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
1413 int *sizep = (
int *) PG_GETARG_POINTER(1);
1415 GIDX *box_cur, *box_union;
1417 POSTGIS_DEBUG(4,
"[GIST] 'union' function called");
1419 numranges = entryvec->n;
1421 box_cur = (GIDX*) DatumGetPointer(entryvec->vector[0].key);
1425 for ( i = 1; i < numranges; i++ )
1427 box_cur = (GIDX*) DatumGetPointer(entryvec->vector[i].key);
1431 *sizep = VARSIZE(box_union);
1433 POSTGIS_DEBUGF(4,
"[GIST] union called, numranges(%i), pageunion %s", numranges, gidx_to_string(box_union));
1435 PG_RETURN_POINTER(box_union);
GIDX * gidx_copy(GIDX *b)
void gidx_merge(GIDX **b_union, GIDX *b_new)