Fix various common mispellings.
authorGreg Stark <[email protected]>
Fri, 3 Jun 2016 14:13:36 +0000 (15:13 +0100)
committerGreg Stark <[email protected]>
Fri, 3 Jun 2016 15:08:45 +0000 (16:08 +0100)
Mostly these are just comments but there are a few in documentation
and a handful in code and tests. Hopefully this doesn't cause too much
unnecessary pain for backpatching. I relented from some of the most
common like "thru" for that reason. The rest don't seem numerous
enough to cause problems.

Thanks to Kevin Lyda's tool https://pypi.python.org/pypi/misspellings

26 files changed:
doc/src/sgml/config.sgml
doc/src/sgml/pgcrypto.sgml
doc/src/sgml/ref/psql-ref.sgml
src/backend/access/transam/generic_xlog.c
src/backend/catalog/namespace.c
src/backend/catalog/sql_features.txt
src/backend/commands/cluster.c
src/backend/main/main.c
src/backend/nodes/README
src/backend/optimizer/util/tlist.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/walsender.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/ipc/procarray.c
src/backend/storage/smgr/md.c
src/backend/tsearch/spell.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/geo_spgist.c
src/backend/utils/resowner/resowner.c
src/bin/pg_dump/dumputils.c
src/include/port/win32.h
src/include/storage/freespace.h
src/test/modules/test_ddl_deparse/README
src/test/regress/expected/event_trigger.out
src/test/regress/sql/event_trigger.sql
src/tools/msvc/Project.pm

index 72b5920aba1c3342cc25db70563573827f180166..94e183b9c3e8ff6c757e4dafffe70ae84a9fb70d 100644 (file)
@@ -2518,7 +2518,7 @@ include_dir 'conf.d'
         less than <varname>wal_writer_flush_after</> bytes of WAL have been
         produced since, WAL is only written to the OS, not flushed to disk.
         If <varname>wal_writer_flush_after</> is set to <literal>0</> WAL is
-        flushed everytime the WAL writer has written WAL.  The default is
+        flushed every time the WAL writer has written WAL.  The default is
         <literal>1MB</literal>. This parameter can only be set in the
         <filename>postgresql.conf</> file or on the server command line.
        </para>
index a3b987a4c4e0cf1741ee94e074ca7a81fb355164..5f8bbf9f4ec481f46bb1d11c84a218ba874be9d2 100644 (file)
@@ -866,7 +866,7 @@ Applies to: pgp_sym_encrypt
     be a value between 1024 and 65011712, inclusive.
    </para>
 <literallayout>
-Default: A random value bewteen 65536 and 253952
+Default: A random value between 65536 and 253952
 Applies to: pgp_sym_encrypt, only with s2k-mode=3
 </literallayout>
   </sect4>
index df79a3733fa44b9ec7cbf5530c159f33f1cf0583..06803ab89ca08e3f1021e5c1021ee9ffc1f38aca 100644 (file)
@@ -4168,7 +4168,7 @@ testdb=&gt; <userinput>\crosstabview first second</userinput>
 </programlisting>
 
 This second example shows a multiplication table with rows sorted in reverse
-numerical order and columns with an independant, ascending numerical order.
+numerical order and columns with an independent, ascending numerical order.
 <programlisting>
 testdb=&gt; <userinput>SELECT t1.first as "A", t2.first+100 AS "B", t1.first*(t2.first+100) as "AxB",</userinput>
 testdb(&gt; <userinput>row_number() over(order by t2.first) AS ord</userinput>
index ae874cc50d4d37092bb4aa242606cb9ff805f03f..c33e7beb6a47d7d7fae01745e949acf4ba492927 100644 (file)
@@ -64,7 +64,7 @@ struct GenericXLogState
    /*
     * page's images. Should be first in this struct to have MAXALIGN'ed
     * images addresses, because some code working with pages directly aligns
-    * addresses, not an offsets from begining of page
+    * addresses, not offsets from beginning of page
     */
    char        images[MAX_GENERIC_XLOG_PAGES * BLCKSZ];
    PageData    pages[MAX_GENERIC_XLOG_PAGES];
index 446b2ac618a70968776076705d01369e732f5833..a1aba8ee556bf810214906d73d3b181215b0987d 100644 (file)
@@ -297,7 +297,7 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
                    namespaceId = LookupExplicitNamespace(relation->schemaname, missing_ok);
 
                    /*
-                    * For missing_ok, allow a non-existant schema name to
+                    * For missing_ok, allow a non-existent schema name to
                     * return InvalidOid.
                     */
                    if (namespaceId != myTempNamespace)
index 71c08afeff5f1b5333ceab08644ef146f6cf49b6..8956ba93046fa4875e990d0b8b2ed4663f92f7c3 100644 (file)
@@ -316,7 +316,7 @@ F831    Full cursor update          NO
 F831   Full cursor update  01  Updatable scrollable cursors    NO  
 F831   Full cursor update  02  Updatable ordered cursors   NO  
 F841   LIKE_REGEX predicate            NO  
-F842   OCCURENCES_REGEX function           NO  
+F842   OCCURRENCES_REGEX function          NO  
 F843   POSITION_REGEX function         NO  
 F844   SUBSTRING_REGEX function            NO  
 F845   TRANSLATE_REGEX function            NO  
index 5cb28cfa735d8184e3ec3ece51df5bf296833c52..43bbd9059197379a3ba922dd516021644db5af5a 100644 (file)
@@ -248,7 +248,7 @@ cluster(ClusterStmt *stmt, bool isTopLevel)
  * swapping the relfilenodes of the new table and the old table, so
  * the OID of the original table is preserved.  Thus we do not lose
  * GRANT, inheritance nor references to this table (this was a bug
- * in releases thru 7.3).
+ * in releases through 7.3).
  *
  * Indexes are rebuilt too, via REINDEX. Since we are effectively bulk-loading
  * the new table, it's better to create the indexes afterwards than to fill
