Minor spelling fixes
authorStephen Frost <sfrost@snowman.net>
Sat, 1 Jun 2013 14:18:59 +0000 (10:18 -0400)
committerStephen Frost <sfrost@snowman.net>
Sat, 1 Jun 2013 14:18:59 +0000 (10:18 -0400)
Fix a few spelling mistakes.

Per bug report #8193 from Lajos Veres.

contrib/pg_upgrade/relfilenode.c
src/backend/access/transam/xlogreader.c
src/backend/utils/adt/tsrank.c
src/tools/pgindent/typedefs.list

index 667bc1018f2901a6457a80c62c5d3406b3120447..a951fc906547cf352507f4aa598116626cbbb258 100644 (file)
@@ -258,7 +258,7 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
                if (errno == ENOENT)
                    return;
                else
-                   pg_log(PG_FATAL, "error while checking for file existance \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
+                   pg_log(PG_FATAL, "error while checking for file existence \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
                           map->nspname, map->relname, old_file, new_file,
                           getErrorText(errno));
            }
index fc6ff806440b4a7d606bc1c71247c17bc7a02db6..6c971f30a2b49f11127ec4390ed90bb0bb0a36ef 100644 (file)
@@ -903,7 +903,7 @@ ValidXLogPageHeader(XLogReaderState *state, XLogRecPtr recptr,
 /*
  * Find the first record with at an lsn >= RecPtr.
  *
- * Useful for checking wether RecPtr is a valid xlog address for reading and to
+ * Useful for checking whether RecPtr is a valid xlog address for reading and to
  * find the first valid address after some address when dumping records for
  * debugging purposes.
  */
index eb90f1b93201282ae8acde48675c055038bb44cc..1dbe47ef91709ba43c2ef176cb27624acc5da488 100644 (file)
@@ -530,11 +530,11 @@ typedef struct
    int         q;
    DocRepresentation *begin;
    DocRepresentation *end;
-} Extention;
+} CoverExt;
 
 
 static bool
-Cover(DocRepresentation *doc, int len, QueryRepresentation *qr, Extention *ext)
+Cover(DocRepresentation *doc, int len, QueryRepresentation *qr, CoverExt *ext)
 {
    DocRepresentation *ptr;
    int         lastpos = ext->pos;
@@ -729,7 +729,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method)
    int         len,
                i,
                doclen = 0;
-   Extention   ext;
+   CoverExt    ext;
    double      Wdoc = 0.0;
    double      invws[lengthof(weights)];
    double      SumDist = 0.0,
@@ -759,7 +759,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method)
        return 0.0;
    }
 
-   MemSet(&ext, 0, sizeof(Extention));
+   MemSet(&ext, 0, sizeof(CoverExt));
    while (Cover(doc, doclen, &qr, &ext))
    {
        double      Cpos = 0.0;
index b68a649e415d90f6292a0cbdba1f362f906d6e1c..452235de8afdcfe014fe2fa89a8e5996567ababa 100644 (file)
@@ -326,6 +326,7 @@ CopyStmt
 Cost
 CostSelector
 Counters
+CoverExt
 CoverPos
 CreateCastStmt
 CreateConversionStmt
@@ -487,7 +488,6 @@ ExtensionBehavior
 ExtensionControlFile
 ExtensionInfo
 ExtensionVersionInfo
-Extention
 FDWCollateState
 FD_SET
 FILE