Content-Length: 359209 | pFad | http://github.com/postgrespro/postgres_cluster/commit/4ec90f53f10141867d8b86f58d72990a13ff267b

1D Minor formatting cleanup for 2a6368343f · postgrespro/postgres_cluster@4ec90f5 · GitHub
Skip to content

Commit 4ec90f5

Browse files
committed
Minor formatting cleanup for 2a63683
1 parent 0f64595 commit 4ec90f5

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/backend/access/spgist/spgkdtreeproc.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,16 +317,14 @@ spg_kd_inner_consistent(PG_FUNCTION_ARGS)
317317

318318
if (in->norderbys > 0)
319319
{
320-
MemoryContext oldCtx = MemoryContextSwitchTo(
321-
in->traversalMemoryContext);
320+
MemoryContext oldCtx = MemoryContextSwitchTo(in->traversalMemoryContext);
322321
BOX *box = box_copy(&bboxes[i - 1]);
323322

324323
MemoryContextSwitchTo(oldCtx);
325324

326325
out->traversalValues[out->nNodes] = box;
327326

328-
out->distances[out->nNodes] = spg_key_orderbys_distances(
329-
BoxPGetDatum(box), false,
327+
out->distances[out->nNodes] = spg_key_orderbys_distances(BoxPGetDatum(box), false,
330328
in->orderbys, in->norderbys);
331329
}
332330

src/backend/access/spgist/spgquadtreeproc.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,15 @@ spg_quad_inner_consistent(PG_FUNCTION_ARGS)
278278

279279
if (in->norderbys > 0)
280280
{
281-
MemoryContext oldCtx = MemoryContextSwitchTo(
282-
in->traversalMemoryContext);
281+
MemoryContext oldCtx = MemoryContextSwitchTo(in->traversalMemoryContext);
283282

284283
/* Use parent quadrant box as traversalValue */
285284
BOX *quadrant = box_copy(bbox);
286285

287286
MemoryContextSwitchTo(oldCtx);
288287

289288
out->traversalValues[i] = quadrant;
290-
out->distances[i] = spg_key_orderbys_distances(
291-
BoxPGetDatum(quadrant), false,
289+
out->distances[i] = spg_key_orderbys_distances(BoxPGetDatum(quadrant), false,
292290
in->orderbys, in->norderbys);
293291
}
294292
}
@@ -385,16 +383,14 @@ spg_quad_inner_consistent(PG_FUNCTION_ARGS)
385383

386384
if (in->norderbys > 0)
387385
{
388-
MemoryContext oldCtx = MemoryContextSwitchTo(
389-
in->traversalMemoryContext);
386+
MemoryContext oldCtx = MemoryContextSwitchTo(in->traversalMemoryContext);
390387
BOX *quadrant = getQuadrantArea(bbox, centroid, i);
391388

392389
MemoryContextSwitchTo(oldCtx);
393390

394391
out->traversalValues[out->nNodes] = quadrant;
395392

396-
out->distances[out->nNodes] = spg_key_orderbys_distances(
397-
BoxPGetDatum(quadrant), false,
393+
out->distances[out->nNodes] = spg_key_orderbys_distances(BoxPGetDatum(quadrant), false,
398394
in->orderbys, in->norderbys);
399395
}
400396

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/4ec90f53f10141867d8b86f58d72990a13ff267b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy