@@ -29,7 +29,7 @@ typedef struct
2929
3030/*
3131 * Forms unions of subkeys after page split, but
32- * uses only tuples aren't in groups of equalent tuples
32+ * uses only tuples that aren't in groups of equivalent tuples
3333 */
3434static void
3535gistunionsubkeyvec (GISTSTATE * giststate , IndexTuple * itvec ,
@@ -200,8 +200,8 @@ do { \
200200
201201/*
202202 * adjust left and right unions according to splits by previous
203- * split by firsts columns. This function is called only in case
204- * when pickSplit doesn't support subspplit .
203+ * split by first columns. This function is called only in case
204+ * when pickSplit doesn't support subsplit .
205205 */
206206
207207static void
@@ -503,8 +503,8 @@ gistSplitHalf(GIST_SPLITVEC *v, int len)
503503}
504504
505505/*
506- * trys to split page by attno key, in a case of null
507- * values move its to separate page.
506+ * tries to split page by attno key, in case of null
507+ * values move those to separate page.
508508 */
509509void
510510gistSplitByKey (Relation r , Page page , IndexTuple * itup , int len , GISTSTATE * giststate ,
@@ -531,7 +531,7 @@ gistSplitByKey(Relation r, Page page, IndexTuple *itup, int len, GISTSTATE *gist
531531 {
532532 /*
533533 * Corner case: All keys in attno column are null, we should try to
534- * split by keys in next column. It all keys in all columns are NULL
534+ * split by keys in next column. If all keys in all columns are NULL
535535 * just split page half by half
536536 */
537537 v -> spl_risnull [attno ] = v -> spl_lisnull [attno ] = TRUE;
@@ -582,7 +582,7 @@ gistSplitByKey(Relation r, Page page, IndexTuple *itup, int len, GISTSTATE *gist
582582 {
583583 /*
584584 * simple case: left and right keys for attno column are
585- * equial
585+ * equal
586586 */
587587 gistSplitByKey (r , page , itup , len , giststate , v , entryvec , attno + 1 );
588588 }
0 commit comments