Skip to content

Commit

Permalink
Fix typos in comments.
Browse files Browse the repository at this point in the history
Backpatch to all supported versions, where applicable, to make backpatching
of future fixes go more smoothly.

Josh Soref

Discussion: https://www.postgresql.org/message-id/CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com
  • Loading branch information
hlinnaka committed Feb 6, 2017
1 parent 9863017 commit 181bdb9
Show file tree
Hide file tree
Showing 137 changed files with 195 additions and 195 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -7088,7 +7088,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

# When Autoconf chooses install-sh as install program it tries to generate
# a relative path to it in each makefile where it subsitutes it. This clashes
# a relative path to it in each makefile where it substitutes it. This clashes
# with our Makefile.global concept. This workaround helps.
case $INSTALL in
*install-sh*) install_bin='';;
Expand Down Expand Up @@ -7232,7 +7232,7 @@ fi
$as_echo "$MKDIR_P" >&6; }

# When Autoconf chooses install-sh as mkdir -p program it tries to generate
# a relative path to it in each makefile where it subsitutes it. This clashes
# a relative path to it in each makefile where it substitutes it. This clashes
# with our Makefile.global concept. This workaround helps.
case $MKDIR_P in
*install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
Expand Down
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ fi

AC_PROG_INSTALL
# When Autoconf chooses install-sh as install program it tries to generate
# a relative path to it in each makefile where it subsitutes it. This clashes
# a relative path to it in each makefile where it substitutes it. This clashes
# with our Makefile.global concept. This workaround helps.
case $INSTALL in
*install-sh*) install_bin='';;
Expand All @@ -900,7 +900,7 @@ AC_PROG_LN_S
AC_PROG_AWK
AC_PROG_MKDIR_P
# When Autoconf chooses install-sh as mkdir -p program it tries to generate
# a relative path to it in each makefile where it subsitutes it. This clashes
# a relative path to it in each makefile where it substitutes it. This clashes
# with our Makefile.global concept. This workaround helps.
case $MKDIR_P in
*install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
Expand Down
2 changes: 1 addition & 1 deletion contrib/bloom/blvacuum.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ blbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
initBloomState(&state, index);

/*
* Interate over the pages. We don't care about concurrently added pages,
* Iterate over the pages. We don't care about concurrently added pages,
* they can't contain tuples to delete.
*/
npages = RelationGetNumberOfBlocks(index);
Expand Down
4 changes: 2 additions & 2 deletions contrib/cube/expected/cube.out
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
5
(1 row)

-- Test of cube_ll_coord function (retrieves LL coodinate values)
-- Test of cube_ll_coord function (retrieves LL coordinate values)
--
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
cube_ll_coord
Expand Down Expand Up @@ -1112,7 +1112,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 3);
0
(1 row)

-- Test of cube_ur_coord function (retrieves UR coodinate values)
-- Test of cube_ur_coord function (retrieves UR coordinate values)
--
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
cube_ur_coord
Expand Down
4 changes: 2 additions & 2 deletions contrib/cube/expected/cube_2.out
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
5
(1 row)

-- Test of cube_ll_coord function (retrieves LL coodinate values)
-- Test of cube_ll_coord function (retrieves LL coordinate values)
--
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
cube_ll_coord
Expand Down Expand Up @@ -1112,7 +1112,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 3);
0
(1 row)

-- Test of cube_ur_coord function (retrieves UR coodinate values)
-- Test of cube_ur_coord function (retrieves UR coordinate values)
--
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
cube_ur_coord
Expand Down
4 changes: 2 additions & 2 deletions contrib/cube/sql/cube.sql
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ SELECT cube_dim('(0,0,0)'::cube);
SELECT cube_dim('(42,42,42),(42,42,42)'::cube);
SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);

-- Test of cube_ll_coord function (retrieves LL coodinate values)
-- Test of cube_ll_coord function (retrieves LL coordinate values)
--
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 2);
Expand All @@ -268,7 +268,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 1);
SELECT cube_ll_coord('(42,137)'::cube, 2);
SELECT cube_ll_coord('(42,137)'::cube, 3);

-- Test of cube_ur_coord function (retrieves UR coodinate values)
-- Test of cube_ur_coord function (retrieves UR coordinate values)
--
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 2);
Expand Down
2 changes: 1 addition & 1 deletion contrib/earthdistance/earthdistance--1.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE FUNCTION earth() RETURNS float8
LANGUAGE SQL IMMUTABLE PARALLEL SAFE
AS 'SELECT ''6378168''::float8';

