mirror of
https://github.com/postgres/postgres.git
synced 2025-09-06 13:46:51 +03:00
This patch fixes a bunch of spelling mistakes in comments throughout the
PostgreSQL source code. Neil Conway
This commit is contained in:
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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
|
||||
|
@@ -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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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);
|
||||
|
@@ -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
|
||||
|
@@ -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' == ''
|
||||
|
@@ -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.
|
||||
|
@@ -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 ,
|
||||
|
@@ -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.
|
||||
*/
|
||||
|
@@ -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 *
|
||||
|
Reference in New Issue
Block a user