Lots of doc corrections.
authorRobert Haas <rhaas@postgresql.org>
Tue, 24 Apr 2012 02:43:09 +0000 (22:43 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 24 Apr 2012 02:43:09 +0000 (22:43 -0400)
Josh Kupershmidt

71 files changed:
contrib/dblink/dblink.c
contrib/fuzzystrmatch/fuzzystrmatch.c
contrib/fuzzystrmatch/levenshtein.c
contrib/hstore/hstore_io.c
contrib/pg_upgrade/info.c
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/version_old_8_3.c
contrib/pgcrypto/crypt-des.c
contrib/pgcrypto/imath.c
contrib/pgcrypto/pgp-pgsql.c
contrib/sepgsql/label.c
contrib/sslinfo/sslinfo.c
doc/src/sgml/release-7.4.sgml
doc/src/sgml/release-8.0.sgml
doc/src/sgml/release-8.1.sgml
doc/src/sgml/release-8.2.sgml
src/Makefile.global.in
src/backend/access/gin/ginentrypage.c
src/backend/access/gin/ginfast.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/README
src/backend/access/transam/multixact.c
src/backend/access/transam/xlog.c
src/backend/catalog/pg_shdepend.c
src/backend/commands/copy.c
src/backend/commands/tablecmds.c
src/backend/commands/typecmds.c
src/backend/executor/nodeMergejoin.c
src/backend/libpq/auth.c
src/backend/parser/gram.y
src/backend/parser/parse_collate.c
src/backend/port/win32/socket.c
src/backend/postmaster/checkpointer.c
src/backend/storage/file/reinit.c
src/backend/storage/ipc/procarray.c
src/backend/storage/lmgr/predicate.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/tsquery_cleanup.c
src/backend/utils/adt/tsrank.c
src/backend/utils/mb/wchar.c
src/bin/pg_config/pg_config.c
src/bin/pg_dump/pg_backup_custom.c
src/bin/pg_dump/pg_dump.c
src/bin/pgevent/pgmsgevent.h
src/bin/psql/command.c
src/include/access/itup.h
src/include/port/win32.h
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/prepare.c
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/timestamp.c
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/win32.c
src/nls-global.mk
src/pl/tcl/expected/pltcl_setup.out
src/pl/tcl/sql/pltcl_setup.sql
src/test/mb/README
src/test/regress/expected/foreign_key.out
src/test/regress/pg_regress.c
src/test/regress/sql/foreign_key.sql
src/timezone/tznames/Asia.txt
src/timezone/tznames/Default
src/tools/backend/index.html
src/tools/msvc/README
src/tools/msvc/VSObjectFactory.pm
src/tools/pginclude/pgcompinclude
src/tools/pginclude/pgrminclude

index 8154cae7bdb90870dabf6cc2473645dbc0e968dc..84d7c49258f9d9708a62343d6e21e68d71d22791 100644 (file)
@@ -1795,7 +1795,7 @@ dblink_current_query(PG_FUNCTION_ARGS)
 /*
  * Retrieve async notifications for a connection.
  *
- * Returns an setof record of notifications, or an empty set if none recieved.
+ * Returns an setof record of notifications, or an empty set if none received.
  * Can optionally take a named connection as parameter, but uses the unnamed connection per default.
  *
  */
index b9c21652100fdd6409fbb5e68e9ae6f26327f499..8a1771b9700d463b26b85d8fb647fbdfbab1a2b4 100644 (file)
@@ -157,7 +157,7 @@ getcode(char c)
 /* These letters are passed through unchanged */
 #define NOCHANGE(c) (getcode(c) & 2)   /* FJMNR */
 
-/* These form dipthongs when preceding H */
+/* These form diphthongs when preceding H */
 #define AFFECTH(c)     (getcode(c) & 4)        /* CGPST */
 
 /* These make C and G soft */
index 40035ca78c414219c4faa7e5810c8d32e3b1c44e..90d4f2169d37360ee75b9bfcf8e00a741672437b 100644 (file)
@@ -171,7 +171,7 @@ levenshtein_internal(text *s, text *t,
                         * length.      Each additional deletion forces another insertion, so
                         * the best-case total cost increases by ins_c + del_c. If the
                         * string is shrinking, the minimum theoretical cost assumes no
-                        * excess deletions; that is, we're starting no futher right than
+                        * excess deletions; that is, we're starting no further right than
                         * column n - m.  If we do start further right, the best-case
                         * total cost increases by ins_c + del_c for each move right.
                         */
index 0eb48cf580634feb6a18218709b2cd947e2b0e6d..dde6c4b376ea2a82ed7d3cc0ef040e52f4df393a 100644 (file)
@@ -74,7 +74,7 @@ get_val(HSParser *state, bool ignoreeq, bool *escaped)
                        }
                        else if (*(state->ptr) == '=' && !ignoreeq)
                        {
-                               elog(ERROR, "Syntax error near '%c' at postion %d", *(state->ptr), (int4) (state->ptr - state->begin));
+                               elog(ERROR, "Syntax error near '%c' at position %d", *(state->ptr), (int4) (state->ptr - state->begin));
                        }
                        else if (*(state->ptr) == '\\')
                        {
index e0e3a9f0f5f2c87a27ffa58a4a97df59912c3623..5b2b9eb28c18a126b15d9df65d2b17d1d39c7ab6 100644 (file)
@@ -234,7 +234,7 @@ get_db_infos(ClusterInfo *cluster)
 /*
  * get_rel_infos()
  *
- * gets the relinfos for all the user tables of the database refered
+ * gets the relinfos for all the user tables of the database referred
  * by "db".
  *
  * NOTE: we assume that relations/entities with oids greater than
index fa48ef18dc996a9909b2540748846b99bb3653fe..cc74f118086abe6b7d6ef4670fe20311afdd9acc 100644 (file)
@@ -15,7 +15,7 @@
  *     oids are the same between old and new clusters.  This is important
  *     because toast oids are stored as toast pointers in user tables.
  *
- *     FYI, while pg_class.oid and pg_class.relfilenode are intially the same
+ *     FYI, while pg_class.oid and pg_class.relfilenode are initially the same
  *     in a cluster, but they can diverge due to CLUSTER, REINDEX, or VACUUM
  *     FULL.  The new cluster will have matching pg_class.oid and
  *     pg_class.relfilenode values and be based on the old oid value.  This can
index c60374ee9b2a98ac0c7a5dc90f19ef67f3995fe1..542425c7c9eff3d761f7839904fcfab7ac90478f 100644 (file)
@@ -396,7 +396,7 @@ old_8_3_rebuild_tsvector_tables(ClusterInfo *cluster, bool check_mode)
 
                PQclear(res);
 
-               /* XXX Mark tables as not accessable somehow */
+               /* XXX Mark tables as not accessible somehow */
 
                PQfinish(conn);
        }
@@ -666,7 +666,7 @@ old_8_3_invalidate_bpchar_pattern_ops_indexes(ClusterInfo *cluster,
  *     we don't transfer sequence files but instead use the CREATE SEQUENCE
  *     command from the schema dump, and use setval() to restore the sequence
  *     value and 'is_called' from the old database.  This is safe to run
- *     by pg_upgrade because sequence files are not transfered from the old
+ *     by pg_upgrade because sequence files are not transferred from the old
  *     server, even in link mode.
  */
 char *
index 44475a1b446c8fc903c26ad20de2234982f3a8a7..cea80b55e998fc490cf4d93e1483d31aca19bd17 100644 (file)
@@ -711,7 +711,7 @@ px_crypt_des(const char *key, const char *setting)
 
                /*
                 * Double check that we weren't given a short setting. If we were, the
-                * above code will probably have created wierd values for count and
+                * above code will probably have created weird values for count and
                 * salt, but we don't really care. Just make sure the output string
                 * doesn't have an extra NUL in it.
                 */
index de240763229a8eff8eae034bf69f4a20adb2d556..3286cd9d80a04f69efb2bfb43e1f1dc420fa9520 100644 (file)
@@ -647,7 +647,7 @@ mp_int_add(mp_int a, mp_int b, mp_int c)
                /* Different signs -- subtract magnitudes, preserve sign of greater */
                mp_int          x,
                                        y;
-               int                     cmp = s_ucmp(a, b); /* magnitude comparision, sign ignored */
+               int                     cmp = s_ucmp(a, b); /* magnitude comparison, sign ignored */
 
                /* Set x to max(a, b), y to min(a, b) to simplify later code */
                if (cmp >= 0)
index c4c6b5097763a766075530174d17bd08e573c832..d4eec03cc77e151dba54622953356f7af55a30a2 100644 (file)
@@ -625,7 +625,7 @@ out:
        px_set_debug_handler(NULL);
 
        /*
-        * add successfull decryptions also into RNG
+        * add successful decryptions also into RNG
         */
        add_entropy(res, key, keypsw);
 
index deadd88b041c2affe233558a8517ffc0f6897df5..85f4efe072ad552e6f93e0b3da6139bc6cf3502d 100644 (file)
@@ -74,7 +74,7 @@ typedef struct {
  * sepgsql_get_client_label
  *
  * Returns the current security label of the client.  All code should use this
- * routine to get the current label, instead of refering to the client_label_*
+ * routine to get the current label, instead of referring to the client_label_*
  * variables above.
  */
 char *
index b5fd7ec987d0624582463f52d9c55c2388ec69ce..7a5847004bc16574643603729e27046273c22327 100644 (file)
@@ -132,7 +132,7 @@ ssl_client_serial(PG_FUNCTION_ARGS)
  * current database encoding if possible.  Any invalid characters are
  * replaced by question marks.
  *
- * Parameter: str - OpenSSL ASN1_STRING structure.     Memory managment
+ * Parameter: str - OpenSSL ASN1_STRING structure.     Memory management
  * of this structure is responsibility of caller.
  *
  * Returns Datum, which can be directly returned from a C language SQL
index f13957b0264cfc27a104927f1a729abe9a0b4b0b..b9e4160653b056eac32e08001bd244d30f25202e 100644 (file)
      </para>
 
      <para>
-      An explictly casted constant would be shown incorrectly.  This could
+      An explicitly casted constant would be shown incorrectly.  This could
       for example lead to corruption of a view definition during
       dump and reload.
      </para>
index 5d6d60e607f113d37ed94bdedbb05246b361b6fa..dd7652ba6d2531dc4de43c80e6cc3c4dc0b68ce5 100644 (file)
      </para>
 
      <para>
-      An explictly casted constant would be shown incorrectly.  This could
+      An explicitly casted constant would be shown incorrectly.  This could
       for example lead to corruption of a view definition during
       dump and reload.
      </para>
index 5f74abf45e7252d811a7e0afef6d5b286f4545ad..ac0e05ea7720ba0b33e3f651afd07e6ea7dd2041 100644 (file)
      </para>
 
      <para>
-      An explictly casted constant would be shown incorrectly.  This could
+      An explicitly casted constant would be shown incorrectly.  This could
       for example lead to corruption of a view definition during
       dump and reload.
      </para>
index a75ed44981c92bd0a02e4ffdcc375ed2d921aa55..a14f74686ba51ce617122d07993bd12789b9dcba 100644 (file)
      </para>
 
      <para>
-      An explictly casted constant would be shown incorrectly.  This could
+      An explicitly casted constant would be shown incorrectly.  This could
       for example lead to corruption of a view definition during
       dump and reload.
      </para>
index 26b2d5e4a9b8794955f5b531de61b7961cb10446..51c2102b7426aa1abca60c90d837dc2089d707af 100644 (file)
@@ -534,8 +534,8 @@ $(top_builddir)/src/Makefile.global: $(top_srcdir)/src/Makefile.global.in $(top_
 # config.status will not change the timestamp on pg_config.h if it
 # doesn't change, so as to avoid recompiling the entire tree
 # unnecessarily. Therefore we make config.status update a timestamp file
-# stamp-h everytime it runs, so that we don't trigger this rule everytime.
-# (We do trigger the null rule for stamp-h to pg_config.h everytime; so it's
+# stamp-h every time it runs, so that we don't trigger this rule every time.
+# (We do trigger the null rule for stamp-h to pg_config.h every time; so it's
 # important for that rule to be null!)
 #
 # Of course you need to turn on dependency tracking to get any
index a9482da3fb589ce17d4e4f1bf89cc590990f8c6e..70fcddfe407b932a6162780305c28a9193131853 100644 (file)
@@ -447,9 +447,9 @@ entryIsEnoughSpace(GinBtree btree, Buffer buf, OffsetNumber off)
 }
 
 /*
- * Delete tuple on leaf page if tuples was existed and we
+ * Delete tuple on leaf page if tuples existed and we
  * should update it, update old child blkno to new right page
- * if child split is occured
+ * if child split occurred
  */
 static BlockNumber
 entryPreparePage(GinBtree btree, Page page, OffsetNumber off)
index d201c68f722dfa22ebc143d48d2789c515e6798e..b9bfde2ee42b00575970f4912aa810ae30430a16 100644 (file)
@@ -856,7 +856,7 @@ ginInsertCleanup(GinState *ginstate,
                         * added to it.  If so, process those entries immediately.      There
                         * shouldn't be very many, so we don't worry about the fact that
                         * we're doing this with exclusive lock. Insertion algorithm
-                        * gurantees that inserted row(s) will not continue on next page.
+                        * guarantees that inserted row(s) will not continue on next page.
                         * NOTE: intentionally no vacuum_delay_point in this loop.
                         */
                        if (PageGetMaxOffsetNumber(page) != maxoff)
index 3b7894e8f1a133680dbbc8520fe63f8077e8afe9..98d1e559d322e3ca14aa1e292777d59a8e0eebae 100644 (file)
@@ -1580,7 +1580,7 @@ heap_hot_search_buffer(ItemPointer tid, Relation relation, Buffer buffer,
                        break;
 
                /*
-                * When first_call is true (and thus, skip is initally false) we'll
+                * When first_call is true (and thus, skip is initially false) we'll
                 * return the first tuple we find.  But on later passes, heapTuple
                 * will initially be pointing to the tuple we returned last time.
                 * Returning it again would be incorrect (and would loop forever),
index 561ffbb9d479eec36b7b589ff7f19c456e73c0be..edf33d90b1e72f198d23d50f32151f7b02b07480 100644 (file)
@@ -373,7 +373,7 @@ leaf-item deletions (if the deletion brings the leaf page to zero items,
 it is now a candidate to be deleted, but that is a separate action).
 
 An insertion that causes a page split is logged as a single WAL entry for
-the changes occuring on the insertion's level --- including update of the
+the changes occurring on the insertion's level --- including update of the
 right sibling's left-link --- followed by a second WAL entry for the
 insertion on the parent level (which might itself be a page split, requiring
 an additional insertion above that, etc).
index 0f4cea124d7436380c730203e6cfd1518bc5d3b2..8bdf387917122d3760f92108a2bf3090241e7e21 100644 (file)
@@ -173,7 +173,7 @@ static MultiXactId *OldestVisibleMXactId;
  * Definitions for the backend-local MultiXactId cache.
  *
  * We use this cache to store known MultiXacts, so we don't need to go to
- * SLRU areas everytime.
+ * SLRU areas every time.
  *
  * The cache lasts for the duration of a single transaction, the rationale
  * for this being that most entries will contain our own TransactionId and
index 8d0aabff109e28d1294c77f19c37c724b661e82c..fe33c87dbf2e95047c073abeea983fa27a5f1323 100644 (file)
@@ -7595,7 +7595,7 @@ LogCheckpointEnd(bool restartpoint)
  *     CHECKPOINT_END_OF_RECOVERY: checkpoint is for end of WAL recovery.
  *     CHECKPOINT_IMMEDIATE: finish the checkpoint ASAP,
  *             ignoring checkpoint_completion_target parameter.
- *     CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occured
+ *     CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occurred
  *             since the last one (implied by CHECKPOINT_IS_SHUTDOWN or
  *             CHECKPOINT_END_OF_RECOVERY).
  *
index bcc663515c1f9270745282e2318fe5c3c0a4a451..a67aebbdb6a1def6e1337e83729904c9e9100dd2 100644 (file)
@@ -392,7 +392,7 @@ getOidListDiff(Oid *list1, int *nlist1, Oid *list2, int *nlist2)
  * nnewmembers, newmembers: array of roleids appearing in new ACL
  *
  * We calculate the differences between the new and old lists of roles,
- * and then insert or delete from pg_shdepend as appropiate.
+ * and then insert or delete from pg_shdepend as appropriate.
  *
  * Note that we can't just insert all referenced roles blindly during GRANT,
  * because we would end up with duplicate registered dependencies.     We could
index 95fec8d386478b11baca6d2aa3b1223b7b9e0015..15f43fd3d6a0d938ef8e119a6e75a18b4a74f102 100644 (file)
@@ -1984,7 +1984,7 @@ CopyFrom(CopyState cstate)
        AfterTriggerBeginQuery();
 
        /*
-        * Check BEFORE STATEMENT insertion triggers. It's debateable whether we
+        * Check BEFORE STATEMENT insertion triggers. It's debatable whether we
         * should do this for COPY, since it's not really an "INSERT" statement as
         * such. However, executing these triggers maintains consistency with the
         * EACH ROW triggers that we already fire on COPY.
index 3f0945b57dcd00e4d992687630af2b72b8a25783..c94d9457223431c7419034fa53a63df03f668d2c 100644 (file)
@@ -6247,7 +6247,7 @@ ATExecValidateConstraint(Relation rel, char *constrName, bool recurse,
                        heap_close(refrel, NoLock);
 
                        /*
-                        * Foreign keys do not inherit, so we purposedly ignore the
+                        * Foreign keys do not inherit, so we purposely ignore the
                         * recursion bit here
                         */
                }
index 701a986f43f64453fc6618096a3a9ecc9f4fbabf..140b3f851e9ec92181871ce3a32d2b1ba2873302 100644 (file)
@@ -2754,7 +2754,7 @@ get_rels_with_domain(Oid domainOid, LOCKMODE lockmode)
 
                /*
                 * Confirm column has not been dropped, and is of the expected type.
-                * This defends against an ALTER DROP COLUMN occuring just before we
+                * This defends against an ALTER DROP COLUMN occurring just before we
                 * acquired lock ... but if the whole table were dropped, we'd still
                 * have a problem.
                 */
index f921847db906a85bc0159faae31cdf7609afd8f3..a1e55646c6cb0768b56f4c4f29753faf9ea9e27b 100644 (file)
@@ -1361,7 +1361,7 @@ ExecMergeJoin(MergeJoinState *node)
                                /*
                                 * EXEC_MJ_ENDOUTER means we have run out of outer tuples, but
                                 * are doing a right/full join and therefore must null-fill
-                                * any remaing unmatched inner tuples.
+                                * any remaining unmatched inner tuples.
                                 */
                        case EXEC_MJ_ENDOUTER:
                                MJ_printf("ExecMergeJoin: EXEC_MJ_ENDOUTER\n");
@@ -1407,7 +1407,7 @@ ExecMergeJoin(MergeJoinState *node)
                                /*
                                 * EXEC_MJ_ENDINNER means we have run out of inner tuples, but
                                 * are doing a left/full join and therefore must null- fill
-                                * any remaing unmatched outer tuples.
+                                * any remaining unmatched outer tuples.
                                 */
                        case EXEC_MJ_ENDINNER:
                                MJ_printf("ExecMergeJoin: EXEC_MJ_ENDINNER\n");
index efbb640a45b171f03fca0c0fa24acd6d59811620..187aea8f9905dc534e53ec615e4ea1848f354ab2 100644 (file)
@@ -145,7 +145,7 @@ static int  pg_krb5_recvauth(Port *port);
 #include <com_err.h>
 #endif
 /*
- * Various krb5 state which is not connection specfic, and a flag to
+ * Various krb5 state which is not connection specific, and a flag to
  * indicate whether we have initialised it yet.
  */
 static int     pg_krb5_initialised;
index a289d4bd14859b86e3296d0b8af72eec212cd130..154854f140bea2526400b899b6c0667ce3f37aa4 100644 (file)
@@ -9631,7 +9631,7 @@ SimpleTypename:
  * makes no sense for constructs like CHAR 'hi' and BIT '0101',
  * where there is an obvious better choice to make.
  * Note that ConstInterval is not included here since it must
- * be pushed up higher in the rules to accomodate the postfix
+ * be pushed up higher in the rules to accommodate the postfix
  * options (e.g. INTERVAL '1' YEAR). Likewise, we have to handle
  * the generic-type-name case in AExprConst to avoid premature
  * reduce/reduce conflicts against function names.
index 9a722a7400730fd9f52b28ebf2d45f4fe69b6c86..ba49f9fd597f10ba949978a0f19e3265bd8646c1 100644 (file)
@@ -49,7 +49,7 @@
 /*
  * Collation strength (the SQL standard calls this "derivation").  Order is
  * chosen to allow comparisons to work usefully.  Note: the standard doesn't
- * seem to distingish between NONE and CONFLICT.
+ * seem to distinguish between NONE and CONFLICT.
  */
 typedef enum
 {
index 26c7b2ed2357ad797e4c18c5d51b47599c22687a..b2c632532834dd2424ebc8edc8efce3230e173c8 100644 (file)
@@ -486,7 +486,7 @@ pgwin32_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, c
 
                                        /*
                                         * Not completed, and not just "would block", so an error
-                                        * occured
+                                        * occurred
                                         */
                                        FD_SET(writefds->fd_array[i], &outwritefds);
                        }
index c9473f7bad74946e9ff64310d0a6b75f900d94f1..2329b1a9a910d77c5c58b9eb5cb804cd386df39f 100644 (file)
@@ -888,7 +888,7 @@ BgWriterShmemInit(void)
  *     CHECKPOINT_END_OF_RECOVERY: checkpoint is for end of WAL recovery.
  *     CHECKPOINT_IMMEDIATE: finish the checkpoint ASAP,
  *             ignoring checkpoint_completion_target parameter.
- *     CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occured
+ *     CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occurred
  *             since the last one (implied by CHECKPOINT_IS_SHUTDOWN or
  *             CHECKPOINT_END_OF_RECOVERY).
  *     CHECKPOINT_WAIT: wait for completion before returning (otherwise,
index 94c6cef78aeec04856de58161273eb03e0ca9d21..1912dd8e7aeb76729885475346293151c9a18061 100644 (file)
@@ -345,7 +345,7 @@ ResetUnloggedRelationsInDbspaceDir(const char *dbspacedirname, int op)
 /*
  * Basic parsing of putative relation filenames.
  *
- * This funtion returns true if the file appears to be in the correct format
+ * This function returns true if the file appears to be in the correct format
  * for a non-temporary relation and false otherwise.
  *
  * NB: If this function returns true, the caller is entitled to assume that
index 09b7311e7bcd82fbdc16d62ffcd8f3214193ab50..1c9346a7eb47f8468a9babd2a7196ff98d168f1b 100644 (file)
@@ -279,10 +279,10 @@ ProcArrayAdd(PGPROC *proc)
        /*
         * Keep the procs array sorted by (PGPROC *) so that we can utilize
         * locality of references much better. This is useful while traversing the
-        * ProcArray because there is a increased likelyhood of finding the next
+        * ProcArray because there is a increased likelihood of finding the next
         * PGPROC structure in the cache.
         * 
-        * Since the occurance of adding/removing a proc is much lower than the
+        * Since the occurrence of adding/removing a proc is much lower than the
         * access to the ProcArray itself, the overhead should be marginal
         */
        for (index = 0; index < arrayP->numProcs; index++)
index 1001ed2a17143843aa9aff09eb03e842df301a96..6322a608cb184ea116b8d952e8a68bd6b2bac1ec 100644 (file)
@@ -1234,7 +1234,7 @@ InitPredicateLocks(void)
         * that this will prevent resource exhaustion in even the most pessimal
         * loads up to max_connections = 200 with all 200 connections pounding the
         * database with serializable transactions.  Beyond that, there may be
-        * occassional transactions canceled when trying to flag conflicts. That's
+        * occasional transactions canceled when trying to flag conflicts. That's
         * probably OK.
         */
        max_table_size *= 5;
index 9644afc34a2095bee431181398e1cf6b4cc81965..a8bf2bfffb216e495c524c367e91c81d24edd3c4 100644 (file)
@@ -821,7 +821,7 @@ acldefault(GrantObjectType objtype, Oid ownerId)
         * owner's ordinary privileges are self-granted; this lets him revoke
         * them.  We implement the owner's grant options without any explicit
         * "_SYSTEM"-like ACL entry, by internally special-casing the owner
-        * whereever we are testing grant options.
+        * wherever we are testing grant options.
         */
        if (owner_default != ACL_NO_RIGHTS)
        {
index 8ff87d6a0e8f7a376c85084bf359a136eb302508..d848739d4aabbd978e6f8cd091f76f2c828c95b3 100644 (file)
@@ -2186,7 +2186,7 @@ from_char_parse_int_len(int *dest, char **src, const int len, FormatNode *node)
  * Don't call this function if the field differs in length from the format
  * keyword (as with HH24; the keyword length is 4, but the field length is 2).
  * In such cases, call from_char_parse_int_len() instead to specify the
- * required length explictly.
+ * required length explicitly.
  */
 static int
 from_char_parse_int(int *dest, char **src, FormatNode *node)
index 23493e9fbb1c855762d3a07a55372e1bfb30478c..054b529845acc956c6d6d93b8f95375fb1ccdf3e 100644 (file)
@@ -124,7 +124,7 @@ freetree(NODE *node)
 
 /*
  * clean tree for ! operator.
- * It's usefull for debug, but in
+ * It's useful for debug, but in
  * other case, such view is used with search in index.
  * Operator ! always return TRUE
  */
index 38e384c6505cfa9dc2cb88a70894b16b433bf1fc..960233b63323cdc7703bad4bbc2df1372bac9ac0 100644 (file)
@@ -603,7 +603,7 @@ Cover(DocRepresentation *doc, int len, QueryRepresentation *qr, Extention *ext)
        if (ext->p <= ext->q)
        {
                /*
-                * set position for next try to next lexeme after begining of founded
+                * set position for next try to next lexeme after beginning of found
                 * cover
                 */
                ext->pos = (ptr - doc) + 1;
index 10c46654e0ab75ab56ca9e821627c824e4479414..7de460e0dd3c5fbb912d4b43c8ec8cd4d771af55 100644 (file)
@@ -214,7 +214,7 @@ pg_euccn2wchar_with_len(const unsigned char *from, pg_wchar *to, int len)
                        *to |= *from++;
                        len -= 3;
                }
-               else if (*from == SS3 && len >= 3)              /* code set 3 (unsed ?) */
+               else if (*from == SS3 && len >= 3)              /* code set 3 (unused ?) */
                {
                        from++;
                        *to = (SS3 << 16) | (*from++ << 8);
index 9f1556301737f030e37779b326522532b7417e5c..6bd3451e4c6bd282754c9d69497b4194ab905cc1 100644 (file)
@@ -8,7 +8,7 @@
  *
  * This is a C implementation of the previous shell script written by
  * Peter Eisentraut <peter_e@gmx.net>, with adjustments made to
- * accomodate the possibility that the installation has been relocated from
+ * accommodate the possibility that the installation has been relocated from
  * the place originally configured.
  *
  * author of C translation: Andrew Dunstan        mailto:andrew@dunslane.net
index 18d158ff6d4af76beef9306af157ba868bb4cf40..2156d0f619c2b540f2532c100ba6e4b2212f600e 100644 (file)
@@ -228,7 +228,7 @@ _WriteExtraToc(ArchiveHandle *AH, TocEntry *te)
  *
  * Optional.
  *
- * Needs to match the order defined in _WriteExtraToc, and sould also
+ * Needs to match the order defined in _WriteExtraToc, and should also
  * use the Archiver input routines.
  */
 static void
index 58fa92935b2c9c2de8f12227ca86b9e26244611c..d2229af8462b4592aa8a3abd32ed02121d2888e0 100644 (file)
@@ -12145,7 +12145,7 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo)
        PGresult   *res;
        int                     numParents;
        TableInfo **parents;
-       int                     actual_atts;    /* number of attrs in this CREATE statment */
+       int                     actual_atts;    /* number of attrs in this CREATE statement */
        const char *reltypename;
        char       *storage;
        char       *srvname;
index 8083131e129623ad19229e8a3cf57e1263a6e3e1..aba71e407f2cc6d429ccdda3d6ed01613660c55d 100644 (file)
@@ -1,7 +1,7 @@
 /* src/bin/pgevent/pgmsgevent.h */
 
 /*     */
-/*      Values are 32 bit values layed out as follows: */
+/*      Values are 32 bit values laid out as follows: */
 /*     */
 /*       3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 */
 /*       1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 */
index aa000735dc5c82a2b031ee804593ac18a9e30305..dd59aa116c2352b9e5822465f760a196548ec7fe 100644 (file)
@@ -2471,10 +2471,10 @@ do_shell(const char *command)
                sys = pg_malloc(strlen(shellName) + 16);
 #ifndef WIN32
                sprintf(sys,
-               /* See EDITOR handling comment for an explaination */
+               /* See EDITOR handling comment for an explanation */
                                "exec %s", shellName);
 #else
-               /* See EDITOR handling comment for an explaination */
+               /* See EDITOR handling comment for an explanation */
                sprintf(sys, SYSTEMQUOTE "\"%s\"" SYSTEMQUOTE, shellName);
 #endif
                result = system(sys);
index ccefe6a201170ab9bd621182f8874ae95227b1cf..2f04b871a4d2c424d184aac5f8a6fbb1c4a220b3 100644 (file)
@@ -37,7 +37,7 @@ typedef struct IndexTupleData
        ItemPointerData t_tid;          /* reference TID to heap tuple */
 
        /* ---------------
-        * t_info is layed out in the following fashion:
+        * t_info is laid out in the following fashion:
         *
         * 15th (high) bit: has nulls
         * 14th bit: has var-width attributes
index e2dd23b284a1d62c796212a4a5216a126cb94f9f..287da98ecf5e0ec87d1399f4ec6110a5bee7cdb4 100644 (file)
@@ -5,7 +5,7 @@
 #endif
 
 /*
- * Make sure _WIN32_WINNT has the minumum required value.
+ * Make sure _WIN32_WINNT has the minimum required value.
  * Leave a higher value in place.
 */
 #if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0501
index 73c79703caf75181f880052e96622d7091781acd..b2990cab289d19b0c50a19c7fbc4ca946212f22e 100644 (file)
@@ -479,7 +479,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...)
                memset(&stmt, 0, sizeof stmt);
                stmt.lineno = lineno;
 
-               /* desparate try to guess something sensible */
+               /* desperate try to guess something sensible */
                stmt.connection = ecpg_get_connection(NULL);
                ecpg_store_result(ECPGresult, index, &stmt, &data_var);
 
index 1bddf215afe930ace5a430889605705dbeb3e91c..e49ae3763ccc508ce7ac843d004065a533b7a4cb 100644 (file)
@@ -124,7 +124,7 @@ prepare_common(int lineno, struct connection * con, const char *name, const char
        stmt->command = ecpg_strdup(variable, lineno);
        stmt->inlist = stmt->outlist = NULL;
 
-       /* if we have C variables in our statment replace them with '?' */
+       /* if we have C variables in our statement replace them with '?' */
        replace_variables(&(stmt->command), lineno);
 
        /* add prepared statement to our list */
@@ -463,7 +463,7 @@ AddStmtToCache(int lineno,          /* line # of statement          */
        return (entNo);
 }
 
-/* handle cache and preparation of statments in auto-prepare mode */
+/* handle cache and preparation of statements in auto-prepare mode */
 bool
 ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, char **name, const char *query)
 {
index ff533400794217e387f8708e9575a9c6946763c1..6b89e4a67eb6b9611cba62c13e6d583ac178bbe2 100644 (file)
@@ -310,7 +310,7 @@ static datetkn datetktbl[] = {
 #if 0
        phst
 #endif
-       {"pht", TZ, POS(32)},           /* Phillipine Time */
+       {"pht", TZ, POS(32)},           /* Philippine Time */
        {"pkt", TZ, POS(20)},           /* Pakistan Time */
        {"pm", AMPM, PM},
        {"pmdt", DTZ, NEG(8)},          /* Pierre & Miquelon Daylight Time */
@@ -2342,7 +2342,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
                                                 */
                                                tmask = 0;
 
-                                               /* No preceeding date? Then quit... */
+                                               /* No preceding date? Then quit... */
                                                if ((fmask & DTK_DATE_M) != DTK_DATE_M)
                                                        return -1;
 
index 1eaf715c47385af5c0c19e0efe1e1e3f26c61e34..36f101bb1c766f216eae7cf8f47a83a41054ea23 100644 (file)
@@ -342,7 +342,7 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
 
        /*
         * Since it's difficult to test for noresult, make sure errno is 0 if no
-        * error occured.
+        * error occurred.
         */
        errno = 0;
        return result;
index 35bbe5414efe8e592b3c4a4ae8ab79530f7321ba..8258ce2f7d383c6e708be7229039513490eb76c4 100644 (file)
@@ -1104,7 +1104,7 @@ opt_output:       SQL_OUTPUT      { $$ = mm_strdup("output"); }
 
 /*
  * dynamic SQL: descriptor based access
- *     originall written by Christof Petig <christof.petig@wtal.de>
+ *     originally written by Christof Petig <christof.petig@wtal.de>
  *                     and Peter Eisentraut <peter.eisentraut@credativ.de>
  */
 
index 92ea37e6f6cbcea955167839d92530371a8efb1f..4d31f3bbe40048c7d34e9d44d01de978f53abe63 100644 (file)
@@ -344,7 +344,7 @@ cppinclude_next             {space}*#{include_next}{space}*
 /* take care of cpp lines, they may also be continuated */
 /* first a general line for all commands not starting with "i" */
 /* and then the other commands starting with "i", we have to add these
- * seperately because the cppline production would match on "include" too */
+ * separately because the cppline production would match on "include" too */
 cppline                        {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.*{newline}
 
 /*
index 86f157c338af7e149dea6bff844f500c93068d27..c643b8e69caf28808afaa8aa233e94fd686aac96 100644 (file)
@@ -218,7 +218,7 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
  *
  * Set the attributes for a given result.  This function fails if there are
  * already attributes contained in the provided result.  The call is
- * ignored if numAttributes is is zero or attDescs is NULL.  If the
+ * ignored if numAttributes is zero or attDescs is NULL.  If the
  * function fails, it returns zero.  If the function succeeds, it
  * returns a non-zero value.
  */
index 6695492c7fc3a3443e9f42839e65bc1fbb3ada46..94ef40d3bcb69810f1ca14ae3eb82c35732e06cb 100644 (file)
@@ -57,7 +57,7 @@ static void fill(int length, int max, char filler, FILE *fp);
  *
  * Format results of a query for printing.
  *
- * PQprintOpt is a typedef (structure) that containes
+ * PQprintOpt is a typedef (structure) that contains
  * various flags and options. consult libpq-fe.h for
  * details
  *
index 2e79818b5c91e41c77fee0e4d5cf6bdf22fb437d..92e1c9ba9815f2b7480e192051bd307070902496 100644 (file)
@@ -277,7 +277,7 @@ struct MessageDLL
  * to find it in the lookup table, and if that fails, tries
  * to load any of the winsock dlls to find that message.
  * The DLL thing works from Nt4 (spX ?) up, but some special
- * versions of winsock might have this aswell (seen on Win98 SE
+ * versions of winsock might have this as well (seen on Win98 SE
  * special install)                       / Magnus Naeslund (mag@fbab.net)
  *
  */
index bb2c8328b4e412cf8d33ad3184da441e28d469c2..e6c4a633a4395f620e9bcddee63e73642c32f726 100644 (file)
@@ -92,7 +92,7 @@ endif # GETTEXT_FILES
        rm messages.po
 
 
-# catalog name extentions must match behavior of PG_TEXTDOMAIN() in c.h
+# catalog name extensions must match behavior of PG_TEXTDOMAIN() in c.h
 install-po: all-po installdirs-po
 ifneq (,$(LANGUAGES))
        for lang in $(LANGUAGES); do \
index a1385b2eee58a7964c36db918fcb48f1b45c21fa..3f36a8052527f682f0b755555ba074bf8005882a 100644 (file)
@@ -31,7 +31,7 @@ create table T_dta2 (
     ref2       char(20)
 );
 --
--- Function to check key existance in T_pkey1
+-- Function to check key existence in T_pkey1
 --
 create function check_pkey1_exists(int4, bpchar) returns bool as E'
     if {![info exists GD]} {
index 2176d5c4f4ca9c71cc5d32ca0db1a2115b6ba6f3..df7f9fadd18080aaab96de04fcc61ff5b908e2ba 100644 (file)
@@ -36,7 +36,7 @@ create table T_dta2 (
 
 
 --
--- Function to check key existance in T_pkey1
+-- Function to check key existence in T_pkey1
 --
 create function check_pkey1_exists(int4, bpchar) returns bool as E'
     if {![info exists GD]} {
index f3de4494458ff27d139434f9eeae26375054f8f3..632e8c35bbbd52a21f8670341a6b53108aa1e127 100644 (file)
@@ -5,6 +5,6 @@ README for multibyte regression test
                                                        Tatsuo Ishii
 
 This directory contains a set of tests for multibyte supporting
-extentions for PostgreSQL. To run the test, simply type:
+extensions for PostgreSQL. To run the test, simply type:
 
 % sh mbregress.sh
index 65dfe024a99f18b90d9a5350ff5ebcd25586df26..cddcda79b6083137f56dfc4c85c01fd58e94ac37 100644 (file)
@@ -865,7 +865,7 @@ create table fktable (ftest1 int references pktable(base1));
 -- now some ins, upd, del
 insert into pktable(base1) values (1);
 insert into pktable(base1) values (2);
---  let's insert a non-existant fktable value
+--  let's insert a non-existent fktable value
 insert into fktable(ftest1) values (3);
 ERROR:  insert or update on table "fktable" violates foreign key constraint "fktable_ftest1_fkey"
 DETAIL:  Key (ftest1)=(3) is not present in table "pktable".
@@ -893,7 +893,7 @@ create table fktable (ftest1 int, ftest2 int, foreign key(ftest1, ftest2) refere
 -- now some ins, upd, del
 insert into pktable(base1, ptest1) values (1, 1);
 insert into pktable(base1, ptest1) values (2, 2);
---  let's insert a non-existant fktable value
+--  let's insert a non-existent fktable value
 insert into fktable(ftest1, ftest2) values (3, 1);
 ERROR:  insert or update on table "fktable" violates foreign key constraint "fktable_ftest1_fkey"
 DETAIL:  Key (ftest1, ftest2)=(3, 1) is not present in table "pktable".
index 90c342b7a81f9be5a4d7eeacdf94579b206bf2e3..2931a73fdbe94618f1231dba91d6424a1198ee83 100644 (file)
@@ -381,7 +381,7 @@ string_matches_pattern(const char *str, const char *pattern)
 }
 
 /*
- * Replace all occurances of a string in a string with a different string.
+ * Replace all occurrences of a string in a string with a different string.
  * NOTE: Assumes there is enough room in the target buffer!
  */
 void
index 6bd9ddd1a5e89667d41d76266e4272e57c0aa5d0..fe9bfde101664b09e7eb9e5caf37b05c9d7eca94 100644 (file)
@@ -525,7 +525,7 @@ create table fktable (ftest1 int references pktable(base1));
 -- now some ins, upd, del
 insert into pktable(base1) values (1);
 insert into pktable(base1) values (2);
---  let's insert a non-existant fktable value
+--  let's insert a non-existent fktable value
 insert into fktable(ftest1) values (3);
 --  let's make a valid row for that
 insert into pktable(base1) values (3);
@@ -548,7 +548,7 @@ create table fktable (ftest1 int, ftest2 int, foreign key(ftest1, ftest2) refere
 -- now some ins, upd, del
 insert into pktable(base1, ptest1) values (1, 1);
 insert into pktable(base1, ptest1) values (2, 2);
---  let's insert a non-existant fktable value
+--  let's insert a non-existent fktable value
 insert into fktable(ftest1, ftest2) values (3, 1);
 --  let's make a valid row for that
 insert into pktable(base1,ptest1) values (3, 1);
index 1c6f276d0f0d7f990184781fdae8f6885fc9c90d..4b16e084ab5e233b437ac8f414b4b1abf2c7a5c8 100644 (file)
@@ -200,7 +200,7 @@ PETST   46800 D  # Petropavlovsk-Kamchatski Summer Time
                  #     (Asia/Kamchatka)
 PETT    43200    # Petropavlovsk-Kamchatski Time
                  #     (Asia/Kamchatka)
-PHT     28800    # Phillipine Time (not in zic)
+PHT     28800    # Philippine Time (not in zic)
 PKT     18000    # Pakistan Time
                  #     (Asia/Karachi)
 PKST    21600 D  # Pakistan Summer Time
index 7a7a87e651ffcca5575cc79cee0a882ce90846db..1369f47bfbbb3328cf6e6bf5bd0206e13c8db7bf 100644 (file)
@@ -333,7 +333,7 @@ PETST   46800 D  # Petropavlovsk-Kamchatski Summer Time
                  #     (Asia/Kamchatka)
 PETT    43200    # Petropavlovsk-Kamchatski Time
                  #     (Asia/Kamchatka)
-PHT     28800    # Phillipine Time (not in zic)
+PHT     28800    # Philippine Time (not in zic)
 PKT     18000    # Pakistan Time
                  #     (Asia/Karachi)
 PKST    21600 D  # Pakistan Summer Time
index 19945f8661b82cc7971dbcd653aabc55d1044500..eb4978bfe04761cf2396c32bf7eb7bbb056b3314 100644 (file)
@@ -111,7 +111,7 @@ flowchart.</p>
 
 <hr />
 <p>Another area of interest is the shared memory area, which
-contains data accessable to all backends. It has recently used
+contains data accessible to all backends. It has recently used
 data/index blocks, locks, backend process information, and lookup
 tables for these structures:</p>
 
index ad0eca3672bd551e6a45549dcb22d6bebecfba32..bbadb34829c39bec404708dcd7a3df28d4381035 100644 (file)
@@ -86,7 +86,7 @@ Description of the internals of the Visual Studio build process
 By typing 'build' the user starts the build.bat wrapper which simply passes
 it's arguments to build.pl.
 In build.pl the user's buildenv.pl is used to set up the build environment
-(i. e. path to bison and flex). In addtion his config.pl file is merged into
+(i. e. path to bison and flex). In addition his config.pl file is merged into
 config_default.pl to create the configuration arguments.
 These configuration arguments are passed over to Mkvcbuild::mkvcbuild
 (Mkvcbuild.pm) which creates the Visual Studio project and solution files.
index 44db1f6814cc9880218909f8b8b22276cd9a640e..3bed9229918157a89c7d57e8429fcf91b23ec081 100644 (file)
@@ -81,7 +81,7 @@ sub DetermineVisualStudioVersion
     if (!defined($nmakeVersion))
     {
 
-        # Determine version of nmake command, to set proper verison of visual studio
+        # Determine version of nmake command, to set proper version of visual studio
         # we use nmake as it has existed for a long time and still exists in visual studio 2010
         open(P,"nmake /? 2>&1 |")
           || croak "Unable to determine Visual Studio version: The nmake command wasn't found.";
index 5625f34343f0ef74f3eececc46e640e70137b278..12169db9f6443b74a189bdec2257d78a15dc9e1f 100755 (executable)
@@ -17,7 +17,7 @@ do
        sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
        echo "#include \"postgres.h\"" >/tmp/$$.c
 
-       # supress fcinfo errors
+       # suppress fcinfo errors
        echo "struct {Datum       arg[1];} *fcinfo;" >>/tmp/$$.c
 
        echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
index 75a7c6d5c706b049588b9cdee187752d95b779a7..383c5044bd7cd84f649fd5a10dc47fa5221b0f87 100755 (executable)
@@ -90,7 +90,7 @@ compile_file() {
 
        if [ "$IS_INCLUDE" = "Y" ]
        then    echo "#include \"postgres.h\"" >/tmp/$$.c
-               # supress fcinfo errors
+               # suppress fcinfo errors
                echo "struct {Datum       arg[1];} *fcinfo;" >>/tmp/$$.c
        else    >/tmp/$$.c
        fi