-- Astromers may want to change the earth function so that distances will be
-- Astronomers may want to change the earth function so that distances will be
-- returned in degrees. To do this comment out the above definition and
-- uncomment the one below. Note that doing this will break the regression
-- tests.
Expand Down
2 changes: 1 addition & 1 deletion contrib/isn/ISSN.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Product 9 + 21 + 7 + 3 + 1 + 12 + 4 + 24 + 7 + 15 + 0 + 0 = 103
* 103 / 10 = 10 remainder 3
* Check digit 10 - 3 = 7
* => 977-1144875-00-7 ?? <- suplemental number (number of the week, month, etc.)
* => 977-1144875-00-7 ?? <- supplemental number (number of the week, month, etc.)
* ^^ 00 for non-daily publications (01=Monday, 02=Tuesday, ...)
*
* The hyphenation is always in after the four digits of the ISSN code.
Expand Down
4 changes: 2 additions & 2 deletions contrib/isn/isn.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ dehyphenate(char *bufO, char *bufI)
* into bufO using the given hyphenation range TABLE.
* Assumes the input string to be used is of only digits.
*
* Returns the number of characters acctually hyphenated.
* Returns the number of characters actually hyphenated.
*/
static unsigned
hyphenate(char *bufO, char *bufI, const char *(*TABLE)[2], const unsigned TABLE_index[10][2])
Expand Down Expand Up @@ -748,7 +748,7 @@ string2ean(const char *str, bool errorOK, ean13 *result,
}
else if (*aux2 == '!' && *(aux2 + 1) == '\0')
{
/* the invalid check digit sufix was found, set it */
/* the invalid check digit suffix was found, set it */
if (!magic)
valid = false;
magic = true;
Expand Down
2 changes: 1 addition & 1 deletion contrib/ltree/expected/ltree.out
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e,*.df}';
t
(1 row)

--exractors
--extractors
SELECT ('{3456,1.2.3.34}'::ltree[] ?@> '1.2.3.4') is null;
?column?
----------
Expand Down
2 changes: 1 addition & 1 deletion contrib/ltree/ltxtquery_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pushval_asis(QPRS_STATE *state, int type, char *strval, int lenval, uint16 flag)

#define STACKDEPTH 32
/*
* make polish notaion of query
* make polish notation of query
*/
static int32
makepol(QPRS_STATE *state)
Expand Down
2 changes: 1 addition & 1 deletion contrib/ltree/sql/ltree.sql
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ SELECT 'a.b.c.d.e'::ltree ? '{A.b.c.d.e, a.*}';
SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e}';
SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e,*.df}';

