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

Commit e1623c3

Browse files
committed
Fix various common mispellings.
Mostly these are just comments but there are a few in documentation and a handful in code and tests. Hopefully this doesn't cause too much unnecessary pain for backpatching. I relented from some of the most common like "thru" for that reason. The rest don't seem numerous enough to cause problems. Thanks to Kevin Lyda's tool https://pypi.python.org/pypi/misspellings
1 parent ee4af34 commit e1623c3

File tree

26 files changed

+35
-35
lines changed

26 files changed

+35
-35
lines changed

doc/src/sgml/config.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ include_dir 'conf.d'
25182518
less than <varname>wal_writer_flush_after</> bytes of WAL have been
25192519
produced since, WAL is only written to the OS, not flushed to disk.
25202520
If <varname>wal_writer_flush_after</> is set to <literal>0</> WAL is
2521-
flushed everytime the WAL writer has written WAL. The default is
2521+
flushed every time the WAL writer has written WAL. The default is
25222522
<literal>1MB</literal>. This parameter can only be set in the
25232523
<filename>postgresql.conf</> file or on the server command line.
25242524
</para>

doc/src/sgml/pgcrypto.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ Applies to: pgp_sym_encrypt
866866
be a value between 1024 and 65011712, inclusive.
867867
</para>
868868
<literallayout>
869-
Default: A random value bewteen 65536 and 253952
869+
Default: A random value between 65536 and 253952
870870
Applies to: pgp_sym_encrypt, only with s2k-mode=3
871871
</literallayout>
872872
</sect4>

doc/src/sgml/ref/psql-ref.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4168,7 +4168,7 @@ testdb=&gt; <userinput>\crosstabview first second</userinput>
41684168
</programlisting>
41694169

41704170
This second example shows a multiplication table with rows sorted in reverse
4171-
numerical order and columns with an independant, ascending numerical order.
4171+
numerical order and columns with an independent, ascending numerical order.
41724172
<programlisting>
41734173
testdb=&gt; <userinput>SELECT t1.first as "A", t2.first+100 AS "B", t1.first*(t2.first+100) as "AxB",</userinput>
41744174
testdb(&gt; <userinput>row_number() over(order by t2.first) AS ord</userinput>

src/backend/access/transam/generic_xlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct GenericXLogState
6464
/*
6565
* page's images. Should be first in this struct to have MAXALIGN'ed
6666
* images addresses, because some code working with pages directly aligns
67-
* addresses, not an offsets from begining of page
67+
* addresses, not offsets from beginning of page
6868
*/
6969
char images[MAX_GENERIC_XLOG_PAGES * BLCKSZ];
7070
PageData pages[MAX_GENERIC_XLOG_PAGES];

src/backend/catalog/namespace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
297297
namespaceId = LookupExplicitNamespace(relation->schemaname, missing_ok);
298298

299299
/*
300-
* For missing_ok, allow a non-existant schema name to
300+
* For missing_ok, allow a non-existent schema name to
301301
* return InvalidOid.
302302
*/
303303
if (namespaceId != myTempNamespace)

src/backend/catalog/sql_features.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ F831 Full cursor update NO
316316
F831 Full cursor update 01 Updatable scrollable cursors NO
317317
F831 Full cursor update 02 Updatable ordered cursors NO
318318
F841 LIKE_REGEX predicate NO
319-
F842 OCCURENCES_REGEX function NO
319+
F842 OCCURRENCES_REGEX function NO
320320
F843 POSITION_REGEX function NO
321321
F844 SUBSTRING_REGEX function NO
322322
F845 TRANSLATE_REGEX function NO

src/backend/commands/cluster.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ cluster(ClusterStmt *stmt, bool isTopLevel)
248248
* swapping the relfilenodes of the new table and the old table, so
249249
* the OID of the original table is preserved. Thus we do not lose
250250
* GRANT, inheritance nor references to this table (this was a bug
251-
* in releases thru 7.3).
251+
* in releases through 7.3).
252252
*
253253
* Indexes are rebuilt too, via REINDEX. Since we are effectively bulk-loading
254254
* the new table, it's better to create the indexes afterwards than to fill

src/backend/main/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
179179
* read-only activities. The -C case is important because pg_ctl may
180180
* try to invoke it while still holding administrator privileges on
181181
* Windows. Note that while -C can normally be in any argv position,
182-
* if you wanna bypass the root check you gotta put it first. This
182+
* if you want to bypass the root check you must put it first. This
183183
* reduces the risk that we might misinterpret some other mode's -C
184184
* switch as being the postmaster/postgres one.
185185
*/

src/backend/nodes/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ FILES IN src/include/nodes/
4646
Steps to Add a Node
4747
-------------------
4848

49-
Suppose you wanna define a node Foo:
49+
Suppose you want to define a node Foo:
5050

