Skip to content

Commit 45edde0

Browse files
committed
Fix typos and grammar in code and test comments
This fixes the grammar of some comments in a couple of tests (SQL and TAP), and in some C files. Author: Justin Pryzby Discussion: https://postgr.es/m/20220511020334.GH19626@telsasoft.com
1 parent 0d34314 commit 45edde0

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

contrib/citext/expected/citext.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ SELECT COUNT(*) = 8::bigint AS t FROM try;
22702270

22712271
INSERT INTO try
22722272
VALUES ( to_char( now()::timestamp, 'HH12:MI:SS') ),
2273-
( to_char( now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timetamptz
2273+
( to_char( now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timestamptz
22742274
( to_char( '15h 2m 12s'::interval, 'HH24:MI:SS') ),
22752275
( to_char( current_date, '999') ),
22762276
( to_char( 125::int, '999') ),

contrib/citext/expected/citext_1.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ SELECT COUNT(*) = 8::bigint AS t FROM try;
22702270

22712271
INSERT INTO try
22722272
VALUES ( to_char( now()::timestamp, 'HH12:MI:SS') ),
2273-
( to_char( now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timetamptz
2273+
( to_char( now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timestamptz
22742274
( to_char( '15h 2m 12s'::interval, 'HH24:MI:SS') ),
22752275
( to_char( current_date, '999') ),
22762276
( to_char( 125::int, '999') ),

contrib/citext/sql/citext.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ SELECT to_timestamp('05 Dec 2000', 'DD Mon YYYY'::citext)
696696
SELECT COUNT(*) = 8::bigint AS t FROM try;
697697
INSERT INTO try
698698
VALUES ( to_char( now()::timestamp, 'HH12:MI:SS') ),
699-
( to_char( now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timetamptz
699+
( to_char( now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timestamptz
700700
( to_char( '15h 2m 12s'::interval, 'HH24:MI:SS') ),
701701
( to_char( current_date, '999') ),
702702
( to_char( 125::int, '999') ),

src/backend/executor/execGrouping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ BuildTupleHashTableExt(PlanState *parent,
246246
}
247247

248248
/*
249-
* BuildTupleHashTable is a backwards-compatibilty wrapper for
249+
* BuildTupleHashTable is a backwards-compatibility wrapper for
250250
* BuildTupleHashTableExt(), that allocates the hashtable's metadata in
251251
* tablecxt. Note that hashtables created this way cannot be reset leak-free
252252
* with ResetTupleHashTable().

src/backend/parser/parse_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4536,7 +4536,7 @@ transformJsonParseExpr(ParseState *pstate, JsonParseExpr *jsexpr)
45364536
else
45374537
{
45384538
/*
4539-
* Coerce argument to target type using CAST for compatibilty with PG
4539+
* Coerce argument to target type using CAST for compatibility with PG
45404540
* function-like CASTs.
45414541
*/
45424542
arg = transformJsonValueExprExt(pstate, jsexpr->expr, JS_FORMAT_JSON,

src/backend/replication/basebackup_target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* basebackup_target.c
4-
* Base backups can be "targetted," which means that they can be sent
4+
* Base backups can be "targeted", which means that they can be sent
55
* somewhere other than to the client which requested the backup.
66
* Furthermore, new targets can be defined by extensions. This file
77
* contains code to support that functionality.

src/bin/pg_basebackup/bbstreamer_tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ bbstreamer_tar_archiver_content(bbstreamer *streamer,
423423
data = buffer;
424424
len = pad_bytes;
425425

426-
/* Don't do this agian unless we replace another header. */
426+
/* Don't do this again unless we replace another header. */
427427
mystreamer->rearchive_member = false;
428428
}
429429
else if (context == BBSTREAMER_ARCHIVE_TRAILER)

src/bin/pg_rewind/t/007_standby_source.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
# Restart the node.
142142
$node_c->start;
143143

144-
# set RewindTest::node_primary to point to the rewinded node, so that we can
144+
# set RewindTest::node_primary to point to the rewound node, so that we can
145145
# use check_query()
146146
$node_primary = $node_c;
147147

src/bin/pg_rewind/t/009_growing_files.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
append_to_file "$standby_pgdata/tst_both_dir/file1", 'a';
4848

4949
# Run pg_rewind and pipe the output from the run into the extra file we want
50-
# to copy. This will ensure that the file is continously growing during the
50+
# to copy. This will ensure that the file is continuously growing during the
5151
# copy operation and the result will be an error.
5252
my $ret = run_log(
5353
[

src/test/regress/expected/psql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5481,7 +5481,7 @@ INSERT INTO bla VALUES ('Susie'); -- succeeds
54815481
INSERT INTO bla VALUES ('Rosalyn') \; -- will rollback
54825482
SELECT 'before error' AS show \; -- will show nevertheless!
54835483
SELECT psql_error('boum!') \; -- failure
5484-
SELECT 'after error' AS noshow; -- hidden by preceeding error
5484+
SELECT 'after error' AS noshow; -- hidden by preceding error
54855485
show
54865486
--------------
54875487
before error

src/test/regress/sql/psql.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ INSERT INTO bla VALUES ('Susie'); -- succeeds
14321432
INSERT INTO bla VALUES ('Rosalyn') \; -- will rollback
14331433
SELECT 'before error' AS show \; -- will show nevertheless!
14341434
SELECT psql_error('boum!') \; -- failure
1435-
SELECT 'after error' AS noshow; -- hidden by preceeding error
1435+
SELECT 'after error' AS noshow; -- hidden by preceding error
14361436
INSERT INTO bla(s) VALUES ('Moe') \; -- will rollback
14371437
SELECT psql_error('bam!');
14381438
INSERT INTO bla VALUES ('Miss Wormwood'); -- succeeds

src/test/ssl/t/SSL/Backend/OpenSSL.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ sub get_sslkey
135135
=item $backend->set_server_cert(params)
136136
137137
Change the configuration to use given server cert, key and crl file(s). The
138-
following paramters are supported:
138+
following parameters are supported:
139139
140140
=over
141141

0 commit comments

Comments
 (0)