diff options
| author | Robert Haas <rhaas@postgresql.org> | 2012-04-23 22:43:09 -0400 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2012-04-23 22:43:09 -0400 |
| commit | 5d4b60f2f25bedee257aaf6f2f4ac77028629b87 (patch) | |
| tree | f0f7fa40b63a23b10e9d03ea47f97020565a66f6 /src/backend | |
| parent | 7ab9b2f3b79177e501a1ef90ed004cc68788abaf (diff) | |
Lots of doc corrections.
Josh Kupershmidt
Diffstat (limited to 'src/backend')
24 files changed, 27 insertions, 27 deletions
diff --git a/src/backend/access/gin/ginentrypage.c b/src/backend/access/gin/ginentrypage.c index a9482da3fb5..70fcddfe407 100644 --- a/src/backend/access/gin/ginentrypage.c +++ b/src/backend/access/gin/ginentrypage.c @@ -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) diff --git a/src/backend/access/gin/ginfast.c b/src/backend/access/gin/ginfast.c index d201c68f722..b9bfde2ee42 100644 --- a/src/backend/access/gin/ginfast.c +++ b/src/backend/access/gin/ginfast.c @@ -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) diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 3b7894e8f1a..98d1e559d32 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -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), diff --git a/src/backend/access/nbtree/README b/src/backend/access/nbtree/README index 561ffbb9d47..edf33d90b1e 100644 --- a/src/backend/access/nbtree/README +++ b/src/backend/access/nbtree/README @@ -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). diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index 0f4cea124d7..8bdf3879171 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -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 diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 8d0aabff109..fe33c87dbf2 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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). * diff --git a/src/backend/catalog/pg_shdepend.c b/src/backend/catalog/pg_shdepend.c index bcc663515c1..a67aebbdb6a 100644 --- a/src/backend/catalog/pg_shdepend.c +++ b/src/backend/catalog/pg_shdepend.c @@ -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 diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 95fec8d3864..15f43fd3d6a 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -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. diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 3f0945b57dc..c94d9457223 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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 */ } diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 701a986f43f..140b3f851e9 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -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. */ diff --git a/src/backend/executor/nodeMergejoin.c b/src/backend/executor/nodeMergejoin.c index f921847db90..a1e55646c6c 100644 --- a/src/backend/executor/nodeMergejoin.c +++ b/src/backend/executor/nodeMergejoin.c @@ -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"); diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index efbb640a45b..187aea8f990 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -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; diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index a289d4bd148..154854f140b 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -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. diff --git a/src/backend/parser/parse_collate.c b/src/backend/parser/parse_collate.c index 9a722a74007..ba49f9fd597 100644 --- a/src/backend/parser/parse_collate.c +++ b/src/backend/parser/parse_collate.c @@ -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 { diff --git a/src/backend/port/win32/socket.c b/src/backend/port/win32/socket.c index 26c7b2ed235..b2c63253283 100644 --- a/src/backend/port/win32/socket.c +++ b/src/backend/port/win32/socket.c @@ -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); } diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c index c9473f7bad7..2329b1a9a91 100644 --- a/src/backend/postmaster/checkpointer.c +++ b/src/backend/postmaster/checkpointer.c @@ -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, diff --git a/src/backend/storage/file/reinit.c b/src/backend/storage/file/reinit.c index 94c6cef78ae..1912dd8e7ae 100644 --- a/src/backend/storage/file/reinit.c +++ b/src/backend/storage/file/reinit.c @@ -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 diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 09b7311e7bc..1c9346a7eb4 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -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++) diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c index 1001ed2a171..6322a608cb1 100644 --- a/src/backend/storage/lmgr/predicate.c +++ b/src/backend/storage/lmgr/predicate.c @@ -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; diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index 9644afc34a2..a8bf2bfffb2 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -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) { diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 8ff87d6a0e8..d848739d4aa 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -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) diff --git a/src/backend/utils/adt/tsquery_cleanup.c b/src/backend/utils/adt/tsquery_cleanup.c index 23493e9fbb1..054b529845a 100644 --- a/src/backend/utils/adt/tsquery_cleanup.c +++ b/src/backend/utils/adt/tsquery_cleanup.c @@ -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 */ diff --git a/src/backend/utils/adt/tsrank.c b/src/backend/utils/adt/tsrank.c index 38e384c6505..960233b6332 100644 --- a/src/backend/utils/adt/tsrank.c +++ b/src/backend/utils/adt/tsrank.c @@ -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; diff --git a/src/backend/utils/mb/wchar.c b/src/backend/utils/mb/wchar.c index 10c46654e0a..7de460e0dd3 100644 --- a/src/backend/utils/mb/wchar.c +++ b/src/backend/utils/mb/wchar.c @@ -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); |
