Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d290c8

Browse files
committed
Re-pgindent a few files.
In preparation for landing index AM interface changes.
1 parent57ce9ac commit8d290c8

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
caseHEAPTUPLE_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'tneed 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-
*butin 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
staticinlineint64
28932893
itemptr_encode(ItemPointeritemptr)
28942894
{
2895-
BlockNumberblock=ItemPointerGetBlockNumber(itemptr);
2896-
OffsetNumberoffset=ItemPointerGetOffsetNumber(itemptr);
2897-
int64encoded;
2895+
BlockNumberblock=ItemPointerGetBlockNumber(itemptr);
2896+
OffsetNumberoffset=ItemPointerGetOffsetNumber(itemptr);
2897+
int64encoded;
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
staticinlinevoid
29142914
itemptr_decode(ItemPointeritemptr,int64encoded)
29152915
{
2916-
BlockNumberblock= (BlockNumber) (encoded >>16);
2917-
OffsetNumberoffset= (OffsetNumber) (encoded&0xFFFF);
2916+
BlockNumberblock= (BlockNumber) (encoded >>16);
2917+
OffsetNumberoffset= (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
ItemPointerindexcursor=NULL;
2963-
ItemPointerDatadecoded;
2963+
ItemPointerDatadecoded;
29642964
booltuplesort_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 gatherndoe.
232-
*Thisis almost certainly not exactly the right way to model this, so
233-
*thiswill probably need to be changed at some point...
231+
* returned by the workers when they percolate up to the gathernode. 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
ItemPointerDataheapPtr;
124124
boolrecheck;/* T if quals must be rechecked */
125-
boolrecheckDistances;/* T if distances must be rechecked */
125+
boolrecheckDistances;/* T if distances must be rechecked */
126126
IndexTupleftup;/* data fetched back from the index, used in
127127
* index-only scans */
128-
OffsetNumberoffnum;/* track offset in page to mark tuple as
128+
OffsetNumberoffnum;/* 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
intnumKilled;/* number of currently stored items */
170170
BlockNumbercurBlkno;/* current number of block */
171-
GistNSNcurPageLSN;/* pos in the WAL stream when page was read */
171+
GistNSNcurPageLSN;/* pos in the WAL stream when page was read */
172172

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp