Fix typos.
authorRobert Haas <rhaas@postgresql.org>
Tue, 15 Mar 2016 22:06:11 +0000 (18:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 15 Mar 2016 22:06:11 +0000 (18:06 -0400)
Oskari Saarenmaa

26 files changed:
contrib/pgcrypto/sha1.h
contrib/sepgsql/label.c
doc/src/sgml/sources.sgml
src/backend/access/transam/twophase.c
src/backend/libpq/auth.c
src/backend/optimizer/util/relnode.c
src/backend/parser/parse_target.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/ipc/dsm_impl.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/shm_mq.c
src/backend/utils/adt/json.c
src/backend/utils/adt/windowfuncs.c
src/backend/utils/misc/guc.c
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/parallel.c
src/bin/pg_upgrade/option.c
src/bin/pgbench/pgbench.c
src/include/storage/shm_toc.h
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/preproc/parse.pl
src/interfaces/ecpg/preproc/type.c
src/test/regress/expected/inherit.out
src/test/regress/expected/replica_identity.out
src/test/regress/sql/inherit.sql
src/test/regress/sql/replica_identity.sql

index 5532ca160d38152fd4edceecd4ca6d67e034fa5b..2f61e454ba440e18a3fcdc95d4ee38632ec46d1f 100644 (file)
@@ -63,7 +63,7 @@ extern void sha1_pad(struct sha1_ctxt *);
 extern void sha1_loop(struct sha1_ctxt *, const uint8 *, size_t);
 extern void sha1_result(struct sha1_ctxt *, uint8 *);
 
-/* compatibilty with other SHA1 source codes */
+/* compatibility with other SHA1 source codes */
 typedef struct sha1_ctxt SHA1_CTX;
 
 #define SHA1Init(x)        sha1_init((x))
index 3e32f1b22db3b48d19f6dd2d334d5658116bc8c8..e12a0e8cb66ac5cf8c7b2365c186f5b0324475dc 100644 (file)
@@ -161,7 +161,7 @@ sepgsql_set_client_label(const char *new_label)
 /*
  * sepgsql_xact_callback
  *
- * A callback routine of transaction commit/abort/prepare.  Commmit or abort
+ * A callback routine of transaction commit/abort/prepare.  Commit or abort
  * changes in the client_label_pending list.
  */
 static void
index fcb3e402f85a132399e3b2a46fbf3627747adb2d..614defaa2f132c7597f22aa0c1ff362a5d609f51 100644 (file)
@@ -860,7 +860,7 @@ BETTER: unrecognized node type: 42
      Code in <productname>PostgreSQL</> should only rely on language
      features available in the C89 standard. That means a conforming
      C89 compiler has to be able to compile postgres, at least aside
-     from a few platform dependant pieces. Features from later
+     from a few platform dependent pieces. Features from later
      revision of the C standard or compiler specific features can be
      used, if a fallback is provided.
     </para>
index c4fd9eff87033ad7b95757c69744af5a44ca82e9..e7234c87bbcc69f32da3b904499c17ef4d143625 100644 (file)
@@ -1613,7 +1613,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon)
     * transaction manager isn't active.
     *
     * It's also possible to move I/O out of the lock, but on
-    * every error we should check whether somebody commited our
+    * every error we should check whether somebody committed our
     * transaction in different backend. Let's leave this optimisation
     * for future, if somebody will spot that this place cause
     * bottleneck.
index 57c2f4848b5b1bf583c89723832bdf815533f6c4..7f1ae8c137af6351637f21e06801924e8533b7d4 100644 (file)
@@ -838,7 +838,7 @@ pg_GSS_recvauth(Port *port)
 
    /*
     * Loop through GSSAPI message exchange. This exchange can consist of
-    * multiple messags sent in both directions. First message is always from
+    * multiple messages sent in both directions. First message is always from
     * the client. All messages from client to server are password packets
     * (type 'p').
     */
@@ -1078,7 +1078,7 @@ pg_SSPI_recvauth(Port *port)
 
    /*
     * Loop through SSPI message exchange. This exchange can consist of
-    * multiple messags sent in both directions. First message is always from
+    * multiple messages sent in both directions. First message is always from
     * the client. All messages from client to server are password packets
     * (type 'p').
     */
