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

Commit 3b075e9

Browse files
committed
Fix typos in comments
Dmitriy Olshevskiy
1 parent 6b66545 commit 3b075e9

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

contrib/tsm_system_time/tsm_system_time.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ tsm_system_time_cost(PG_FUNCTION_ARGS)
267267
NULL);
268268

269269
/*
270-
* Assumption here is that we'll never read less then 1% of table pages,
270+
* Assumption here is that we'll never read less than 1% of table pages,
271271
* this is here mainly because it is much less bad to overestimate than
272272
* underestimate and using just spc_random_page_cost will probably lead
273273
* to underestimations in general.

doc/src/sgml/logicaldecoding.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ OutputPluginWrite(ctx, true);
649649
<title>Synchronous Replication Support for Logical Decoding</title>
650650

651651
<para>
652-
Logical decoding can be used to to build
652+
Logical decoding can be used to build
653653
<link linkend="synchronous-replication">synchronous
654654
replication</link> solutions with the same user interface as synchronous
655655
replication for <link linkend="streaming-replication">streaming

doc/src/sgml/ref/pg_dumpall.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ PostgreSQL documentation
454454
<term><option>--database=<replaceable>dbname</replaceable></option></term>
455455
<listitem>
456456
<para>
457-
Specifies the name of the database to connect to to dump global
457+
Specifies the name of the database to connect to dump global
458458
objects and discover what other databases should be dumped. If
459459
not specified, the <literal>postgres</literal> database will be used,
460460
and if that does not exist, <literal>template1</literal> will be used.

src/backend/access/gin/ginpostinglist.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/*
2424
* For encoding purposes, item pointers are represented as 64-bit unsigned
2525
* integers. The lowest 11 bits represent the offset number, and the next
26-
* lowest 32 bits are the block number. That leaves 17 bits unused, ie.
26+
* lowest 32 bits are the block number. That leaves 17 bits unused, i.e.
2727
* only 43 low bits are used.
2828
*
2929
* These 43-bit integers are encoded using varbyte encoding. In each byte,
@@ -51,16 +51,16 @@
5151
* Removing number is actually replacement of two numbers with their sum. We
5252
* have to prove that varbyte encoding of a sum can't be longer than varbyte
5353
* encoding of its summands. Sum of two numbers is at most one bit wider than
54-
* than the larger of the summands. Widening a number by one bit enlarges its
55-
* length in varbyte encoding by at most one byte. Therefore, varbyte encoding
56-
* of sum is at most one byte longer than varbyte encoding of larger summand.
57-
* Lesser summand is at least one byte, so the sum cannot take more space than
58-
* the summands, Q.E.D.
54+
* the larger of the summands. Widening a number by one bit enlarges its length
55+
* in varbyte encoding by at most one byte. Therefore, varbyte encoding of sum
56+
* is at most one byte longer than varbyte encoding of larger summand. Lesser
57+
* summand is at least one byte, so the sum cannot take more space than the
58+
* summands, Q.E.D.
5959
*
6060
* This property greatly simplifies VACUUM, which can assume that posting
6161
* lists always fit on the same page after vacuuming. Note that even though
6262
* that holds for removing items from a posting list, you must also be
63-
* careful to not cause expansion e.g when merging uncompressed items on the
63+
* careful to not cause expansion e.g. when merging uncompressed items on the
6464
* page into the compressed lists, when vacuuming.
6565
*/
6666

src/backend/access/heap/heapam.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7289,7 +7289,7 @@ ExtractReplicaIdentity(Relation relation, HeapTuple tp, bool key_changed, bool *
72897289
{
72907290
/*
72917291
* The OID column can appear in an index definition, but that's
7292-
* OK, becuse we always copy the OID if present (see below). Other
7292+
* OK, because we always copy the OID if present (see below). Other
72937293
* system columns may not.
72947294
*/
72957295
if (attno == ObjectIdAttributeNumber)

src/backend/access/nbtree/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ not be seen under normal circumstances; only if insertion to the parent
470470
has failed for some reason.
471471

472472
We flag the left page, even though it's the right page that's missing the
473-
downlink, beacuse it's more convenient to know already when following the
473+
downlink, because it's more convenient to know already when following the
474474
right-link from the left page to the right page that it will need to have
475475
its downlink inserted to the parent.
476476

src/backend/access/transam/xact.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ CommitTransaction(void)
20052005
if (!is_parallel_worker)
20062006
{
20072007
/*
2008-
* We need to mark our XIDs as commited in pg_clog. This is where we
2008+
* We need to mark our XIDs as committed in pg_clog. This is where we
20092009
* durably commit.
20102010
*/
20112011
latestXid = RecordTransactionCommit();
@@ -2764,7 +2764,7 @@ CommitTransactionCommand(void)
27642764
/*
27652765
* Here we are in the middle of a transaction block but one of the
27662766
* commands caused an abort so we do nothing but remain in the
2767-
* abort state. Eventually we will get a ROLLBACK comand.
2767+
* abort state. Eventually we will get a ROLLBACK command.
27682768
*/
27692769
case TBLOCK_ABORT:
27702770
case TBLOCK_SUBABORT:

src/backend/replication/logical/snapbuild.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ SnapBuildAddCommittedTxn(SnapBuild *builder, TransactionId xid)
832832

833833
/*
834834
* Remove knowledge about transactions we treat as committed that are smaller
835-
* than ->xmin. Those won't ever get checked via the ->commited array but via
835+
* than ->xmin. Those won't ever get checked via the ->committed array but via
836836
* the clog machinery, so we don't need to waste memory on them.
837837
*/
838838
static void

src/backend/tsearch/dict_synonym.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ typedef struct
3737
* Returns a pointer to the first character of the word, and a pointer
3838
* to the next byte after the last character in the word (in *end).
3939
* Character '*' at the end of word will not be threated as word
40-
* charater if flags is not null.
40+
* character if flags is not null.
4141
*/
4242
static char *
4343
findwrd(char *in, char **end, uint16 *flags)

src/backend/utils/adt/jsonfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3577,7 +3577,7 @@ IteratorConcat(JsonbIterator **it1, JsonbIterator **it2,
35773577
int level = 1;
35783578

35793579
/*
3580-
* Append the all tokens from v1 to res, exept last WJB_END_OBJECT
3580+
* Append the all tokens from v1 to res, except last WJB_END_OBJECT
35813581
* (because res will not be finished yet).
35823582
*/
35833583
(void) pushJsonbValue(state, r1, NULL);

src/test/regress/expected/event_trigger.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ create event trigger regress_event_trigger2 on ddl_command_start
3838
when tag in ('sandwhich')
3939
execute procedure test_event_trigger();
4040
ERROR: filter value "sandwhich" not recognized for filter variable "tag"
41-
-- should fail, create skunkcabbage is not a valid comand tag
41+
-- 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')
4444
execute procedure test_event_trigger();

src/test/regress/sql/event_trigger.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ create event trigger regress_event_trigger2 on ddl_command_start
4040
when tag in ('sandwhich')
4141
execute procedure test_event_trigger();
4242

43-
-- should fail, create skunkcabbage is not a valid comand tag
43+
-- should fail, create skunkcabbage is not a valid command tag
4444
create event trigger regress_event_trigger2 on ddl_command_start
4545
when tag in ('create table', 'create skunkcabbage')
4646
execute procedure test_event_trigger();

0 commit comments

Comments
 (0)