5151
1. Add a tag (T_Foo) to the enum NodeTag in nodes.h. (If you insert the
5252
tag in a way that moves the numbers associated with existing tags,

src/backend/optimizer/util/tlist.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ apply_pathtarget_labeling_to_tlist(List *tlist, PathTarget *target)
770770
* the aggtranstype or aggserialtype. This allows exprType() to return the
771771
* actual type that will be produced.
772772
*
773-
* Note: We expect 'target' to be a flat target list and not have Aggrefs burried
773+
* Note: We expect 'target' to be a flat target list and not have Aggrefs buried
774774
* within other expressions.
775775
*/
776776
void

src/backend/replication/logical/reorderbuffer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ ReorderBufferTXNByXid(ReorderBuffer *rb, TransactionId xid, bool create,
563563
}
564564

565565
/*
566-
* cached as non-existant, and asked not to create? Then nothing else
566+
* cached as non-existent, and asked not to create? Then nothing else
567567
* to do.
568568
*/
569569
if (!create)

src/backend/replication/walsender.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ StartReplication(StartReplicationCmd *cmd)
747747
*
748748
* Inside the walsender we can do better than logical_read_local_xlog_page,
749749
* which has to do a plain sleep/busy loop, because the walsender's latch gets
750-
* set everytime WAL is flushed.
750+
* set every time WAL is flushed.
751751
*/
752752
static int
753753
logical_read_xlog_page(XLogReaderState *state, XLogRecPtr targetPagePtr, int reqLen,

src/backend/storage/buffer/bufmgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ BufferSync(int flags)
19731973
}
19741974

19751975
/*
1976-
* Measure progress independent of actualy having to flush the buffer
1976+
* Measure progress independent of actually having to flush the buffer
19771977
* - otherwise writing become unbalanced.
19781978
*/
19791979
ts_stat->progress += ts_stat->progress_slice;

src/backend/storage/ipc/procarray.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ ProcArrayInitRecovery(TransactionId initializedUptoXID)
642642
Assert(TransactionIdIsNormal(initializedUptoXID));
643643

644644
/*
645-
* we set latestObservedXid to the xid SUBTRANS has been initialized upto,
645+
* we set latestObservedXid to the xid SUBTRANS has been initialized up to,
646646
* so we can extend it from that point onwards in
647647
* RecordKnownAssignedTransactionIds, and when we get consistent in
648648
* ProcArrayApplyRecoveryInfo().

src/backend/storage/smgr/md.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ _mdfd_getseg(SMgrRelation reln, ForkNumber forknum, BlockNumber blkno,
17881788
BlockNumber targetseg;
17891789
BlockNumber nextsegno;
17901790

1791-
/* some way to handle non-existant segments needs to be specified */
1791+
/* some way to handle non-existent segments needs to be specified */
17921792
Assert(behavior &
17931793
(EXTENSION_FAIL | EXTENSION_CREATE | EXTENSION_RETURN_NULL));
17941794

src/backend/tsearch/spell.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ getAffixFlagSet(IspellDict *Conf, char *s)
11621162

11631163
if (curaffix > 0 && curaffix <= Conf->nAffixData)
11641164
/*
1165-
* Do not substract 1 from curaffix
1165+
* Do not subtract 1 from curaffix
11661166
* because empty string was added in NIImportOOAffixes
11671167
*/
11681168
return Conf->AffixData[curaffix];

src/backend/utils/adt/formatting.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3146,15 +3146,15 @@ DCH_from_char(FormatNode *node, char *in, TmFromChar *out)
31463146
{
31473147
int matched,
31483148
years,
3149-
millenia,
3149+
millennia,
31503150
nch;
31513151

3152-
matched = sscanf(s, "%d,%03d%n", &millenia, &years, &nch);
3152+
matched = sscanf(s, "%d,%03d%n", &millennia, &years, &nch);
31533153
if (matched < 2)
31543154
ereport(ERROR,
31553155
(errcode(ERRCODE_INVALID_DATETIME_FORMAT),
31563156
errmsg("invalid input string for \"Y,YYY\"")));
3157-
years += (millenia * 1000);
3157+
years += (millennia * 1000);
31583158
from_char_set_int(&out->year, years, n);
31593159
out->yysz = 4;
31603160
s += nch;

src/backend/utils/adt/geo_spgist.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* (3) the prefix of the current node
4646
*
4747
* If we visualize them on our simplified drawing (see the drawing above);
48-
* transfered boundaries of (1) would be the outer axis, relevant part
48+
* transferred boundaries of (1) would be the outer axis, relevant part
4949
* of (2) would be the up right part of the other axis, and (3) would be
5050
* the inner axis.
5151
*

src/backend/utils/resowner/resowner.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ ResourceArrayGetAny(ResourceArray *resarr, Datum *value)
373373
}
374374
else
375375
{
376-
/* Hash: search forward from whereever we were last. */
376+
/* Hash: search forward from wherever we were last. */
377377
uint32 mask = resarr->capacity - 1;
378378

379379
for (;;)

src/bin/pg_dump/dumputils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ buildACLCommands(const char *name, const char *subname,
236236
* manner by first REVOKE'ing the rights and then GRANT'ing them
237237
* after. With 9.6 and above, what we need to REVOKE and what we
238238
* need to GRANT is figured out when we dump and stashed into
239-
* "racls" and "acls", respectivly. See above.
239+
* "racls" and "acls", respectively. See above.
240240
*/
241241
if (remoteVersion < 90600 && owner
242242
&& strcmp(grantee->data, owner) == 0

src/include/port/win32.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Leave a higher value in place. When building with at least Visual
1010
* Studio 2015 the minimum requirement is Windows Vista (0x0600) to
1111
* get support for GetLocaleInfoEx() with locales. For everything else
12-
* the minumum version is Windows XP (0x0501).
12+
* the minimum version is Windows XP (0x0501).
1313
* Also for VS2015, add a define that stops compiler complaints about
1414
* using the old Winsock API.
1515
*/

src/include/storage/freespace.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
3333
extern void FreeSpaceMapTruncateRel(Relation rel, BlockNumber nblocks);
3434
extern void FreeSpaceMapVacuum(Relation rel);
3535
extern void UpdateFreeSpaceMap(Relation rel,
36-
BlockNumber firtsBlkNum,
37-
BlockNumber lastBlkNum,
36+
BlockNumber startBlkNum,
37+
BlockNumber endBlkNum,
3838
Size freespace);
3939

4040
#endif /* FREESPACE_H_ */

src/test/modules/test_ddl_deparse/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ demonstration of how to use the datatype, and to provide some unit tests for
44
it.
55

66
The functions in this extension are intended to be able to process some
7-
part of the struct and produce some readable output, preferrably handling
7+
part of the struct and produce some readable output, preferably handling
88
all possible cases so that SQL test code can be written.

src/test/regress/expected/event_trigger.out

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ create event trigger regress_event_trigger_end on ddl_command_end
3030
execute procedure test_event_trigger();
3131
-- should fail, food is not a valid filter variable
3232
create event trigger regress_event_trigger2 on ddl_command_start
33-
when food in ('sandwhich')
33+
when food in ('sandwich')
3434
execute procedure test_event_trigger();
3535
ERROR: unrecognized filter variable "food"
36-
-- should fail, sandwhich is not a valid command tag
36+
-- should fail, sandwich is not a valid command tag
3737
create event trigger regress_event_trigger2 on ddl_command_start
38-
when tag in ('sandwhich')
38+
when tag in ('sandwich')
3939
execute procedure test_event_trigger();
40-
ERROR: filter value "sandwhich" not recognized for filter variable "tag"
40+
ERROR: filter value "sandwich" not recognized for filter variable "tag"
4141
-- should fail, create skunkcabbage is not a valid command tag
4242
create event trigger regress_event_trigger2 on ddl_command_start
4343
when tag in ('create table', 'create skunkcabbage')

src/test/regress/sql/event_trigger.sql

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ create event trigger regress_event_trigger_end on ddl_command_end
3232

3333
-- should fail, food is not a valid filter variable
3434
create event trigger regress_event_trigger2 on ddl_command_start
35-
when food in ('sandwhich')
35+
when food in ('sandwich')
3636
execute procedure test_event_trigger();
3737

38-
-- should fail, sandwhich is not a valid command tag
38+
-- should fail, sandwich is not a valid command tag
3939
create event trigger regress_event_trigger2 on ddl_command_start
40-
when tag in ('sandwhich')
40+
when tag in ('sandwich')
4141
execute procedure test_event_trigger();
4242

4343
-- should fail, create skunkcabbage is not a valid command tag

src/tools/msvc/Project.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ sub Save
368368

369369
sub GetAdditionalLinkerDependencies
370370
{
371-
my ($self, $cfgname, $seperator) = @_;
371+
my ($self, $cfgname, $separator) = @_;
372372
my $libcfg = (uc $cfgname eq "RELEASE") ? "MD" : "MDd";
373373
my $libs = '';
374374
foreach my $lib (@{ $self->{libraries} })
@@ -382,7 +382,7 @@ sub GetAdditionalLinkerDependencies
382382
last;
383383
}
384384
}
385-
$libs .= $xlib . $seperator;
385+
$libs .= $xlib . $separator;
386386
}
387387
$libs =~ s/.$//;
388388
$libs =~ s/__CFGNAME__/$cfgname/g;

0 commit comments

Comments
 (0)