33
33
#endif
34
34
35
35
/* non-export function prototypes */
36
- static InsertIndexResult
37
- gistdoinsert (Relation r , IndexTuple itup ,
36
+ static InsertIndexResult gistdoinsert (Relation r , IndexTuple itup ,
38
37
GISTSTATE * GISTstate );
39
- static InsertIndexResult
40
- gistentryinsert (Relation r , GISTSTACK * stk ,
38
+ static InsertIndexResult gistentryinsert (Relation r , GISTSTACK * stk ,
41
39
IndexTuple tup ,
42
40
GISTSTATE * giststate );
43
- static void
44
- gistentryinserttwo (Relation r , GISTSTACK * stk , IndexTuple ltup ,
41
+ static void gistentryinserttwo (Relation r , GISTSTACK * stk , IndexTuple ltup ,
45
42
IndexTuple rtup , GISTSTATE * giststate );
46
- static void
47
- gistAdjustKeys (Relation r , GISTSTACK * stk , BlockNumber blk ,
43
+ static void gistAdjustKeys (Relation r , GISTSTACK * stk , BlockNumber blk ,
48
44
char * datum , int att_size , GISTSTATE * giststate );
49
- static void
50
- gistintinsert (Relation r , GISTSTACK * stk , IndexTuple ltup ,
45
+ static void gistintinsert (Relation r , GISTSTACK * stk , IndexTuple ltup ,
51
46
IndexTuple rtup , GISTSTATE * giststate );
52
- static InsertIndexResult
53
- gistSplit (Relation r , Buffer buffer ,
47
+ static InsertIndexResult gistSplit (Relation r , Buffer buffer ,
54
48
GISTSTACK * stack , IndexTuple itup ,
55
49
GISTSTATE * giststate );
56
- static void
57
- gistnewroot (GISTSTATE * giststate , Relation r , IndexTuple lt ,
50
+ static void gistnewroot (GISTSTATE * giststate , Relation r , IndexTuple lt ,
58
51
IndexTuple rt );
59
52
static void GISTInitBuffer (Buffer b , uint32 f );
60
- static BlockNumber
61
- gistChooseSubtree (Relation r , IndexTuple itup , int level ,
53
+ static BlockNumber gistChooseSubtree (Relation r , IndexTuple itup , int level ,
62
54
GISTSTATE * giststate ,
63
55
GISTSTACK * * retstack , Buffer * leafbuf );
64
- static OffsetNumber
65
- gistchoose (Relation r , Page p , IndexTuple it ,
56
+ static OffsetNumber gistchoose (Relation r , Page p , IndexTuple it ,
66
57
GISTSTATE * giststate );
67
58
static int gistnospace (Page p , IndexTuple it );
68
59
void gistdelete (Relation r , ItemPointer tid );
69
60
static IndexTuple gist_tuple_replacekey (Relation r , GISTENTRY entry , IndexTuple t );
70
- static void
71
- gistcentryinit (GISTSTATE * giststate , GISTENTRY * e , char * pr ,
61
+ static void gistcentryinit (GISTSTATE * giststate , GISTENTRY * e , char * pr ,
72
62
Relation r , Page pg , OffsetNumber o , int b , bool l );
73
63
static char * int_range_out (INTRANGE * r );
74
64
@@ -169,7 +159,7 @@ gistbuild(Relation heap,
169
159
slot = NULL ;
170
160
econtext = NULL ;
171
161
}
172
- #endif /* OMIT_PARTIAL_INDEX */
162
+ #endif /* OMIT_PARTIAL_INDEX */
173
163
/* int the tuples as we insert them */
174
164
nh = ni = 0 ;
175
165
@@ -193,7 +183,7 @@ gistbuild(Relation heap,
193
183
ni ++ ;
194
184
continue ;
195
185
}
196
- #endif /* OMIT_PARTIAL_INDEX */
186
+ #endif /* OMIT_PARTIAL_INDEX */
197
187
}
198
188
199
189
/*
@@ -207,7 +197,7 @@ gistbuild(Relation heap,
207
197
slot -> val = htup ;
208
198
if (ExecQual ((List * ) pred , econtext ) == false)
209
199
continue ;
210
- #endif /* OMIT_PARTIAL_INDEX */
200
+ #endif /* OMIT_PARTIAL_INDEX */
211
201
}
212
202
213
203
ni ++ ;
@@ -286,7 +276,7 @@ gistbuild(Relation heap,
286
276
#ifndef OMIT_PARTIAL_INDEX
287
277
ExecDestroyTupleTable (tupleTable , true);
288
278
pfree (econtext );
289
- #endif /* OMIT_PARTIAL_INDEX */
279
+ #endif /* OMIT_PARTIAL_INDEX */
290
280
}
291
281
292
282
/*
@@ -1168,7 +1158,7 @@ initGISTstate(GISTSTATE *giststate, Relation index)
1168
1158
itupform = (Form_pg_index ) GETSTRUCT (htup );
1169
1159
if (!HeapTupleIsValid (htup ))
1170
1160
elog (ERROR , "initGISTstate: index %d not found" ,
1171
- RelationGetRelid (index ));
1161
+ RelationGetRelid (index ));
1172
1162
giststate -> haskeytype = itupform -> indhaskeytype ;
1173
1163
if (giststate -> haskeytype )
1174
1164
{
@@ -1377,4 +1367,4 @@ int_range_out(INTRANGE *r)
1377
1367
return result ;
1378
1368
}
1379
1369
1380
- #endif /* defined GISTDEBUG */
1370
+ #endif /* defined GISTDEBUG */
0 commit comments