index 20e4bf7d125e1b1a744bb8dbf821a5e0a4cc9075..7e37edf5f5dd68840c9c5f605d338d9dbba00eb3 100644 (file)
@@ -501,7 +501,7 @@ build_join_rel(PlannerInfo *root,
     * level.
     *
     * Note that if there are more than two rels in this relation, they could
-    * be divided between inner_rel and outer_rel in any arbitary way.  We
+    * be divided between inner_rel and outer_rel in any arbitrary way.  We
     * assume this doesn't matter, because we should hit all the same baserels
     * and joinclauses while building up to this joinrel no matter which we
     * take; therefore, we should make the same decision here however we get
index ec08e1e118edb55ef88ed08851e292d804aee66b..fc93063ed0b48cbc0922bc27c52ef0f2c50633b5 100644 (file)
@@ -115,7 +115,7 @@ transformTargetEntry(ParseState *pstate,
  *
  * This code acts mostly the same for SELECT, UPDATE, or RETURNING lists;
  * the main thing is to transform the given expressions (the "val" fields).
- * The exprKind parameter distinguishes these cases when necesssary.
+ * The exprKind parameter distinguishes these cases when necessary.
  */
 List *
 transformTargetList(ParseState *pstate, List *targetlist,
index 6c5075f5fb8d984fdb37863ff5a9d4694388cd30..6dd7c6ecb67fcce8dea55663e091db2155b7e8a9 100644 (file)
@@ -113,7 +113,7 @@ int         effective_io_concurrency = 0;
 
 /*
  * GUC variables about triggering kernel writeback for buffers written; OS
- * dependant defaults are set via the GUC mechanism.
+ * dependent defaults are set via the GUC mechanism.
  */
 int            checkpoint_flush_after = 0;
 int            bgwriter_flush_after = 0;
index 5d7b46f9e708a012a4f5b93b4e6b9d0aa1f19680..173b9822191f96fd6ea18b28389b0d2abd0d6948 100644 (file)
@@ -34,7 +34,7 @@
  * substantially, but there should be few systems where we must make do
  * with such poor tools.
  *
- * As ever, Windows requires its own implemetation.
+ * As ever, Windows requires its own implementation.
  *
  * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
index 97e8962ae81026a5742c27b4306ec3e058206d22..740beb691ce7e9c7525b6628627487ca6d95d729 100644 (file)
@@ -71,7 +71,7 @@ typedef struct ProcArrayStruct
     * Known assigned XIDs handling
     */
    int         maxKnownAssignedXids;   /* allocated size of array */
-   int         numKnownAssignedXids;   /* currrent # of valid entries */
+   int         numKnownAssignedXids;   /* current # of valid entries */
    int         tailKnownAssignedXids;  /* index of oldest valid element */
    int         headKnownAssignedXids;  /* index of newest element, + 1 */
    slock_t     known_assigned_xids_lck;        /* protects head/tail pointers */
index 094e9fd7d1ae23ab646ad9733eb52599a45effc1..7d1c9cdbd5a07e0b034a32a674191972866ff3fc 100644 (file)
@@ -1104,7 +1104,7 @@ shm_mq_inc_bytes_read(volatile shm_mq *mq, Size n)
    sender = mq->mq_sender;
    SpinLockRelease(&mq->mq_mutex);
 
-   /* We shoudn't have any bytes to read without a sender. */
+   /* We shouldn't have any bytes to read without a sender. */
    Assert(sender != NULL);
    SetLatch(&sender->procLatch);
 }
index 844db523241c236b277e091a567f5a5e5b827e86..f7044186035a3352652c57d189ec719ebbf48f6a 100644 (file)
@@ -508,7 +508,7 @@ parse_object(JsonLexContext *lex, JsonSemAction *sem)
     */
    lex->lex_level++;
 
-   /* we know this will succeeed, just clearing the token */
+   /* we know this will succeed, just clearing the token */
    lex_expect(JSON_PARSE_OBJECT_START, lex, JSON_TOKEN_OBJECT_START);
 
    tok = lex_peek(lex);
index b9c7cff39d21da7ee22395fca39cf89d7d168751..3c1d3cf62de53e20c989be6d4c3895dd6a5fc47b 100644 (file)
@@ -67,7 +67,7 @@ rank_up(WindowObject winobj)
            up = true;
    }
 
-   /* We can advance the mark, but only *after* acccess to prior row */
+   /* We can advance the mark, but only *after* access to prior row */
    WinSetMarkPosition(winobj, curpos);
 
    return up;
index edcafce2065c5eb6b57c27679bec31b6ac50a0bf..f0d4ec165e9a6b5ada7d4cfda317977aa7ea01bd 100644 (file)
@@ -2391,7 +2391,7 @@ static struct config_int ConfigureNamesInt[] =
            GUC_UNIT_BLOCKS
        },
        &checkpoint_flush_after,
