8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.7 2006/10/04 00:29:48 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/backend/access/gin/ginvacuum.c,v 1.8 2006/11/12 06:55:53 neilc Exp $
12
12
*-------------------------------------------------------------------------
13
13
*/
14
14
@@ -34,9 +34,9 @@ typedef struct
34
34
/*
35
35
* Cleans array of ItemPointer (removes dead pointers)
36
36
* Results are always stored in *cleaned, which will be allocated
37
- * if its needed. In case of *cleaned!=NULL caller is resposible to
37
+ * if its needed. In case of *cleaned!=NULL caller is responsible to
38
38
* enough space. *cleaned and items may point to the same
39
- * memory addres .
39
+ * memory address .
40
40
*/
41
41
42
42
static uint32
@@ -195,7 +195,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot,
195
195
MarkBufferDirty (buffer );
196
196
END_CRIT_SECTION ();
197
197
198
- /* if root is a leaf page, we don't desire futher processing */
198
+ /* if root is a leaf page, we don't desire further processing */
199
199
if (!isRoot && GinPageGetOpaque (page )-> maxoff < FirstOffsetNumber )
200
200
hasVoidPage = TRUE;
201
201
}
@@ -459,7 +459,7 @@ ginVacuumPostingTree(GinVacuumState *gvs, BlockNumber rootBlkno)
459
459
/*
460
460
* returns modified page or NULL if page isn't modified.
461
461
* Function works with original page until first change is occured,
462
- * then page is copied into temprorary one.
462
+ * then page is copied into temporary one.
463
463
*/
464
464
static Page
465
465
ginVacuumEntryPage (GinVacuumState * gvs , Buffer buffer , BlockNumber * roots , uint32 * nroot )
@@ -489,7 +489,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
489
489
else if (GinGetNPosting (itup ) > 0 )
490
490
{
491
491
/*
492
- * if we already create temrorary page, we will make changes in
492
+ * if we already create temporary page, we will make changes in
493
493
* place
494
494
*/
495
495
ItemPointerData * cleaned = (tmppage == origpage ) ? NULL : GinGetPosting (itup );
@@ -508,7 +508,7 @@ ginVacuumEntryPage(GinVacuumState *gvs, Buffer buffer, BlockNumber *roots, uint3
508
508
if (tmppage == origpage )
509
509
{
510
510
/*
511
- * On first difference we create temprorary page in memory
511
+ * On first difference we create temporary page in memory
512
512
* and copies content in to it.
513
513
*/
514
514
tmppage = GinPageGetCopyPage (origpage );
0 commit comments