1381 GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
1382 int *sizep = (
int *) PG_GETARG_POINTER(1);
1384 BOX2DF *box_cur, *box_union;
1386 POSTGIS_DEBUG(4,
"[GIST] 'union' function called");
1388 numranges = entryvec->n;
1390 box_cur = (BOX2DF*) DatumGetPointer(entryvec->vector[0].key);
1394 for ( i = 1; i < numranges; i++ )
1396 box_cur = (BOX2DF*) DatumGetPointer(entryvec->vector[i].key);
1400 *sizep =
sizeof(BOX2DF);
1402 POSTGIS_DEBUGF(4,
"[GIST] 'union', numranges(%i), pageunion %s", numranges,
box2df_to_string(box_union));
1404 PG_RETURN_POINTER(box_union);
static BOX2DF * box2df_copy(BOX2DF *b)
static char * box2df_to_string(const BOX2DF *a)
static void box2df_merge(BOX2DF *b_union, BOX2DF *b_new)