1221 GistEntryVector *entryvec = (GistEntryVector *)PG_GETARG_POINTER(0);
1222 int *sizep = (
int *)PG_GETARG_POINTER(1);
1224 GIDX *box_cur, *box_union;
1226 POSTGIS_DEBUG(4,
"[GIST] 'union' function called");
1228 numranges = entryvec->n;
1230 box_cur = (GIDX *)DatumGetPointer(entryvec->vector[0].key);
1234 for (i = 1; i < numranges; i++)
1236 box_cur = (GIDX *)DatumGetPointer(entryvec->vector[i].key);
1240 *sizep = VARSIZE(box_union);
1242 POSTGIS_DEBUGF(4,
"[GIST] union called, numranges(%i), pageunion %s", numranges, gidx_to_string(box_union));
1244 PG_RETURN_POINTER(box_union);
GIDX * gidx_copy(GIDX *b)
void gidx_merge(GIDX **b_union, GIDX *b_new)