Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ytxxz-0004Q7-T1 for pgsql-hackers@arkaria.postgresql.org; Sun, 17 May 2015 12:46:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ytxxy-00011y-Py for pgsql-hackers@arkaria.postgresql.org; Sun, 17 May 2015 12:46:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ytxxx-00011r-Aj for pgsql-hackers@postgresql.org; Sun, 17 May 2015 12:46:49 +0000 Received: from smtp39.i.mail.ru ([94.100.177.99]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Ytxxu-0003A3-FG for pgsql-hackers@postgresql.org; Sun, 17 May 2015 12:46:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bk.ru; s=mail; h=Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=Bj2hfcKh4QPZ3/CyR4xqosY0UwL2iiFYHviFtqYZqdU=; b=KinscqoBJOOZ/HsGDslZYMBQEydWih1Uc0yZq+r8jbUg1ahCnJxBGr0TDc4xJ9WHU6gVWiBs4tzElD5zaTF7vl9zlDy9TtMAtiYDo6H8YJnYNOP5R173Efa+WbPEKQ3BysCZFVvIQL6tdvAQOMIieFwKlBy90/TLgE0eQpOOyqQ=; Received: from [5.139.144.138] (port=29036) by smtp39.i.mail.ru with esmtpa (envelope-from ) id 1Ytxxs-0007bO-AG for pgsql-hackers@postgresql.org; Sun, 17 May 2015 15:46:44 +0300 Message-ID: <55587FAA.5010000@bk.ru> Date: Sun, 17 May 2015 15:46:50 +0400 From: Dmitriy Olshevskiy User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: pgsql-hackers@postgresql.org Subject: fix typos Content-Type: multipart/mixed; boundary="------------090708060603030108090905" X-Spam: Not detected X-Mras: Ok X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------090708060603030108090905 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello. Please, see this patch with typos. Thank you. -- Dmitriy Olshevskiy --------------090708060603030108090905 Content-Type: text/x-patch; name="0001-fix-typos.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-fix-typos.patch" From e9c463e50efdaa1fbdcabea92cd95cbffea3d3bd Mon Sep 17 00:00:00 2001 From: olshevskiy87 Date: Sun, 17 May 2015 15:40:40 +0400 Subject: [PATCH] fix typos --- contrib/tsm_system_time/tsm_system_time.c | 2 +- doc/src/sgml/logicaldecoding.sgml | 2 +- doc/src/sgml/ref/pg_dumpall.sgml | 2 +- src/backend/access/gin/ginpostinglist.c | 14 +++++++------- src/backend/access/heap/heapam.c | 2 +- src/backend/access/nbtree/README | 2 +- src/backend/access/transam/xact.c | 4 ++-- src/backend/replication/logical/snapbuild.c | 2 +- src/backend/tsearch/dict_synonym.c | 2 +- src/backend/utils/adt/jsonfuncs.c | 2 +- src/test/regress/expected/event_trigger.out | 2 +- src/test/regress/sql/event_trigger.sql | 2 +- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/contrib/tsm_system_time/tsm_system_time.c b/contrib/tsm_system_time/tsm_system_time.c index efb127c..9af9e74 100644 --- a/contrib/tsm_system_time/tsm_system_time.c +++ b/contrib/tsm_system_time/tsm_system_time.c @@ -267,7 +267,7 @@ tsm_system_time_cost(PG_FUNCTION_ARGS) NULL); /* - * Assumption here is that we'll never read less then 1% of table pages, + * Assumption here is that we'll never read less than 1% of table pages, * this is here mainly because it is much less bad to overestimate than * underestimate and using just spc_random_page_cost will probably lead * to underestimations in general. diff --git a/doc/src/sgml/logicaldecoding.sgml b/doc/src/sgml/logicaldecoding.sgml index 00f6eee..5fa2f77 100644 --- a/doc/src/sgml/logicaldecoding.sgml +++ b/doc/src/sgml/logicaldecoding.sgml @@ -649,7 +649,7 @@ OutputPluginWrite(ctx, true); Synchronous Replication Support for Logical Decoding - Logical decoding can be used to to build + Logical decoding can be used to build synchronous replication solutions with the same user interface as synchronous replication for streaming diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml index fcf5f77..0444f09 100644 --- a/doc/src/sgml/ref/pg_dumpall.sgml +++ b/doc/src/sgml/ref/pg_dumpall.sgml @@ -454,7 +454,7 @@ PostgreSQL documentation - Specifies the name of the database to connect to to dump global + Specifies the name of the database to connect to dump global objects and discover what other databases should be dumped. If not specified, the postgres database will be used, and if that does not exist, template1 will be used. diff --git a/src/backend/access/gin/ginpostinglist.c b/src/backend/access/gin/ginpostinglist.c index 6337b1a..e6d7c1a 100644 --- a/src/backend/access/gin/ginpostinglist.c +++ b/src/backend/access/gin/ginpostinglist.c @@ -23,7 +23,7 @@ /* * For encoding purposes, item pointers are represented as 64-bit unsigned * integers. The lowest 11 bits represent the offset number, and the next - * lowest 32 bits are the block number. That leaves 17 bits unused, ie. + * lowest 32 bits are the block number. That leaves 17 bits unused, i.e. * only 43 low bits are used. * * These 43-bit integers are encoded using varbyte encoding. In each byte, @@ -51,16 +51,16 @@ * Removing number is actually replacement of two numbers with their sum. We * have to prove that varbyte encoding of a sum can't be longer than varbyte * encoding of its summands. Sum of two numbers is at most one bit wider than - * than the larger of the summands. Widening a number by one bit enlarges its - * length in varbyte encoding by at most one byte. Therefore, varbyte encoding - * of sum is at most one byte longer than varbyte encoding of larger summand. - * Lesser summand is at least one byte, so the sum cannot take more space than - * the summands, Q.E.D. + * the larger of the summands. Widening a number by one bit enlarges its length + * in varbyte encoding by at most one byte. Therefore, varbyte encoding of sum + * is at most one byte longer than varbyte encoding of larger summand. Lesser + * summand is at least one byte, so the sum cannot take more space than the + * summands, Q.E.D. * * This property greatly simplifies VACUUM, which can assume that posting * lists always fit on the same page after vacuuming. Note that even though * that holds for removing items from a posting list, you must also be - * careful to not cause expansion e.g when merging uncompressed items on the + * careful to not cause expansion e.g. when merging uncompressed items on the * page into the compressed lists, when vacuuming. */ diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index f0c2394..c30a5b3 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -7289,7 +7289,7 @@ ExtractReplicaIdentity(Relation relation, HeapTuple tp, bool key_changed, bool * { /* * The OID column can appear in an index definition, but that's - * OK, becuse we always copy the OID if present (see below). Other + * OK, because we always copy the OID if present (see below). Other * system columns may not. */ if (attno == ObjectIdAttributeNumber) diff --git a/src/backend/access/nbtree/README b/src/backend/access/nbtree/README index 5c0bc79..7055c24 100644 --- a/src/backend/access/nbtree/README +++ b/src/backend/access/nbtree/README @@ -470,7 +470,7 @@ not be seen under normal circumstances; only if insertion to the parent has failed for some reason. We flag the left page, even though it's the right page that's missing the -downlink, beacuse it's more convenient to know already when following the +downlink, because it's more convenient to know already when following the right-link from the left page to the right page that it will need to have its downlink inserted to the parent. diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index a8f78d6..f6009e0 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -2005,7 +2005,7 @@ CommitTransaction(void) if (!is_parallel_worker) { /* - * We need to mark our XIDs as commited in pg_clog. This is where we + * We need to mark our XIDs as committed in pg_clog. This is where we * durably commit. */ latestXid = RecordTransactionCommit(); @@ -2764,7 +2764,7 @@ CommitTransactionCommand(void) /* * Here we are in the middle of a transaction block but one of the * commands caused an abort so we do nothing but remain in the - * abort state. Eventually we will get a ROLLBACK comand. + * abort state. Eventually we will get a ROLLBACK command. */ case TBLOCK_ABORT: case TBLOCK_SUBABORT: diff --git a/src/backend/replication/logical/snapbuild.c b/src/backend/replication/logical/snapbuild.c index c878f62..ea25cf0 100644 --- a/src/backend/replication/logical/snapbuild.c +++ b/src/backend/replication/logical/snapbuild.c @@ -832,7 +832,7 @@ SnapBuildAddCommittedTxn(SnapBuild *builder, TransactionId xid) /* * Remove knowledge about transactions we treat as committed that are smaller - * than ->xmin. Those won't ever get checked via the ->commited array but via + * than ->xmin. Those won't ever get checked via the ->committed array but via * the clog machinery, so we don't need to waste memory on them. */ static void diff --git a/src/backend/tsearch/dict_synonym.c b/src/backend/tsearch/dict_synonym.c index 26725a8..ee7e6cd 100644 --- a/src/backend/tsearch/dict_synonym.c +++ b/src/backend/tsearch/dict_synonym.c @@ -37,7 +37,7 @@ typedef struct * Returns a pointer to the first character of the word, and a pointer * to the next byte after the last character in the word (in *end). * Character '*' at the end of word will not be threated as word - * charater if flags is not null. + * character if flags is not null. */ static char * findwrd(char *in, char **end, uint16 *flags) diff --git a/src/backend/utils/adt/jsonfuncs.c b/src/backend/utils/adt/jsonfuncs.c index 3dfdbf9..9987c73 100644 --- a/src/backend/utils/adt/jsonfuncs.c +++ b/src/backend/utils/adt/jsonfuncs.c @@ -3577,7 +3577,7 @@ IteratorConcat(JsonbIterator **it1, JsonbIterator **it2, int level = 1; /* - * Append the all tokens from v1 to res, exept last WJB_END_OBJECT + * Append the all tokens from v1 to res, except last WJB_END_OBJECT * (because res will not be finished yet). */ (void) pushJsonbValue(state, r1, NULL); diff --git a/src/test/regress/expected/event_trigger.out b/src/test/regress/expected/event_trigger.out index 24335df..e70c315 100644 --- a/src/test/regress/expected/event_trigger.out +++ b/src/test/regress/expected/event_trigger.out @@ -38,7 +38,7 @@ create event trigger regress_event_trigger2 on ddl_command_start when tag in ('sandwhich') execute procedure test_event_trigger(); ERROR: filter value "sandwhich" not recognized for filter variable "tag" --- should fail, create skunkcabbage is not a valid comand tag +-- should fail, create skunkcabbage is not a valid command tag create event trigger regress_event_trigger2 on ddl_command_start when tag in ('create table', 'create skunkcabbage') execute procedure test_event_trigger(); diff --git a/src/test/regress/sql/event_trigger.sql b/src/test/regress/sql/event_trigger.sql index 9f9646c..ec220fc 100644 --- a/src/test/regress/sql/event_trigger.sql +++ b/src/test/regress/sql/event_trigger.sql @@ -40,7 +40,7 @@ create event trigger regress_event_trigger2 on ddl_command_start when tag in ('sandwhich') execute procedure test_event_trigger(); --- should fail, create skunkcabbage is not a valid comand tag +-- should fail, create skunkcabbage is not a valid command tag create event trigger regress_event_trigger2 on ddl_command_start when tag in ('create table', 'create skunkcabbage') execute procedure test_event_trigger(); -- 1.8.3.msysgit.0 --------------090708060603030108090905 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --------------090708060603030108090905--