Skip to content

Commit 8d290c8

Browse files
committed
Re-pgindent a few files.
In preparation for landing index AM interface changes.
1 parent 57ce9ac commit 8d290c8

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/backend/catalog/index.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,8 +2381,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
23812381
case HEAPTUPLE_INSERT_IN_PROGRESS:
23822382

23832383
/*
2384-
* In "anyvisible" mode, this tuple is visible and we don't
2385-
* need any further checks.
2384+
* In "anyvisible" mode, this tuple is visible and we
2385+
* don't need any further checks.
23862386
*/
23872387
if (anyvisible)
23882388
{
@@ -2437,8 +2437,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
24372437

24382438
/*
24392439
* As with INSERT_IN_PROGRESS case, this is unexpected
2440-
* unless it's our own deletion or a system catalog;
2441-
* but in anyvisible mode, this tuple is visible.
2440+
* unless it's our own deletion or a system catalog; but
2441+
* in anyvisible mode, this tuple is visible.
24422442
*/
24432443
if (anyvisible)
24442444
{
@@ -2892,9 +2892,9 @@ validate_index(Oid heapId, Oid indexId, Snapshot snapshot)
28922892
static inline int64
28932893
itemptr_encode(ItemPointer itemptr)
28942894
{
2895-
BlockNumber block = ItemPointerGetBlockNumber(itemptr);
2896-
OffsetNumber offset = ItemPointerGetOffsetNumber(itemptr);
2897-
int64 encoded;
2895+
BlockNumber block = ItemPointerGetBlockNumber(itemptr);
2896+
OffsetNumber offset = ItemPointerGetOffsetNumber(itemptr);
2897+
int64 encoded;
28982898

28992899
/*
29002900
* Use the 16 least significant bits for the offset. 32 adjacent bits are
@@ -2913,8 +2913,8 @@ itemptr_encode(ItemPointer itemptr)
29132913
static inline void
29142914
itemptr_decode(ItemPointer itemptr, int64 encoded)
29152915
{
2916-
BlockNumber block = (BlockNumber) (encoded >> 16);
2917-
OffsetNumber offset = (OffsetNumber) (encoded & 0xFFFF);
2916+
BlockNumber block = (BlockNumber) (encoded >> 16);
2917+
OffsetNumber offset = (OffsetNumber) (encoded & 0xFFFF);
29182918

29192919
ItemPointerSet(itemptr, block, offset);
29202920
}
@@ -2960,7 +2960,7 @@ validate_index_heapscan(Relation heapRelation,
29602960

29612961
/* state variables for the merge */
29622962
ItemPointer indexcursor = NULL;
2963-
ItemPointerData decoded;
2963+
ItemPointerData decoded;
29642964
bool tuplesort_empty = false;
29652965

29662966
/*

src/backend/optimizer/path/costsize.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ cost_seqscan(Path *path, PlannerInfo *root,
228228
/*
229229
* Primitive parallel cost model. Assume the leader will do half as much
230230
* work as a regular worker, because it will also need to read the tuples
231-
* returned by the workers when they percolate up to the gather ndoe.
232-
* This is almost certainly not exactly the right way to model this, so
233-
* this will probably need to be changed at some point...
231+
* returned by the workers when they percolate up to the gather node. This
232+
* is almost certainly not exactly the right way to model this, so this
233+
* will probably need to be changed at some point...
234234
*/
235235
if (nworkers > 0)
236236
run_cost = run_cost / (nworkers + 0.5);

src/include/access/gist_private.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ typedef struct GISTSearchHeapItem
122122
{
123123
ItemPointerData heapPtr;
124124
bool recheck; /* T if quals must be rechecked */
125-
bool recheckDistances; /* T if distances must be rechecked */
125+
bool recheckDistances; /* T if distances must be rechecked */
126126
IndexTuple ftup; /* data fetched back from the index, used in
127127
* index-only scans */
128-
OffsetNumber offnum; /* track offset in page to mark tuple as
128+
OffsetNumber offnum; /* track offset in page to mark tuple as
129129
* LP_DEAD */
130130
} GISTSearchHeapItem;
131131

@@ -165,10 +165,10 @@ typedef struct GISTScanOpaqueData
165165
double *distances; /* output area for gistindex_keytest */
166166

167167
/* info about killed items if any (killedItems is NULL if never used) */
168-
OffsetNumber *killedItems; /* offset numbers of killed items */
168+
OffsetNumber *killedItems; /* offset numbers of killed items */
169169
int numKilled; /* number of currently stored items */
170170
BlockNumber curBlkno; /* current number of block */
171-
GistNSN curPageLSN; /* pos in the WAL stream when page was read */
171+
GistNSN curPageLSN; /* pos in the WAL stream when page was read */
172172

173173
/* In a non-ordered search, returnable heap items are stored here: */
174174
GISTSearchHeapItem pageData[BLCKSZ / sizeof(IndexTupleData)];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy