1445 GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
1446 int *sizep = (
int *) PG_GETARG_POINTER(1);
1448 BOX2DF *box_cur, *box_union;
1450 POSTGIS_DEBUG(4,
"[GIST] 'union' function called");
1452 numranges = entryvec->n;
1454 box_cur = (BOX2DF*) DatumGetPointer(entryvec->vector[0].key);
1458 for ( i = 1; i < numranges; i++ )
1460 box_cur = (BOX2DF*) DatumGetPointer(entryvec->vector[i].key);
1464 *sizep =
sizeof(BOX2DF);
1466 POSTGIS_DEBUGF(4,
"[GIST] 'union', numranges(%i), pageunion %s", numranges,
box2df_to_string(box_union));
1468 PG_RETURN_POINTER(box_union);
static char * box2df_to_string(const BOX2DF *a)
void box2df_merge(BOX2DF *b_union, BOX2DF *b_new)
BOX2DF * box2df_copy(BOX2DF *b)