--exractors
--extractors
SELECT ('{3456,1.2.3.34}'::ltree[] ?@> '1.2.3.4') is null;
SELECT '{3456,1.2.3}'::ltree[] ?@> '1.2.3.4';
SELECT '{3456,1.2.3.4}'::ltree[] ?<@ '1.2.3';
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_standby/pg_standby.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ main(int argc, char **argv)
{
/*
* Once we have restored this file successfully we can remove some
* prior WAL files. If this restore fails we musn't remove any
* prior WAL files. If this restore fails we mustn't remove any
* file because some of them will be requested again immediately
* after the failed restore, or when we restart recovery.
*/
Expand Down
2 changes: 1 addition & 1 deletion contrib/pg_stat_statements/pg_stat_statements.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ typedef struct Counters
{
int64 calls; /* # of times executed */
double total_time; /* total execution time, in msec */
double min_time; /* minimim execution time in msec */
double min_time; /* minimum execution time in msec */
double max_time; /* maximum execution time in msec */
double mean_time; /* mean execution time in msec */
double sum_var_time; /* sum of variances in execution time in msec */
Expand Down
6 changes: 3 additions & 3 deletions contrib/pg_trgm/trgm_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ comp_ptrgm(const void *v1, const void *v2)
* ulen1: count of unique trigrams of array "trg1".
* len2: length of array "trg2" and array "trg2indexes".
* len: length of the array "found".
* check_only: if true then only check existaince of similar search pattern in
* check_only: if true then only check existence of similar search pattern in
* text.
*
* Returns word similarity.
Expand Down Expand Up @@ -456,7 +456,7 @@ iterate_word_similarity(int *trg2indexes,
lastpos[trgindex] = i;
}

/* Adjust lower bound if this trigram is present in required substing */
/* Adjust lower bound if this trigram is present in required substring */
if (found[trgindex])
{
int prev_lower,
Expand Down Expand Up @@ -547,7 +547,7 @@ iterate_word_similarity(int *trg2indexes,
*
* str1: search pattern string, of length slen1 bytes.
* str2: text in which we are looking for a word, of length slen2 bytes.
* check_only: if true then only check existaince of similar search pattern in
* check_only: if true then only check existence of similar search pattern in
* text.
*
* Returns word similarity.
Expand Down
2 changes: 1 addition & 1 deletion contrib/pgcrypto/mbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ pullf_read_max(PullFilter *pf, int len, uint8 **data_p, uint8 *tmpbuf)
}

/*
* caller wants exatly len bytes and dont bother with references
* caller wants exactly len bytes and don't bother with references
*/
int
pullf_read_fixed(PullFilter *src, int len, uint8 *dst)
Expand Down
6 changes: 3 additions & 3 deletions contrib/pgcrypto/pgp-mpi-internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,16 @@ bn_to_mpi(mpz_t *bn)
}

/*
* Decide the number of bits in the random componont k
* Decide the number of bits in the random component k
*
* It should be in the same range as p for signing (which
* is deprecated), but can be much smaller for encrypting.
*
* Until I research it further, I just mimic gpg behaviour.
* It has a special mapping table, for values <= 5120,
* above that it uses 'arbitrary high number'. Following
* algorihm hovers 10-70 bits above gpg values. And for
* larger p, it uses gpg's algorihm.
* algorithm hovers 10-70 bits above gpg values. And for
* larger p, it uses gpg's algorithm.
*
* The point is - if k gets large, encryption will be
* really slow. It does not matter for decryption.
Expand Down
6 changes: 3 additions & 3 deletions contrib/pgcrypto/pgp-mpi-openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ bn_to_mpi(BIGNUM *bn)
}

/*
* Decide the number of bits in the random componont k
* Decide the number of bits in the random component k
*
* It should be in the same range as p for signing (which
* is deprecated), but can be much smaller for encrypting.
*
* Until I research it further, I just mimic gpg behaviour.
* It has a special mapping table, for values <= 5120,
* above that it uses 'arbitrary high number'. Following
* algorihm hovers 10-70 bits above gpg values. And for
* larger p, it uses gpg's algorihm.
* algorithm hovers 10-70 bits above gpg values. And for
* larger p, it uses gpg's algorithm.
*
* The point is - if k gets large, encryption will be
* really slow. It does not matter for decryption.
Expand Down
2 changes: 1 addition & 1 deletion contrib/postgres_fdw/expected/postgres_fdw.out
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM
1
(10 rows)

-- non-Var items in targelist of the nullable rel of a join preventing
-- non-Var items in targetlist of the nullable rel of a join preventing
-- push-down in some cases
-- unable to push {ft1, ft2}
EXPLAIN (VERBOSE, COSTS OFF)
Expand Down
2 changes: 1 addition & 1 deletion contrib/postgres_fdw/sql/postgres_fdw.sql
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ EXPLAIN (VERBOSE, COSTS OFF)
SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM ft1 t2, ft2 t3 WHERE t2.c1 = t3.c1 AND t2.c2 = t1.c2) q ORDER BY t1."C 1" OFFSET 10 LIMIT 10;
SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM ft1 t2, ft2 t3 WHERE t2.c1 = t3.c1 AND t2.c2 = t1.c2) q ORDER BY t1."C 1" OFFSET 10 LIMIT 10;

-- non-Var items in targelist of the nullable rel of a join preventing
-- non-Var items in targetlist of the nullable rel of a join preventing
-- push-down in some cases
-- unable to push {ft1, ft2}
EXPLAIN (VERBOSE, COSTS OFF)
Expand Down
2 changes: 1 addition & 1 deletion contrib/seg/seg.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ restore(char *result, float val, int n)
if (Abs(exp) <= 4)
{
/*
* remove the decimal point from the mantyssa and write the digits
* remove the decimal point from the mantissa and write the digits
* to the buf array
*/
for (p = result + sign, i = 10, dp = 0; *p != 'e'; p++, i++)
Expand Down
2 changes: 1 addition & 1 deletion contrib/sepgsql/selinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* When we ask SELinux whether the required privileges are allowed or not,
* we use security_compute_av(3). It needs us to represent object classes
* and access vectors using 'external' codes defined in the security policy.
* It is determinded in the runtime, not build time. So, it needs an internal
* It is determined in the runtime, not build time. So, it needs an internal
* service to translate object class/access vectors which we want to check
* into the code which kernel want to be given.
*/
Expand Down
2 changes: 1 addition & 1 deletion contrib/sepgsql/sql/label.sql
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ SELECT * FROM auth_tbl; -- failed
SELECT sepgsql_setcon(NULL); -- end of session
SELECT sepgsql_getcon();

-- the pooler cannot touch these tables directry
-- the pooler cannot touch these tables directly
SELECT * FROM foo_tbl; -- failed

SELECT * FROM var_tbl; -- failed
Expand Down
2 changes: 1 addition & 1 deletion contrib/spi/refint.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ check_primary_key(PG_FUNCTION_ARGS)
/* internal error */
elog(ERROR, "check_primary_key: cannot process DELETE events");

/* If UPDATion the must check new Tuple, not old one */
/* If UPDATE, then must check new Tuple, not old one */
else
tuple = trigdata->tg_newtuple;

Expand Down
2 changes: 1 addition & 1 deletion contrib/start-scripts/osx/PostgreSQL
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# modified by Ray Aspeitia 12-03-2003 :
# added log rotation script to db startup
# modified StartupParameters.plist "Provides" parameter to make it easier to
# start and stop with the SystemStarter utitlity
# start and stop with the SystemStarter utility

# use the below command in order to correctly start/stop/restart PG with log rotation script:
# SystemStarter [start|stop|restart] PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion contrib/tsearch2/tsearch2--1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ CREATE FUNCTION stat(text,text)
LANGUAGE INTERNAL
RETURNS NULL ON NULL INPUT;

--reset - just for debuging
--reset - just for debugging
CREATE FUNCTION reset_tsearch()
RETURNS void
as 'MODULE_PATHNAME', 'tsa_reset_tsearch'
Expand Down
2 changes: 1 addition & 1 deletion contrib/xml2/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ xpath_table(PG_FUNCTION_ARGS)

/*
* At the moment we assume that the returned attributes make sense for the
* XPath specififed (i.e. we trust the caller). It's not fatal if they get
* XPath specified (i.e. we trust the caller). It's not fatal if they get
* it wrong - the input function for the column type will raise an error
* if the path result can't be converted into the correct binary
* representation.
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ $(shlib): $(OBJS) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
$(CC) $(CFLAGS) -shared -static-libgcc -o $@ $(OBJS) $(DLL_DEFFILE) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--out-implib=$(stlib)
endif

endif # PORTNAME == cgywin
endif # PORTNAME == cygwin
endif # PORTNAME == cygwin || PORTNAME == win32


Expand Down
2 changes: 1 addition & 1 deletion src/backend/access/gist/README
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The current implementation of GiST supports:

The support for concurrency implemented in PostgreSQL was developed based on
the paper "Access Methods for Next-Generation Database Systems" by
Marcel Kornaker:
Marcel Kornacker:

http://www.sai.msu.su/~megera/postgres/gist/papers/concurrency/access-methods-for-next-generation.pdf.gz

Expand Down
2 changes: 1 addition & 1 deletion src/backend/access/hash/hashpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ _hash_splitbucket_guts(Relation rel,
* already moved before the split operation was previously interrupted.
*
* The caller must hold a pin, but no lock, on the metapage and old bucket's
* primay page buffer. The buffers are returned in the same state. (The
* primary page buffer. The buffers are returned in the same state. (The
* metapage is only touched if it becomes necessary to add or remove overflow
* pages.)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/backend/access/heap/rewriteheap.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ typedef struct RewriteMappingFile
} RewriteMappingFile;

/*
* A single In-Memeory logical rewrite mapping, hanging of
* A single In-Memory logical rewrite mapping, hanging off
* RewriteMappingFile->mappings.
*/
typedef struct RewriteMappingDataEntry
Expand Down
2 changes: 1 addition & 1 deletion src/backend/access/transam/commit_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ CommitTsParameterChange(bool newvalue, bool oldvalue)

/*
* Activate this module whenever necessary.
* This must happen during postmaster or standalong-backend startup,
* This must happen during postmaster or standalone-backend startup,
* or during WAL replay anytime the track_commit_timestamp setting is
* changed in the master.
*
Expand Down
2 changes: 1 addition & 1 deletion src/backend/access/transam/xact.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,7 +2752,7 @@ CommitTransactionCommand(void)
* These shouldn't happen. TBLOCK_DEFAULT means the previous
* StartTransactionCommand didn't set the STARTED state
* appropriately, while TBLOCK_PARALLEL_INPROGRESS should be ended
* by EndParallelWorkerTranaction(), not this function.
* by EndParallelWorkerTransaction(), not this function.
*/
case TBLOCK_DEFAULT:
case TBLOCK_PARALLEL_INPROGRESS:
Expand Down
2 changes: 1 addition & 1 deletion src/backend/catalog/objectaddress.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ static void getRelationIdentity(StringInfo buffer, Oid relid, List **objname);
*
* Note: If the object is not found, we don't give any indication of the
* reason. (It might have been a missing schema if the name was qualified, or
* an inexistant type name in case of a cast, function or operator; etc).
* a nonexistent type name in case of a cast, function or operator; etc).
* Currently there is only one caller that might be interested in such info, so
* we don't spend much effort here. If more callers start to care, it might be
* better to add some support for that in this function.
Expand Down

0 comments on commit 181bdb9

Please sign in to comment.