index 020c8939def00ca6b075255ee00d3fd3115758c7..da86c6243f13895db331995ac5657d72d5b6c484 100644 (file)
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
         * read-only activities.  The -C case is important because pg_ctl may
         * try to invoke it while still holding administrator privileges on
         * Windows.  Note that while -C can normally be in any argv position,
-        * if you wanna bypass the root check you gotta put it first.  This
+        * if you want to bypass the root check you must put it first.  This
         * reduces the risk that we might misinterpret some other mode's -C
         * switch as being the postmaster/postgres one.
         */
index 95de7a1e2a2622dc4a36ba19ecd2247c45e5e699..2df4389437e437cafa41a71546624a814819c5bc 100644 (file)
@@ -46,7 +46,7 @@ FILES IN src/include/nodes/
 Steps to Add a Node
 -------------------
 
-Suppose you wanna define a node Foo:
+Suppose you want to define a node Foo:
 
 1. Add a tag (T_Foo) to the enum NodeTag in nodes.h.  (If you insert the
    tag in a way that moves the numbers associated with existing tags,
index 94825408b2a4449e6c336e90d625a3098417cba9..465cb9e8512d037192034983ceb16d801f8e1266 100644 (file)
@@ -770,7 +770,7 @@ apply_pathtarget_labeling_to_tlist(List *tlist, PathTarget *target)
  *   the aggtranstype or aggserialtype. This allows exprType() to return the
  *   actual type that will be produced.
  *
- * Note: We expect 'target' to be a flat target list and not have Aggrefs burried
+ * Note: We expect 'target' to be a flat target list and not have Aggrefs buried
  * within other expressions.
  */
 void
index 57821c34027e442137d33258bdf49fbf828cea51..52b0d41fa694fe7a133bde3b316eb42ea9762b2b 100644 (file)
@@ -563,7 +563,7 @@ ReorderBufferTXNByXid(ReorderBuffer *rb, TransactionId xid, bool create,
        }
 
        /*
-        * cached as non-existant, and asked not to create? Then nothing else
+        * cached as non-existent, and asked not to create? Then nothing else
         * to do.
         */
        if (!create)
index 926a247b66cde690802e84b29eba861b7fb73e71..5cd4d51865db41159e7f147fadd057c836040e24 100644 (file)
@@ -747,7 +747,7 @@ StartReplication(StartReplicationCmd *cmd)
  *
  * Inside the walsender we can do better than logical_read_local_xlog_page,
  * which has to do a plain sleep/busy loop, because the walsender's latch gets
- * set everytime WAL is flushed.
+ * set every time WAL is flushed.
  */
 static int
 logical_read_xlog_page(XLogReaderState *state, XLogRecPtr targetPagePtr, int reqLen,
index e5dafaf00c045286d37eb55525ba56ea0e64b2c9..8a830d4f21d5cd61aec9bc694f5f225e8bff38d7 100644 (file)
@@ -1973,7 +1973,7 @@ BufferSync(int flags)
        }
 
        /*
-        * Measure progress independent of actualy having to flush the buffer
+        * Measure progress independent of actually having to flush the buffer
         * - otherwise writing become unbalanced.
         */
        ts_stat->progress += ts_stat->progress_slice;
index 193035ec26245b679fd5733d371c32a08b454d6d..e9de51bdfa03115b96bb9c0aff584e86356972ae 100644 (file)
@@ -642,7 +642,7 @@ ProcArrayInitRecovery(TransactionId initializedUptoXID)
    Assert(TransactionIdIsNormal(initializedUptoXID));
 
    /*
-    * we set latestObservedXid to the xid SUBTRANS has been initialized upto,
+    * we set latestObservedXid to the xid SUBTRANS has been initialized up to,
     * so we can extend it from that point onwards in
     * RecordKnownAssignedTransactionIds, and when we get consistent in
     * ProcArrayApplyRecoveryInfo().
index f7c4311dec82b7c1503cffcb822f215ac27a5e21..f329d1538c38297dfe6fd07a4c33b4812f6ea2b1 100644 (file)
@@ -1788,7 +1788,7 @@ _mdfd_getseg(SMgrRelation reln, ForkNumber forknum, BlockNumber blkno,
    BlockNumber targetseg;
    BlockNumber nextsegno;
 
-   /* some way to handle non-existant segments needs to be specified */
+   /* some way to handle non-existent segments needs to be specified */
    Assert(behavior &
           (EXTENSION_FAIL | EXTENSION_CREATE | EXTENSION_RETURN_NULL));
 
index f48664b09f962190639f40b4157dda93bf3ec088..8b46ea5bf914a357344fbcb06c18a7cc98b8ae07 100644 (file)
@@ -1162,7 +1162,7 @@ getAffixFlagSet(IspellDict *Conf, char *s)
 
        if (curaffix > 0 && curaffix <= Conf->nAffixData)
            /*
-            * Do not substract 1 from curaffix
+            * Do not subtract 1 from curaffix
             * because empty string was added in NIImportOOAffixes
             */
            return Conf->AffixData[curaffix];
index 74d89c6357bebe59813499ae5aa64c056f74476d..d622e98f30a8eb6e819d8e19367539c02db9ebd1 100644 (file)
@@ -3146,15 +3146,15 @@ DCH_from_char(FormatNode *node, char *in, TmFromChar *out)
                {
                    int         matched,
                                years,
-                               millenia,
+                               millennia,
                                nch;
 
-                   matched = sscanf(s, "%d,%03d%n", &millenia, &years, &nch);
+                   matched = sscanf(s, "%d,%03d%n", &millennia, &years, &nch);
                    if (matched < 2)
                        ereport(ERROR,
                                (errcode(ERRCODE_INVALID_DATETIME_FORMAT),
                              errmsg("invalid input string for \"Y,YYY\"")));
-                   years += (millenia * 1000);
+                   years += (millennia * 1000);
                    from_char_set_int(&out->year, years, n);
                    out->yysz = 4;
                    s += nch;
index 40fbfe749436a1196596370f71acdc669ae33412..e3945f20810f1810511323f02039ccf0dbc37a09 100644 (file)
@@ -45,7 +45,7 @@
  * (3) the prefix of the current node
  *
  * If we visualize them on our simplified drawing (see the drawing above);
- * transfered boundaries of (1) would be the outer axis, relevant part
+ * transferred boundaries of (1) would be the outer axis, relevant part
  * of (2) would be the up right part of the other axis, and (3) would be
  * the inner axis.
  *
index 09ee85d8d19d0a16c561d2f6487ecca73e8ab7f0..6856ad0d19f683d45c0d7ec3b27f8582befc65fd 100644 (file)
@@ -373,7 +373,7 @@ ResourceArrayGetAny(ResourceArray *resarr, Datum *value)
    }
    else
    {
-       /* Hash: search forward from whereever we were last. */
+       /* Hash: search forward from wherever we were last. */
        uint32      mask = resarr->capacity - 1;
 
        for (;;)
index 0acdf54fa5eb85eb42e436a8e60a1863a32acc16..98ffb099ff61b422e4a391c0feda714209fe9e4d 100644 (file)
@@ -236,7 +236,7 @@ buildACLCommands(const char *name, const char *subname,
             * manner by first REVOKE'ing the rights and then GRANT'ing them
             * after.  With 9.6 and above, what we need to REVOKE and what we
             * need to GRANT is figured out when we dump and stashed into
-            * "racls" and "acls", respectivly.  See above.
+            * "racls" and "acls", respectively.  See above.
             */
            if (remoteVersion < 90600 && owner
                && strcmp(grantee->data, owner) == 0
index d389e83a6cfbe24c73bd90f7166ff94fbff0a40b..4453c903466266acbc286ff8e656cea122da960d 100644 (file)
@@ -9,7 +9,7 @@
  * Leave a higher value in place. When building with at least Visual
  * Studio 2015 the minimum requirement is Windows Vista (0x0600) to
  * get support for GetLocaleInfoEx() with locales. For everything else
- * the minumum version is Windows XP (0x0501).
+ * the minimum version is Windows XP (0x0501).
  * Also for VS2015, add a define that stops compiler complaints about
  * using the old Winsock API.
  */
index 16c052b8bcea288ee6c3cf867b93db43c93851d3..ce95ef3064d8a22bb3fc1b18aff3975475e16c53 100644 (file)
@@ -33,8 +33,8 @@ extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
 extern void FreeSpaceMapTruncateRel(Relation rel, BlockNumber nblocks);
 extern void FreeSpaceMapVacuum(Relation rel);
 extern void UpdateFreeSpaceMap(Relation rel,
-                           BlockNumber firtsBlkNum,
-                           BlockNumber lastBlkNum,
+                           BlockNumber startBlkNum,
+                           BlockNumber endBlkNum,
                            Size freespace);
 
 #endif   /* FREESPACE_H_ */
index f02640731e8c26b389abd6e0a852fb08e98bddf7..b12a129854997ece2c5f30436b22340de1d12a1f 100644 (file)
@@ -4,5 +4,5 @@ demonstration of how to use the datatype, and to provide some unit tests for
 it.
 
 The functions in this extension are intended to be able to process some
-part of the struct and produce some readable output, preferrably handling
+part of the struct and produce some readable output, preferably handling
 all possible cases so that SQL test code can be written.
index ee68317e5dcecd60e5dcd67e9ee224986aea2ee5..bdc2dba25ba60b696552c17dc22f5f182c92e41d 100644 (file)
@@ -30,14 +30,14 @@ create event trigger regress_event_trigger_end on ddl_command_end
    execute procedure test_event_trigger();
 -- should fail, food is not a valid filter variable
 create event trigger regress_event_trigger2 on ddl_command_start
-   when food in ('sandwhich')
+   when food in ('sandwich')
    execute procedure test_event_trigger();
 ERROR:  unrecognized filter variable "food"
--- should fail, sandwhich is not a valid command tag
+-- should fail, sandwich is not a valid command tag
 create event trigger regress_event_trigger2 on ddl_command_start
-   when tag in ('sandwhich')
+   when tag in ('sandwich')
    execute procedure test_event_trigger();
-ERROR:  filter value "sandwhich" not recognized for filter variable "tag"
+ERROR:  filter value "sandwich" not recognized for filter variable "tag"
 -- should fail, create skunkcabbage is not a valid command tag
 create event trigger regress_event_trigger2 on ddl_command_start
    when tag in ('create table', 'create skunkcabbage')
index b293f5c0481954be9d8f109c136c5c4ba3cac919..cfe94e7f9cdc045eb9d8979d2bbcf2b278988246 100644 (file)
@@ -32,12 +32,12 @@ create event trigger regress_event_trigger_end on ddl_command_end
 
 -- should fail, food is not a valid filter variable
 create event trigger regress_event_trigger2 on ddl_command_start
-   when food in ('sandwhich')
+   when food in ('sandwich')
    execute procedure test_event_trigger();
 
--- should fail, sandwhich is not a valid command tag
+-- should fail, sandwich is not a valid command tag
 create event trigger regress_event_trigger2 on ddl_command_start
-   when tag in ('sandwhich')
+   when tag in ('sandwich')
    execute procedure test_event_trigger();
 
 -- should fail, create skunkcabbage is not a valid command tag
index 4ce09418537e64e70a95c9c991a22016a7d043bc..a4eb653c260e032075b0fca9121366bfb13b81ae 100644 (file)
@@ -368,7 +368,7 @@ sub Save
 
 sub GetAdditionalLinkerDependencies
 {
-   my ($self, $cfgname, $seperator) = @_;
+   my ($self, $cfgname, $separator) = @_;
    my $libcfg = (uc $cfgname eq "RELEASE") ? "MD" : "MDd";
    my $libs = '';
    foreach my $lib (@{ $self->{libraries} })
@@ -382,7 +382,7 @@ sub GetAdditionalLinkerDependencies
                last;
            }
        }
-       $libs .= $xlib . $seperator;
+       $libs .= $xlib . $separator;
    }
    $libs =~ s/.$//;
    $libs =~ s/__CFGNAME__/$cfgname/g;