Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 90e8599

Browse files
committed
Fix typos in comments.
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
1 parent b971a98 commit 90e8599

File tree

119 files changed

+163
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+163
-163
lines changed

configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -7094,7 +7094,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
70947094
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
70957095

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

72407240
# When Autoconf chooses install-sh as mkdir -p program it tries to generate
7241-
# a relative path to it in each makefile where it subsitutes it. This clashes
7241+
# a relative path to it in each makefile where it substitutes it. This clashes
72427242
# with our Makefile.global concept. This workaround helps.
72437243
case $MKDIR_P in
72447244
*install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;

configure.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ fi
894894

895895
AC_PROG_INSTALL
896896
# When Autoconf chooses install-sh as install program it tries to generate
897-
# a relative path to it in each makefile where it subsitutes it. This clashes
897+
# a relative path to it in each makefile where it substitutes it. This clashes
898898
# with our Makefile.global concept. This workaround helps.
899899
case $INSTALL in
900900
*install-sh*) install_bin='';;
@@ -907,7 +907,7 @@ AC_PROG_LN_S
907907
AC_PROG_AWK
908908
AC_PROG_MKDIR_P
909909
# When Autoconf chooses install-sh as mkdir -p program it tries to generate
910-
# a relative path to it in each makefile where it subsitutes it. This clashes
910+
# a relative path to it in each makefile where it substitutes it. This clashes
911911
# with our Makefile.global concept. This workaround helps.
912912
case $MKDIR_P in
913913
*install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;

contrib/bloom/blvacuum.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ blbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
5151
initBloomState(&state, index);
5252

5353
/*
54-
* Interate over the pages. We don't care about concurrently added pages,
54+
* Iterate over the pages. We don't care about concurrently added pages,
5555
* they can't contain tuples to delete.
5656
*/
5757
npages = RelationGetNumberOfBlocks(index);

contrib/cube/expected/cube.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
10191019
5
10201020
(1 row)
10211021

1022-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
1022+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
10231023
--
10241024
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
10251025
cube_ll_coord
@@ -1075,7 +1075,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 3);
10751075
0
10761076
(1 row)
10771077

1078-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
1078+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
10791079
--
10801080
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
10811081
cube_ur_coord

contrib/cube/expected/cube_1.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
10191019
5
10201020
(1 row)
10211021

1022-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
1022+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
10231023
--
10241024
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
10251025
cube_ll_coord
@@ -1075,7 +1075,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 3);
10751075
0
10761076
(1 row)
10771077

1078-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
1078+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
10791079
--
10801080
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
10811081
cube_ur_coord

contrib/cube/expected/cube_2.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
10191019
5
10201020
(1 row)
10211021

1022-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
1022+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
10231023
--
10241024
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
10251025
cube_ll_coord
@@ -1075,7 +1075,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 3);
10751075
0
10761076
(1 row)
10771077

1078-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
1078+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
10791079
--
10801080
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
10811081
cube_ur_coord

contrib/cube/expected/cube_3.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
10191019
5
10201020
(1 row)
10211021

1022-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
1022+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
10231023
--
10241024
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
10251025
cube_ll_coord
@@ -1075,7 +1075,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 3);
10751075
0
10761076
(1 row)
10771077

1078-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
1078+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
10791079
--
10801080
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
10811081
cube_ur_coord

contrib/cube/sql/cube.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ SELECT cube_dim('(0,0,0)'::cube);
246246
SELECT cube_dim('(42,42,42),(42,42,42)'::cube);
247247
SELECT cube_dim('(4,8,15,16,23),(4,8,15,16,23)'::cube);
248248

249-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
249+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
250250
--
251251
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
252252
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 2);
@@ -258,7 +258,7 @@ SELECT cube_ll_coord('(42,137)'::cube, 1);
258258
SELECT cube_ll_coord('(42,137)'::cube, 2);
259259
SELECT cube_ll_coord('(42,137)'::cube, 3);
260260

261-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
261+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
262262
--
263263
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
264264
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 2);

contrib/earthdistance/earthdistance--1.1.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CREATE FUNCTION earth() RETURNS float8
1111
LANGUAGE SQL IMMUTABLE PARALLEL SAFE
1212
AS 'SELECT ''6378168''::float8';
1313

14-
-- Astromers may want to change the earth function so that distances will be
14+
-- Astronomers may want to change the earth function so that distances will be
1515
-- returned in degrees. To do this comment out the above definition and
1616
-- uncomment the one below. Note that doing this will break the regression
1717
-- tests.

contrib/isn/ISSN.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Product 9 + 21 + 7 + 3 + 1 + 12 + 4 + 24 + 7 + 15 + 0 + 0 = 103
2424
* 103 / 10 = 10 remainder 3
2525
* Check digit 10 - 3 = 7
26-
* => 977-1144875-00-7 ?? <- suplemental number (number of the week, month, etc.)
26+
* => 977-1144875-00-7 ?? <- supplemental number (number of the week, month, etc.)
2727
* ^^ 00 for non-daily publications (01=Monday, 02=Tuesday, ...)
2828
*
2929
* The hyphenation is always in after the four digits of the ISSN code.

contrib/isn/isn.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ dehyphenate(char *bufO, char *bufI)
160160
* into bufO using the given hyphenation range TABLE.
161161
* Assumes the input string to be used is of only digits.
162162
*
163-
* Returns the number of characters acctually hyphenated.
163+
* Returns the number of characters actually hyphenated.
164164
*/
165165
static unsigned
166166
hyphenate(char *bufO, char *bufI, const char *(*TABLE)[2], const unsigned TABLE_index[10][2])
@@ -748,7 +748,7 @@ string2ean(const char *str, bool errorOK, ean13 *result,
748748
}
749749
else if (*aux2 == '!' && *(aux2 + 1) == '\0')
750750
{
751-
/* the invalid check digit sufix was found, set it */
751+
/* the invalid check digit suffix was found, set it */
752752
if (!magic)
753753
valid = false;
754754
magic = true;

contrib/ltree/expected/ltree.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e,*.df}';
11051105
t
11061106
(1 row)
11071107

1108-
--exractors
1108+
--extractors
11091109
SELECT ('{3456,1.2.3.34}'::ltree[] ?@> '1.2.3.4') is null;
11101110
?column?
11111111
----------

contrib/ltree/ltxtquery_io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ pushval_asis(QPRS_STATE *state, int type, char *strval, int lenval, uint16 flag)
197197

198198
#define STACKDEPTH 32
199199
/*
200-
* make polish notaion of query
200+
* make polish notation of query
201201
*/
202202
static int32
203203
makepol(QPRS_STATE *state)

contrib/ltree/sql/ltree.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ SELECT 'a.b.c.d.e'::ltree ? '{A.b.c.d.e, a.*}';
204204
SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e}';
205205
SELECT '{a.b.c.d.e,B.df}'::ltree[] ? '{A.b.c.d.e,*.df}';
206206

207-
--exractors
207+
--extractors
208208
SELECT ('{3456,1.2.3.34}'::ltree[] ?@> '1.2.3.4') is null;
209209
SELECT '{3456,1.2.3}'::ltree[] ?@> '1.2.3.4';
210210
SELECT '{3456,1.2.3.4}'::ltree[] ?<@ '1.2.3';

