Commit c9fc28a7 authored by Stephen Frost's avatar Stephen Frost

Minor spelling fixes

Fix a few spelling mistakes.

Per bug report #8193 from Lajos Veres.
parent 551938ae
...@@ -258,7 +258,7 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map, ...@@ -258,7 +258,7 @@ transfer_relfile(pageCnvCtx *pageConverter, FileNameMap *map,
if (errno == ENOENT) if (errno == ENOENT)
return; return;
else 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, map->nspname, map->relname, old_file, new_file,
getErrorText(errno)); getErrorText(errno));
} }
......
...@@ -903,7 +903,7 @@ ValidXLogPageHeader(XLogReaderState *state, XLogRecPtr recptr, ...@@ -903,7 +903,7 @@ ValidXLogPageHeader(XLogReaderState *state, XLogRecPtr recptr,
/* /*
* Find the first record with at an lsn >= 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 * find the first valid address after some address when dumping records for
* debugging purposes. * debugging purposes.
*/ */
......
...@@ -530,11 +530,11 @@ typedef struct ...@@ -530,11 +530,11 @@ typedef struct
int q; int q;
DocRepresentation *begin; DocRepresentation *begin;
DocRepresentation *end; DocRepresentation *end;
} Extention; } CoverExt;
static bool static bool
Cover(DocRepresentation *doc, int len, QueryRepresentation *qr, Extention *ext) Cover(DocRepresentation *doc, int len, QueryRepresentation *qr, CoverExt *ext)
{ {
DocRepresentation *ptr; DocRepresentation *ptr;
int lastpos = ext->pos; int lastpos = ext->pos;
...@@ -729,7 +729,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method) ...@@ -729,7 +729,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method)
int len, int len,
i, i,
doclen = 0; doclen = 0;
Extention ext; CoverExt ext;
double Wdoc = 0.0; double Wdoc = 0.0;
double invws[lengthof(weights)]; double invws[lengthof(weights)];
double SumDist = 0.0, double SumDist = 0.0,
...@@ -759,7 +759,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method) ...@@ -759,7 +759,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method)
return 0.0; return 0.0;
} }
MemSet(&ext, 0, sizeof(Extention)); MemSet(&ext, 0, sizeof(CoverExt));
while (Cover(doc, doclen, &qr, &ext)) while (Cover(doc, doclen, &qr, &ext))
{ {
double Cpos = 0.0; double Cpos = 0.0;
......
...@@ -326,6 +326,7 @@ CopyStmt ...@@ -326,6 +326,7 @@ CopyStmt
Cost Cost
CostSelector CostSelector
Counters Counters
CoverExt
CoverPos CoverPos
CreateCastStmt CreateCastStmt
CreateConversionStmt CreateConversionStmt
...@@ -487,7 +488,6 @@ ExtensionBehavior ...@@ -487,7 +488,6 @@ ExtensionBehavior
ExtensionControlFile ExtensionControlFile
ExtensionInfo ExtensionInfo
ExtensionVersionInfo ExtensionVersionInfo
Extention
FDWCollateState FDWCollateState
FD_SET FD_SET
FILE FILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment