if (in->norderbys > 0)
{
- MemoryContext oldCtx = MemoryContextSwitchTo(
- in->traversalMemoryContext);
+ MemoryContext oldCtx = MemoryContextSwitchTo(in->traversalMemoryContext);
BOX *box = box_copy(&bboxes[i - 1]);
MemoryContextSwitchTo(oldCtx);
out->traversalValues[out->nNodes] = box;
- out->distances[out->nNodes] = spg_key_orderbys_distances(
- BoxPGetDatum(box), false,
+ out->distances[out->nNodes] = spg_key_orderbys_distances(BoxPGetDatum(box), false,
in->orderbys, in->norderbys);
}
if (in->norderbys > 0)
{
- MemoryContext oldCtx = MemoryContextSwitchTo(
- in->traversalMemoryContext);
+ MemoryContext oldCtx = MemoryContextSwitchTo(in->traversalMemoryContext);
/* Use parent quadrant box as traversalValue */
BOX *quadrant = box_copy(bbox);
MemoryContextSwitchTo(oldCtx);
out->traversalValues[i] = quadrant;
- out->distances[i] = spg_key_orderbys_distances(
- BoxPGetDatum(quadrant), false,
+ out->distances[i] = spg_key_orderbys_distances(BoxPGetDatum(quadrant), false,
in->orderbys, in->norderbys);
}
}
if (in->norderbys > 0)
{
- MemoryContext oldCtx = MemoryContextSwitchTo(
- in->traversalMemoryContext);
+ MemoryContext oldCtx = MemoryContextSwitchTo(in->traversalMemoryContext);
BOX *quadrant = getQuadrantArea(bbox, centroid, i);
MemoryContextSwitchTo(oldCtx);
out->traversalValues[out->nNodes] = quadrant;
- out->distances[out->nNodes] = spg_key_orderbys_distances(
- BoxPGetDatum(quadrant), false,
+ out->distances[out->nNodes] = spg_key_orderbys_distances(BoxPGetDatum(quadrant), false,
in->orderbys, in->norderbys);
}