contrib/pg_standby/pg_standby.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ main(int argc, char **argv)
779779
{
780780
/*
781781
* Once we have restored this file successfully we can remove some
782-
* prior WAL files. If this restore fails we musn't remove any
782+
* prior WAL files. If this restore fails we mustn't remove any
783783
* file because some of them will be requested again immediately
784784
* after the failed restore, or when we restart recovery.
785785
*/

contrib/pg_stat_statements/pg_stat_statements.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ typedef struct Counters
138138
{
139139
int64 calls; /* # of times executed */
140140
double total_time; /* total execution time, in msec */
141-
double min_time; /* minimim execution time in msec */
141+
double min_time; /* minimum execution time in msec */
142142
double max_time; /* maximum execution time in msec */
143143
double mean_time; /* mean execution time in msec */
144144
double sum_var_time; /* sum of variances in execution time in msec */

contrib/pg_trgm/trgm_op.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ comp_ptrgm(const void *v1, const void *v2)
413413
* ulen1: count of unique trigrams of array "trg1".
414414
* len2: length of array "trg2" and array "trg2indexes".
415415
* len: length of the array "found".
416-
* check_only: if true then only check existaince of similar search pattern in
416+
* check_only: if true then only check existence of similar search pattern in
417417
* text.
418418
*
419419
* Returns word similarity.
@@ -456,7 +456,7 @@ iterate_word_similarity(int *trg2indexes,
456456
lastpos[trgindex] = i;
457457
}
458458

459-
/* Adjust lower bound if this trigram is present in required substing */
459+
/* Adjust lower bound if this trigram is present in required substring */
460460
if (found[trgindex])
461461
{
462462
int prev_lower,
@@ -547,7 +547,7 @@ iterate_word_similarity(int *trg2indexes,
547547
*
548548
* str1: search pattern string, of length slen1 bytes.
549549
* str2: text in which we are looking for a word, of length slen2 bytes.
550-
* check_only: if true then only check existaince of similar search pattern in
550+
* check_only: if true then only check existence of similar search pattern in
551551
* text.
552552
*
553553
* Returns word similarity.

contrib/pgcrypto/mbuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ pullf_read_max(PullFilter *pf, int len, uint8 **data_p, uint8 *tmpbuf)
311311
}
312312

313313
/*
314-
* caller wants exatly len bytes and dont bother with references
314+
* caller wants exactly len bytes and don't bother with references
315315
*/
316316
int
317317
pullf_read_fixed(PullFilter *src, int len, uint8 *dst)

contrib/pgcrypto/pgp-mpi-internal.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ bn_to_mpi(mpz_t *bn)
139139
}
140140

141141
/*
142-
* Decide the number of bits in the random componont k
142+
* Decide the number of bits in the random component k
143143
*
144144
* It should be in the same range as p for signing (which
145145
* is deprecated), but can be much smaller for encrypting.
146146
*
147147
* Until I research it further, I just mimic gpg behaviour.
148148
* It has a special mapping table, for values <= 5120,
149149
* above that it uses 'arbitrary high number'. Following
150-
* algorihm hovers 10-70 bits above gpg values. And for
151-
* larger p, it uses gpg's algorihm.
150+
* algorithm hovers 10-70 bits above gpg values. And for
151+
* larger p, it uses gpg's algorithm.
152152
*
153153
* The point is - if k gets large, encryption will be
154154
* really slow. It does not matter for decryption.

contrib/pgcrypto/pgp-mpi-openssl.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ bn_to_mpi(BIGNUM *bn)
7474
}
7575

7676
/*
77-
* Decide the number of bits in the random componont k
77+
* Decide the number of bits in the random component k
7878
*
7979
* It should be in the same range as p for signing (which
8080
* is deprecated), but can be much smaller for encrypting.
8181
*
8282
* Until I research it further, I just mimic gpg behaviour.
8383
* It has a special mapping table, for values <= 5120,
8484
* above that it uses 'arbitrary high number'. Following
85-
* algorihm hovers 10-70 bits above gpg values. And for
86-
* larger p, it uses gpg's algorihm.
85+
* algorithm hovers 10-70 bits above gpg values. And for
86+
* larger p, it uses gpg's algorithm.
8787
*
8888
* The point is - if k gets large, encryption will be
8989
* really slow. It does not matter for decryption.

contrib/postgres_fdw/expected/postgres_fdw.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ SELECT t1."C 1" FROM "S 1"."T 1" t1, LATERAL (SELECT DISTINCT t2.c1, t3.c1 FROM
20532053
1
20542054
(10 rows)
20552055

2056-
-- non-Var items in targelist of the nullable rel of a join preventing
2056+
-- non-Var items in targetlist of the nullable rel of a join preventing
20572057
-- push-down in some cases
20582058
-- unable to push {ft1, ft2}
20592059
EXPLAIN (VERBOSE, COSTS OFF)

contrib/postgres_fdw/sql/postgres_fdw.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ EXPLAIN (VERBOSE, COSTS OFF)
485485
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;
486486
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;
487487

488-
-- non-Var items in targelist of the nullable rel of a join preventing
488+
-- non-Var items in targetlist of the nullable rel of a join preventing
489489
-- push-down in some cases
490490
-- unable to push {ft1, ft2}
491491
EXPLAIN (VERBOSE, COSTS OFF)

contrib/seg/seg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ restore(char *result, float val, int n)
888888
if (Abs(exp) <= 4)
889889
{
890890
/*
891-
* remove the decimal point from the mantyssa and write the digits
891+
* remove the decimal point from the mantissa and write the digits
892892
* to the buf array
893893
*/
894894
for (p = result + sign, i = 10, dp = 0; *p != 'e'; p++, i++)

contrib/sepgsql/selinux.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* When we ask SELinux whether the required privileges are allowed or not,
2424
* we use security_compute_av(3). It needs us to represent object classes
2525
* and access vectors using 'external' codes defined in the security policy.
26-
* It is determinded in the runtime, not build time. So, it needs an internal
26+
* It is determined in the runtime, not build time. So, it needs an internal
2727
* service to translate object class/access vectors which we want to check
2828
* into the code which kernel want to be given.
2929
*/

contrib/sepgsql/sql/label.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ SELECT * FROM auth_tbl; -- failed
206206
SELECT sepgsql_setcon(NULL); -- end of session
207207
SELECT sepgsql_getcon();
208208

209-
-- the pooler cannot touch these tables directry
209+
-- the pooler cannot touch these tables directly
210210
SELECT * FROM foo_tbl; -- failed
211211

212212
SELECT * FROM var_tbl; -- failed

contrib/spi/refint.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ check_primary_key(PG_FUNCTION_ARGS)
8989
/* internal error */
9090
elog(ERROR, "check_primary_key: cannot process DELETE events");
9191

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

contrib/start-scripts/osx/PostgreSQL

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# modified by Ray Aspeitia 12-03-2003 :
3030
# added log rotation script to db startup
3131
# modified StartupParameters.plist "Provides" parameter to make it easier to
32-
# start and stop with the SystemStarter utitlity
32+
# start and stop with the SystemStarter utility
3333

3434
# use the below command in order to correctly start/stop/restart PG with log rotation script:
3535
# SystemStarter [start|stop|restart] PostgreSQL

contrib/tsearch2/tsearch2--1.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ CREATE FUNCTION stat(text,text)
414414
LANGUAGE INTERNAL
415415
RETURNS NULL ON NULL INPUT;
416416

417-
--reset - just for debuging
417+
--reset - just for debugging
418418
CREATE FUNCTION reset_tsearch()
419419
RETURNS void
420420
as 'MODULE_PATHNAME', 'tsa_reset_tsearch'

contrib/xml2/xpath.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ xpath_table(PG_FUNCTION_ARGS)
610610

611611
/*
612612
* At the moment we assume that the returned attributes make sense for the
613-
* XPath specififed (i.e. we trust the caller). It's not fatal if they get
613+
* XPath specified (i.e. we trust the caller). It's not fatal if they get
614614
* it wrong - the input function for the column type will raise an error
615615
* if the path result can't be converted into the correct binary
616616
* representation.

src/Makefile.shlib

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ $(shlib): $(OBJS) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
401401
$(CC) $(CFLAGS) -shared -static-libgcc -o $@ $(OBJS) $(DLL_DEFFILE) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) -Wl,--out-implib=$(stlib)
402402
endif
403403

404-
endif # PORTNAME == cgywin
404+
endif # PORTNAME == cygwin
405405
endif # PORTNAME == cygwin || PORTNAME == win32
406406

407407

src/backend/access/gist/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The current implementation of GiST supports:
2828

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

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

src/backend/access/heap/rewriteheap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ typedef struct RewriteMappingFile
209209
} RewriteMappingFile;
210210

211211
/*
212-
* A single In-Memeory logical rewrite mapping, hanging of
212+
* A single In-Memory logical rewrite mapping, hanging off
213213
* RewriteMappingFile->mappings.
214214
*/
215215
typedef struct RewriteMappingDataEntry

0 commit comments

Comments
 (0)