aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/gist/gist.c6
-rw-r--r--src/backend/access/hash/hashovfl.c4
-rw-r--r--src/backend/access/hash/hashstrat.c4
-rw-r--r--src/backend/access/transam/xact.c6
-rw-r--r--src/backend/commands/comment.c8
-rw-r--r--src/backend/port/beos/sem.c8
-rw-r--r--src/backend/utils/adt/formatting.c16
-rw-r--r--src/backend/utils/adt/name.c4
-rw-r--r--src/backend/utils/adt/pg_lzcompress.c8
-rw-r--r--src/backend/utils/adt/varlena.c4
-rw-r--r--src/backend/utils/mb/conv.c4
-rw-r--r--src/backend/utils/mb/encnames.c6
-rw-r--r--src/backend/utils/mb/mbutils.c10
-rw-r--r--src/backend/utils/misc/database.c4
14 files changed, 46 insertions, 46 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 56a5c6fb603..cba57dc503f 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.101 2003/02/24 00:57:17 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.102 2003/03/10 22:28:18 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -465,7 +465,7 @@ gistlayerinsert(Relation r, BlockNumber blkno,
/*
* After this call: 1. if child page was splited, then itup
* contains keys for each page 2. if child page wasn't splited,
- * then itup contains additional for adjustement of current key
+ * then itup contains additional for adjustment of current key
*/
ret = gistlayerinsert(r, nblkno, itup, len, res, giststate);
@@ -551,7 +551,7 @@ gistlayerinsert(Relation r, BlockNumber blkno,
ItemPointerSet(&((*res)->pointerData), blkno, l);
if (*len > 1)
- { /* previos insert ret & SPLITED != 0 */
+ { /* previous insert ret & SPLITED != 0 */
int i;
/*
diff --git a/src/backend/access/hash/hashovfl.c b/src/backend/access/hash/hashovfl.c
index b5198dbb1df..1e2df0aee08 100644
--- a/src/backend/access/hash/hashovfl.c
+++ b/src/backend/access/hash/hashovfl.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.33 2002/06/20 20:29:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.34 2003/03/10 22:28:18 tgl Exp $
*
* NOTES
* Overflow pages look like ordinary relation pages.
@@ -452,7 +452,7 @@ _hash_initbitmap(Relation rel,
/*
* _hash_squeezebucket(rel, bucket)
*
- * Try to squeeze the tuples onto pages occuring earlier in the
+ * Try to squeeze the tuples onto pages occurring earlier in the
* bucket chain in an attempt to free overflow pages. When we start
* the "squeezing", the page from which we start taking tuples (the
* "read" page) is the last bucket in the bucket chain and the page
diff --git a/src/backend/access/hash/hashstrat.c b/src/backend/access/hash/hashstrat.c
index 75133d69b88..4fc8667adad 100644
--- a/src/backend/access/hash/hashstrat.c
+++ b/src/backend/access/hash/hashstrat.c
@@ -1,14 +1,14 @@
/*-------------------------------------------------------------------------
*
* hashstrat.c
- * Srategy map entries for the hash indexed access method
+ * Strategy map entries for the hash indexed access method
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.21 2002/06/20 20:29:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.22 2003/03/10 22:28:18 tgl Exp $
*
*-------------------------------------------------------------------------
*/
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index 7150569a228..0506e4801a3 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.141 2003/01/10 22:03:27 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.142 2003/03/10 22:28:18 tgl Exp $
*
* NOTES
* Transaction aborts can now occur two ways:
@@ -91,7 +91,7 @@
* CommitTransactionBlock
* AbortTransactionBlock
*
- * These are invoked only in responce to a user "BEGIN WORK", "COMMIT",
+ * These are invoked only in response to a user "BEGIN WORK", "COMMIT",
* or "ROLLBACK" command. The tricky part about these functions
* is that they are called within the postgres main loop, in between
* the StartTransactionCommand() and CommitTransactionCommand().
@@ -236,7 +236,7 @@ static void *_RollbackData = NULL;
* SetTransactionFlushEnabled()
*
* These are used to test and set the "TransactionFlushState"
- * varable. If this variable is true (the default), then
+ * variable. If this variable is true (the default), then
* the system will flush all dirty buffers to disk at the end
* of each transaction. If false then we are assuming the
* buffer pool resides in stable main memory, in which case we
diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c
index bff639cf261..4176cf3cfd3 100644
--- a/src/backend/commands/comment.c
+++ b/src/backend/commands/comment.c
@@ -7,7 +7,7 @@
* Copyright (c) 1996-2001, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/comment.c,v 1.61 2002/10/09 16:26:46 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/comment.c,v 1.62 2003/03/10 22:28:18 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -389,7 +389,7 @@ CommentAttribute(List *qualname, char *comment)
*
* This routine is used to add/drop any user-comments a user might
* have regarding the specified database. The routine will check
- * security for owner permissions, and, if succesful, will then
+ * security for owner permissions, and, if successful, will then
* attempt to find the oid of the database specified. Once found,
* a comment is added/dropped using the CreateComments() routine.
*/
@@ -427,7 +427,7 @@ CommentDatabase(List *qualname, char *comment)
*
* This routine is used to add/drop any user-comments a user might
* have regarding the specified namespace. The routine will check
- * security for owner permissions, and, if succesful, will then
+ * security for owner permissions, and, if successful, will then
* attempt to find the oid of the namespace specified. Once found,
* a comment is added/dropped using the CreateComments() routine.
*/
@@ -579,7 +579,7 @@ CommentRule(List *qualname, char *comment)
* have regarding a TYPE. The type is specified by name
* and, if found, and the user has appropriate permissions, a
* comment will be added/dropped using the CreateComments() routine.
- * The type's name and the comments are the paramters to this routine.
+ * The type's name and the comments are the parameters to this routine.
*/
static void
CommentType(List *typename, char *comment)
diff --git a/src/backend/port/beos/sem.c b/src/backend/port/beos/sem.c
index f1d2c1c63fc..71598fcc4c0 100644
--- a/src/backend/port/beos/sem.c
+++ b/src/backend/port/beos/sem.c
@@ -99,7 +99,7 @@ semctl(int semId, int semNum, int flag, union semun semun)
return 1;
}
- /* Get the last pid which accesed the sem */
+ /* Get the last pid which accessed the sem */
if (flag == GETPID)
{
TRACEDBG("->semctl getpid");
@@ -191,7 +191,7 @@ semget(int semKey, int semNum, int flags)
/* find area */
parea = find_area(Nom);
- /* Test of area existance */
+ /* Test of area existence */
if (parea != B_NAME_NOT_FOUND)
{
/* Area exist and creation is requested, error */
@@ -221,7 +221,7 @@ semget(int semKey, int semNum, int flags)
/*
* Limit to 250 (8 byte per sem : 4 for the semid and 4 for
- * the last pid which acceced the semaphore in a pool
+ * the last pid which accessed the semaphore in a pool
*/
if (semNum > 250)
{
@@ -293,7 +293,7 @@ semop(int semId, struct sembuf * sops, int nsops)
if (sops[i].sem_op < 0)
{
/*
- * Try acuiring the semaphore till we are not inteerupted by a
+ * Try acquiring the semaphore till we are not interrupted by a
* signal
*/
if (sops[i].sem_flg == IPC_NOWAIT)
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index bebccbdfdc6..6a5f0af138e 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------
* formatting.c
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.57 2002/11/08 20:23:56 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.58 2003/03/10 22:28:18 tgl Exp $
*
*
* Portions Copyright (c) 1999-2002, PostgreSQL Global Development Group
@@ -264,7 +264,7 @@ typedef struct
int pre, /* (count) numbers before decimal */
post, /* (count) numbers after decimal */
lsign, /* want locales sign */
- flag, /* number parametrs */
+ flag, /* number parameters */
pre_lsign_num, /* tmp value for lsign */
multi, /* multiplier for 'V' */
zero_start, /* position of first zero */
@@ -488,7 +488,7 @@ static KeySuffix DCH_suff[] = {
* it is not good.
*
* (!)
- * - Position for the keyword is simular as position in the enum DCH/NUM_poz.
+ * - Position for the keyword is similar as position in the enum DCH/NUM_poz.
* (!)
*
* For fast search is used the 'int index[]', index is ascii table from position
@@ -776,7 +776,7 @@ static int DCH_index[KeyWord_INDEX_SIZE] = {
/*
0 1 2 3 4 5 6 7 8 9
*/
- /*---- first 0..31 chars are skiped ----*/
+ /*---- first 0..31 chars are skipped ----*/
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
@@ -838,9 +838,9 @@ typedef struct NUMProc
read_post; /* to_number - number of dec. digit */
char *number, /* string with number */
- *number_p, /* pointer to current number pozition */
+ *number_p, /* pointer to current number position */
*inout, /* in / out buffer */
- *inout_p, /* pointer to current inout pozition */
+ *inout_p, /* pointer to current inout position */
*last_relevant, /* last relevant number after decimal
* point */
@@ -3753,7 +3753,7 @@ NUM_numpart_to_char(NUMProc *Np, int id)
else
{
/*
- * Write Decinal point
+ * Write Decimal point
*/
if (*Np->number_p == '.')
{
@@ -3934,7 +3934,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number,
{
Np->sign_pos = Np->num_count + (Np->num_pre ? 1 : 0);
- if (IS_DECIMAL(Np->Num)) /* decimal point correctio */
+ if (IS_DECIMAL(Np->Num)) /* decimal point correction */
++Np->sign_pos;
}
else if (IS_ZERO(Np->Num) && Np->num_pre > Np->Num->zero_start)
diff --git a/src/backend/utils/adt/name.c b/src/backend/utils/adt/name.c
index 154a2067ec9..746254add59 100644
--- a/src/backend/utils/adt/name.c
+++ b/src/backend/utils/adt/name.c
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.42 2003/02/09 06:56:28 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.43 2003/03/10 22:28:18 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -46,7 +46,7 @@ namein(PG_FUNCTION_ARGS)
int len;
char *ermsg;
- /* veryfy encoding */
+ /* verify encoding */
len = strlen(s);
if ((ermsg = pg_verifymbstr(s, len)))
elog(ERROR, "%s", ermsg);
diff --git a/src/backend/utils/adt/pg_lzcompress.c b/src/backend/utils/adt/pg_lzcompress.c
index a22c57cb4c8..cf42f4f3a63 100644
--- a/src/backend/utils/adt/pg_lzcompress.c
+++ b/src/backend/utils/adt/pg_lzcompress.c
@@ -1,7 +1,7 @@
/* ----------
* pg_lzcompress.c -
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_lzcompress.c,v 1.16 2002/11/23 03:59:08 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_lzcompress.c,v 1.17 2003/03/10 22:28:18 tgl Exp $
*
* This is an implementation of LZ compression for PostgreSQL.
* It uses a simple history table and generates 2-3 byte tags
@@ -98,7 +98,7 @@
* makes total limits of 1-4095 for offset and 3-273 for length.
*
* Now that we have successfully decoded a tag. We simply copy
- * the output that occured <offset> bytes back to the current
+ * the output that occurred <offset> bytes back to the current
* output location in the specified <length>. Thus, a
* sequence of 200 spaces (think about bpchar fields) could be
* coded in 4 bytes. One literal space and a three byte tag to
@@ -419,7 +419,7 @@ pglz_find_match(PGLZ_HistEntry **hstart, char *input, char *end,
* bytes, it's worth the call overhead to use memcmp() to check if
* this match is equal for the same size. After that we must
* fallback to character by character comparison to know the exact
- * position where the diff occured.
+ * position where the diff occurred.
*/
thislen = 0;
if (len >= 16)
@@ -783,7 +783,7 @@ pglz_get_next_decomp_char_from_lzdata(PGLZ_DecompState *dstate)
/*
* This decompression method saves time only, if we stop near the
* beginning of the data (maybe because we're called by a
- * comparision function and a difference occurs early). Otherwise,
+ * comparison function and a difference occurs early). Otherwise,
* all the checks, needed here, cause too much overhead.
*
* Thus we decompress the entire rest at once into the temporary
diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c
index e98a2dfe0e3..974e7f8fc67 100644
--- a/src/backend/utils/adt/varlena.c
+++ b/src/backend/utils/adt/varlena.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.94 2002/12/06 05:20:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.95 2003/03/10 22:28:18 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1663,7 +1663,7 @@ byteacmp(PG_FUNCTION_ARGS)
/*
* replace_text
- * replace all occurences of 'old_sub_str' in 'orig_str'
+ * replace all occurrences of 'old_sub_str' in 'orig_str'
* with 'new_sub_str' to form 'new_str'
*
* returns 'orig_str' if 'old_sub_str' == '' or 'orig_str' == ''
diff --git a/src/backend/utils/mb/conv.c b/src/backend/utils/mb/conv.c
index a41f9abe9dd..0337692d88c 100644
--- a/src/backend/utils/mb/conv.c
+++ b/src/backend/utils/mb/conv.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mb/conv.c,v 1.43 2002/09/04 20:31:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mb/conv.c,v 1.44 2003/03/10 22:28:18 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -335,7 +335,7 @@ compare2(const void *p1, const void *p2)
* UTF-8 ---> local code
*
* utf: input UTF-8 string. Its length is limited by "len" parameter
- * or a null terminater.
+ * or a null terminator.
* iso: pointer to the output.
* map: the conversion map.
* size: the size of the conversion map.
diff --git a/src/backend/utils/mb/encnames.c b/src/backend/utils/mb/encnames.c
index dc6623b09c1..7c62d8c4abb 100644
--- a/src/backend/utils/mb/encnames.c
+++ b/src/backend/utils/mb/encnames.c
@@ -2,7 +2,7 @@
* Encoding names and routines for work with it. All
* in this file is shared bedween FE and BE.
*
- * $Id: encnames.c,v 1.11 2002/12/05 23:21:07 momjian Exp $
+ * $Id: encnames.c,v 1.12 2003/03/10 22:28:18 tgl Exp $
*/
#ifdef FRONTEND
#include "postgres_fe.h"
@@ -25,7 +25,7 @@
/* ----------
* All encoding names, sorted: *** A L P H A B E T I C ***
*
- * All names must be without irrelevan chars, search routines use
+ * All names must be without irrelevant chars, search routines use
* isalnum() chars only. It means ISO-8859-1, iso_8859-1 and Iso8859_1
* are always converted to 'iso88591'. All must be lower case.
*
@@ -52,7 +52,7 @@ pg_encname pg_encname_tbl[] =
{
"eucjp", PG_EUC_JP
}, /* EUC-JP; Extended UNIX Code fixed Width
- * for Japanese, stdandard OSF */
+ * for Japanese, standard OSF */
{
"euckr", PG_EUC_KR
}, /* EUC-KR; Extended Unix Code for Korean ,
diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c
index 560dffa8581..588aefc61c4 100644
--- a/src/backend/utils/mb/mbutils.c
+++ b/src/backend/utils/mb/mbutils.c
@@ -4,7 +4,7 @@
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
*
- * $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.38 2003/02/19 14:31:26 ishii Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.39 2003/03/10 22:28:18 tgl Exp $
*/
#include "postgres.h"
@@ -41,7 +41,7 @@ static int cliplen(const unsigned char *str, int len, int limit);
static bool need_to_init_client_encoding = -1;
/*
- * Set the client encoding and save fmgrinfo for the converion
+ * Set the client encoding and save fmgrinfo for the conversion
* function if necessary. if encoding conversion between client/server
* encoding is not supported, returns -1
*/
@@ -60,7 +60,7 @@ SetClientEncoding(int encoding, bool doit)
if (!PG_VALID_FE_ENCODING(encoding))
return (-1);
- /* If we cannot actualy set client encoding info, remeber it
+ /* If we cannot actually set client encoding info, remember it
* so that we could set it using InitializeClientEncoding()
* in InitPostgres()
*/
@@ -164,7 +164,7 @@ pg_get_client_encoding_name(void)
* warn and returns src. We cannot raise an error, since it will cause
* an infinit loop in error message sending.
*
- * In the case of no coversion, src is returned.
+ * In the case of no conversion, src is returned.
*
* XXX We assume that storage for converted result is 4-to-1 growth in
* the worst case. The rate for currently supported encoding pares are within 3
@@ -281,7 +281,7 @@ pg_convert2(PG_FUNCTION_ARGS)
elog(ERROR, "Encoding conversion failed");
/*
- * build text data type structre. we cannot use textin() here, since
+ * build text data type structure. we cannot use textin() here, since
* textin assumes that input string encoding is same as database
* encoding.
*/
diff --git a/src/backend/utils/misc/database.c b/src/backend/utils/misc/database.c
index 8cf58799228..981d7ea7dcc 100644
--- a/src/backend/utils/misc/database.c
+++ b/src/backend/utils/misc/database.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.54 2002/11/08 20:23:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.55 2003/03/10 22:28:19 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -33,7 +33,7 @@ static bool PhonyHeapTupleSatisfiesNow(HeapTupleHeader tuple);
* pg_database.datpath) to a full absolute path for further consumption.
* NULL means an error, which the caller should process. One reason for
* such an error would be an absolute alternative path when no absolute
- * paths are alllowed.
+ * paths are allowed.
*/
char *