-       /* see bufmgr.h: OS dependant default */
+       /* see bufmgr.h: OS dependent default */
        DEFAULT_CHECKPOINT_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
        NULL, NULL, NULL
    },
@@ -2403,7 +2403,7 @@ static struct config_int ConfigureNamesInt[] =
            GUC_UNIT_BLOCKS
        },
        &backend_flush_after,
-       /* see bufmgr.h: OS dependant default */
+       /* see bufmgr.h: OS dependent default */
        DEFAULT_BACKEND_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
        NULL, NULL, NULL
    },
index a01b03aba36e2eefdfc15804309ffcdda202d2df..4cf0935663e14f2f414d4eb4e157d76555020581 100644 (file)
@@ -296,7 +296,7 @@ DeflateCompressorZlib(ArchiveHandle *AH, CompressorState *cs, bool flush)
            if (zp->avail_out < cs->zlibOutSize)
            {
                /*
-                * Any write function shoud do its own error checking but to
+                * Any write function should do its own error checking but to
                 * make sure we do a check here as well...
                 */
                size_t      len = cs->zlibOutSize - zp->avail_out;
index d8bd9a9e37871ef0a9ec89047f2de03205c0cebb..9ce7711bf4d950d6d4ab5b33f112b68011613532 100644 (file)
@@ -1262,7 +1262,7 @@ readMessageFromPipe(int fd)
    int         ret;
 
    /*
-    * The problem here is that we need to deal with several possibilites: we
+    * The problem here is that we need to deal with several possibilities: we
     * could receive only a partial message or several messages at once. The
     * caller expects us to return exactly one message however.
     *
index 28d05946b09d98e9fc0469d25febf6cfae85764e..4597355461153b890a58ee0e1961201be486da36 100644 (file)
@@ -381,7 +381,7 @@ check_required_directory(char **dirpath, char **configpath,
  * adjust_data_dir
  *
  * If a configuration-only directory was specified, find the real data dir
- * by quering the running server.  This has limited checking because we
+ * by querying the running server.  This has limited checking because we
  * can't check for a running server because we can't find postmaster.pid.
  */
 void
index e3d0d69b3f2b865163dc6ca69b372a8fd3d00e84..5a3c6cd527f86735390d6a848372302b117f2d55 100644 (file)
@@ -535,7 +535,7 @@ getExponentialRand(TState *thread, int64 min, int64 max, double parameter)
    uniform = 1.0 - pg_erand48(thread->random_state);
 
    /*
-    * inner expresion in (cut, 1] (if parameter > 0), rand in [0, 1)
+    * inner expression in (cut, 1] (if parameter > 0), rand in [0, 1)
     */
    Assert((1.0 - cut) != 0.0);
    rand = -log(cut + (1.0 - cut) * uniform) / parameter;
index 4673c478440646a742cd92c653d0e3ec4c7b2687..6822f919c48d627a931914f36ab5101f6708fc4e 100644 (file)
@@ -5,7 +5,7 @@
  *
  * This is intended to provide a simple way to divide a chunk of shared
  * memory (probably dynamic shared memory allocated via dsm_create) into
- * a number of regions and keep track of the addreses of those regions or
+ * a number of regions and keep track of the addresses of those regions or
  * key data structures within those regions.  This is not intended to
  * scale to a large number of keys and will perform poorly if used that
  * way; if you need a large number of pointers, store them within some
index 61811087108680115cae1bf8e8fea2dbb354f2cd..a3ae92eb35b0e0cacd68eba7a333571226b76dbe 100644 (file)
@@ -1,7 +1,7 @@
 /* src/interfaces/ecpg/ecpglib/execute.c */
 
 /*
- * The aim is to get a simpler inteface to the database routines.
+ * The aim is to get a simpler interface to the database routines.
  * All the tidieous messing around with tuples is supposed to be hidden
  * by this function.
  */
index da07eeb83591c59b37d6e27463c702e9e9a2eff1..e21859198d269e1146dffa10c87d36e71b230035 100644 (file)
@@ -632,7 +632,7 @@ sub preload_addons
    my $filename = $path . "/ecpg.addons";
    open(my $fh, '<', $filename) or die;
 
-  # there may be multple lines starting ECPG: and then multiple lines of code.
+  # there may be multiple lines starting ECPG: and then multiple lines of code.
   # the code need to be add to all prior ECPG records.
    my (@needsRules, @code, $record);
 
index 6c2645965eebd92c8bc6a66d133a3a83d5f5245c..0b84b8d3c476aa35413b66fb8f80a734a747a705 100644 (file)
@@ -446,7 +446,7 @@ ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
                    sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
 
                /*
-                * If we created a varchar structure atomatically, counter is
+                * If we created a varchar structure automatically, counter is
                 * greater than 0.
                 */
                if (counter)
index 89b6c1caf47e1d71677101c0a4f82275bf6cdefe..d8b5b1d44ebe2e82494ab61a5445e8817576d11c 100644 (file)
@@ -983,7 +983,7 @@ DETAIL:  drop cascades to table inht2
 drop cascades to table inhts
 drop cascades to table inht3
 drop cascades to table inht4
--- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints
+-- Test non-inheritable indices [UNIQUE, EXCLUDE] constraints
 CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2));
 CREATE TABLE test_constraints_inh () INHERITS (test_constraints);
 \d+ test_constraints
