Skip to content

Commit e8f9fe4

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 b87e168 commit e8f9fe4

Some content is hidden

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

75 files changed

+103
-103
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7188,7 +7188,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
71887188
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
71897189

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

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

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ fi
822822

823823
AC_PROG_INSTALL
824824
# When Autoconf chooses install-sh as install program it tries to generate
825-
# a relative path to it in each makefile where it subsitutes it. This clashes
825+
# a relative path to it in each makefile where it substitutes it. This clashes
826826
# with our Makefile.global concept. This workaround helps.
827827
case $INSTALL in
828828
*install-sh*) install_bin='';;
@@ -835,7 +835,7 @@ AC_PROG_LN_S
835835
AC_PROG_AWK
836836
AC_PROG_MKDIR_P
837837
# When Autoconf chooses install-sh as mkdir -p program it tries to generate
838-
# a relative path to it in each makefile where it subsitutes it. This clashes
838+
# a relative path to it in each makefile where it substitutes it. This clashes
839839
# with our Makefile.global concept. This workaround helps.
840840
case $MKDIR_P in
841841
*install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;

contrib/cube/expected/cube.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ SELECT cube_dim('(0,0,0)'::cube);
912912
3
913913
(1 row)
914914

915-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
915+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
916916
--
917917
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
918918
cube_ll_coord
@@ -932,7 +932,7 @@ SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 3);
932932
0
933933
(1 row)
934934

935-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
935+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
936936
--
937937
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
938938
cube_ur_coord

contrib/cube/expected/cube_1.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ SELECT cube_dim('(0,0,0)'::cube);
912912
3
913913
(1 row)
914914

915-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
915+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
916916
--
917917
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
918918
cube_ll_coord
@@ -932,7 +932,7 @@ SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 3);
932932
0
933933
(1 row)
934934

935-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
935+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
936936
--
937937
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
938938
cube_ur_coord

contrib/cube/expected/cube_2.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ SELECT cube_dim('(0,0,0)'::cube);
912912
3
913913
(1 row)
914914

915-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
915+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
916916
--
917917
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
918918
cube_ll_coord
@@ -932,7 +932,7 @@ SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 3);
932932
0
933933
(1 row)
934934

935-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
935+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
936936
--
937937
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
938938
cube_ur_coord

contrib/cube/expected/cube_3.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ SELECT cube_dim('(0,0,0)'::cube);
912912
3
913913
(1 row)
914914

915-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
915+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
916916
--
917917
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
918918
cube_ll_coord
@@ -932,7 +932,7 @@ SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 3);
932932
0
933933
(1 row)
934934

935-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
935+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
936936
--
937937
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
938938
cube_ur_coord

contrib/cube/sql/cube.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ SELECT cube_dim('(0)'::cube);
224224
SELECT cube_dim('(0,0)'::cube);
225225
SELECT cube_dim('(0,0,0)'::cube);
226226

227-
-- Test of cube_ll_coord function (retrieves LL coodinate values)
227+
-- Test of cube_ll_coord function (retrieves LL coordinate values)
228228
--
229229
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 1);
230230
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 2);
231231
SELECT cube_ll_coord('(-1,1),(2,-2)'::cube, 3);
232232

233-
-- Test of cube_ur_coord function (retrieves UR coodinate values)
233+
-- Test of cube_ur_coord function (retrieves UR coordinate values)
234234
--
235235
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 1);
236236
SELECT cube_ur_coord('(-1,1),(2,-2)'::cube, 2);

contrib/earthdistance/earthdistance--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CREATE FUNCTION earth() RETURNS float8
1111
LANGUAGE SQL IMMUTABLE
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pushval_asis(QPRS_STATE *state, int type, char *strval, int lenval, uint16 flag)
200200

201201
#define STACKDEPTH 32
202202
/*
203-
* make polish notaion of query
203+
* make polish notation of query
204204
*/
205205
static int32
206206
makepol(QPRS_STATE *state)

contrib/ltree/sql/ltree.sql

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ main(int argc, char **argv)
806806
{
807807
/*
808808
* Once we have restored this file successfully we can remove some
809-
* prior WAL files. If this restore fails we musn't remove any
809+
* prior WAL files. If this restore fails we mustn't remove any
810810
* file because some of them will be requested again immediately
811811
* after the failed restore, or when we restart recovery.
812812
*/

contrib/pgcrypto/mbuf.c

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,16 @@ bn_to_mpi(mpz_t *bn)
140140
}
141141

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

contrib/pgcrypto/pgp-mpi-openssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ bn_to_mpi(BIGNUM *bn)
7575
}
7676

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

contrib/seg/seg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ restore(char *result, float val, int n)
904904
if (Abs(exp) <= 4)
905905
{
906906
/*
907-
* remove the decimal point from the mantyssa and write the digits
907+
* remove the decimal point from the mantissa and write the digits
908908
* to the buf array
909909
*/
910910
for (p = result + sign, i = 10, dp = 0; *p != 'e'; p++, i++)

contrib/sepgsql/selinux.c

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ check_primary_key(PG_FUNCTION_ARGS)
9393
/* internal error */
9494
elog(ERROR, "check_primary_key: cannot process DELETE events");
9595

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

contrib/start-scripts/osx/PostgreSQL

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ xpath_table(PG_FUNCTION_ARGS)
623623

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

src/Makefile.shlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ $(shlib): $(OBJS) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
410410
$(stlib): $(shlib) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
411411
$(DLLTOOL) --dllname $(shlib) $(DLLTOOL_LIBFLAGS) --def $(DLL_DEFFILE) --output-lib $@
412412

413-
endif # PORTNAME == cgywin
413+
endif # PORTNAME == cygwin
414414
endif # PORTNAME == cygwin || PORTNAME == win32
415415

416416

src/backend/access/gist/README

Lines changed: 1 addition & 1 deletion
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/commands/dbcommands.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ createdb(const CreatedbStmt *stmt)
675675

676676
/*
677677
* Force synchronous commit, thus minimizing the window between
678-
* creation of the database files and commital of the transaction. If
678+
* creation of the database files and committal of the transaction. If
679679
* we crash before committing, we'll have a DB that's taking up disk
680680
* space but is not in pg_database, which is not good.
681681
*/
@@ -915,7 +915,7 @@ dropdb(const char *dbname, bool missing_ok)
915915

916916
/*
917917
* Force synchronous commit, thus minimizing the window between removal of
918-
* the database files and commital of the transaction. If we crash before
918+
* the database files and committal of the transaction. If we crash before
919919
* committing, we'll have a DB that's gone on disk but still there
920920
* according to pg_database, which is not good.
921921
*/
@@ -1272,7 +1272,7 @@ movedb(const char *dbname, const char *tblspcname)
12721272

12731273
/*
12741274
* Force synchronous commit, thus minimizing the window between
1275-
* copying the database files and commital of the transaction. If we
1275+
* copying the database files and committal of the transaction. If we
12761276
* crash before committing, we'll leave an orphaned set of files on
12771277
* disk, which is not fatal but not good either.
12781278
*/

src/backend/commands/explain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,7 @@ ExplainYAMLLineStarting(ExplainState *es)
26192619
}
26202620

26212621
/*
2622-
* YAML is a superset of JSON; unfortuantely, the YAML quoting rules are
2622+
* YAML is a superset of JSON; unfortunately, the YAML quoting rules are
26232623
* ridiculously complicated -- as documented in sections 5.3 and 7.3.3 of
26242624
* http://yaml.org/spec/1.2/spec.html -- so we chose to just quote everything.
26252625
* Empty strings, strings with leading or trailing whitespace, and strings

src/backend/commands/functioncmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ CreateCast(CreateCastStmt *stmt)
13171317
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
13181318
errmsg("cast will be ignored because the target data type is a domain")));
13191319

1320-
/* Detemine the cast method */
1320+
/* Determine the cast method */
13211321
if (stmt->func != NULL)
13221322
castmethod = COERCION_METHOD_FUNCTION;
13231323
else if (stmt->inout)

src/backend/commands/indexcmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static void RangeVarCallbackForReindexIndex(const RangeVar *relation,
9696
* Errors arising from the attribute list still apply.
9797
*
9898
* Most column type changes that can skip a table rewrite do not invalidate
99-
* indexes. We ackowledge this when all operator classes, collations and
99+
* indexes. We acknowledge this when all operator classes, collations and
100100
* exclusion operators match. Though we could further permit intra-opfamily
101101
* changes for btree and hash indexes, that adds subtle complexity with no
102102
* concrete benefit for core types.
@@ -920,7 +920,7 @@ CheckMutability(Expr *expr)
920920
* indxpath.c could do something with. However, that seems overly
921921
* restrictive. One useful application of partial indexes is to apply
922922
* a UNIQUE constraint across a subset of a table, and in that scenario
923-
* any evaluatable predicate will work. So accept any predicate here
923+
* any evaluable predicate will work. So accept any predicate here
924924
* (except ones requiring a plan), and let indxpath.c fend for itself.
925925
*/
926926
static void

src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5734,7 +5734,7 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
57345734

57355735
/*
57365736
* Check if ONLY was specified with ALTER TABLE. If so, allow the
5737-
* contraint creation only if there are no children currently. Error out
5737+
* constraint creation only if there are no children currently. Error out
57385738
* otherwise.
57395739
*/
57405740
if (!recurse && children != NIL)

0 commit comments

Comments
 (0)