@@ -1049,7 +1049,7 @@ Inherits: test_ex_constraints
 
 DROP TABLE test_ex_constraints_inh;
 DROP TABLE test_ex_constraints;
--- Test non-inheritable foreign key contraints
+-- Test non-inheritable foreign key constraints
 CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
 CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
 CREATE TABLE test_foreign_constraints_inh () INHERITS (test_foreign_constraints);
index e29e2fba674d050e62b6625f1f6157ff8c7c6b49..60d9a424a1b7ae701951aaa2b73bf411e5eb8229 100644 (file)
@@ -65,7 +65,7 @@ SELECT relreplident FROM pg_class WHERE oid = 'test_replica_identity'::regclass;
 (1 row)
 
 ----
--- Make sure index cases succeeed
+-- Make sure index cases succeed
 ----
 -- succeed, primary key
 ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_identity_pkey;
index 793c216376858a69b3a0c3cfb7f662f0347a8b3c..b307a5049bf0277cc5ee082627e4effcb74f9476 100644 (file)
@@ -299,7 +299,7 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
 DROP TABLE inht1, inhs1 CASCADE;
 
 
--- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints
+-- Test non-inheritable indices [UNIQUE, EXCLUDE] constraints
 CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2));
 CREATE TABLE test_constraints_inh () INHERITS (test_constraints);
 \d+ test_constraints
@@ -321,7 +321,7 @@ ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraints_c_excl;
 DROP TABLE test_ex_constraints_inh;
 DROP TABLE test_ex_constraints;
 
--- Test non-inheritable foreign key contraints
+-- Test non-inheritable foreign key constraints
 CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
 CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
 CREATE TABLE test_foreign_constraints_inh () INHERITS (test_foreign_constraints);
index 1ea3e808866107884833c0995db550f206ded4ca..20b682685e9d34c7c8ba322d751c566b80279150 100644 (file)
@@ -44,7 +44,7 @@ ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_iden
 SELECT relreplident FROM pg_class WHERE oid = 'test_replica_identity'::regclass;
 
 ----
--- Make sure index cases succeeed
+-- Make sure index cases succeed
 ----
 
 -- succeed, primary key